Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to open 3DS files #14

Open
GoogleCodeExporter opened this issue Jul 29, 2015 · 11 comments
Open

Support to open 3DS files #14

GoogleCodeExporter opened this issue Jul 29, 2015 · 11 comments

Comments

@GoogleCodeExporter
Copy link

Could we have 3DS file opening support?

Original issue reported on code.google.com by [email protected] on 12 Dec 2012 at 2:09

@GoogleCodeExporter
Copy link
Author

3DS loading support is not in plan at this moment. If you would like to write 
one, the JSC3D.BinaryStream class will be very useful to deal with binary data. 
You can also refer to JSC3D.StlLoader or this demo 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/md2viewer.html which 
implements an experimental MD2 loader as technical tutorials for how to load 
and parse binary data and make models run in JSC3D.

Original comment by [email protected] on 15 Dec 2012 at 3:04

@GoogleCodeExporter
Copy link
Author

Today I started to implement a 3ds loader.

Now in the end of the day I can see the full mesh rendered but without any 
materials from 3ds file. (the material is the default material of the jsc3d 
engine)

In the next days I'll implement the materials reader from 3ds file and then 
maybe the project owner will integrate it officially in the release.

;)

I tested an object with more than 2 millions of triangles. (and the loader did 
not crash)

Original comment by [email protected] on 13 Jul 2013 at 12:53

Attachments:

@GoogleCodeExporter
Copy link
Author

If someone is interested to test it (or maybe to contribute) i atteched the 
latest version of the loader.

All you have to do is to include the script into the page after the jsc3d.js.

For example like that:

    <script type="text/javascript" src="../jsc3d.js"></script>
    <script type="text/javascript" src="../jsc3d_Autodesk3DSLoader.js"></script>

and then....

viewer.setParameter('SceneUrl', 'Autodesk3ds/epilator.3ds');

exactly like any other loader.

Original comment by [email protected] on 13 Jul 2013 at 1:16

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi,

in the attached zip I put the latest version of 3ds loader and my customized 
version of jsc3D.

what you'll find inside the zip:
1. Now the 3DS loader supports also materials ambient + diffuse + texture 
2. This version does not support material opacity (don't know if the 3DS format 
itself supports opacity didn't find such    information in the documentation I 
used)
3. The jsc3d version included into this zip supports transparent background for 
canvas. (As you can see the colored circles are visible from behind the canvas.)
4. Also use a Perspective View (JSC3D by is implemented with Orthographic View) 
and for my project I preferred to use a perspective view.


Enjoy ! 

Original comment by [email protected] on 13 Jul 2013 at 11:19

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi,

Added support for transparent materials.

Original comment by [email protected] on 14 Jul 2013 at 7:29

Attachments:

@GoogleCodeExporter
Copy link
Author

Wow this works great. 

Thanks for the awesome effort Vasille

Original comment by [email protected] on 15 Jul 2013 at 1:38

@GoogleCodeExporter
Copy link
Author

It was my pleasure to work on it :)

Let's  see what's the next challenge.

Original comment by [email protected] on 15 Jul 2013 at 1:44

@GoogleCodeExporter
Copy link
Author

This is the latest version.

Original comment by [email protected] on 15 Jul 2013 at 1:48

Attachments:

@GoogleCodeExporter
Copy link
Author

Nice job!! I didn't check the issue for email notification so that I almost 
missed this.

The new loader is just incredible. Thanks Vasile!

Original comment by [email protected] on 8 Oct 2013 at 4:05

@GoogleCodeExporter
Copy link
Author

is this part of the latest release?

Original comment by [email protected] on 11 Nov 2013 at 12:47

@GoogleCodeExporter
Copy link
Author

Not yet. You can check it out from the repository.

Original comment by [email protected] on 14 Nov 2013 at 7:08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant