no8fear / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Feature Request - Mesh names from file #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? 1.6.5

Hi,

Would it be possible to has meshes named as they ore in the .obj files?
I have made this modification myself but, for obvious reasons, I would rather 
this was part of the official release. I've been playing about trying to learn 
the animation aspects of the library and come up with a test page that I rather 
like at http://john.whitham.me.uk/jsc3d/

Thanks
John

Original issue reported on code.google.com by john.whi...@gmail.com on 8 Aug 2014 at 9:17

GoogleCodeExporter commented 9 years ago
Really cool stuff! I love this amazing Jsc3d brand watch :-) Well done, John!

Indeed, as described in the wavefront obj file spec, the 'g' and 'o' commands 
can be used to define and name objects. But this is not mandatory. Many tools 
either ignore such commands or change the names arbitrarily. So I think this 
approach is not very reliable. 

When the name-object binding is important for an application just like that in 
your demo, it's recommended to use 3ds format instead of obj, which provides 
better support for object naming. And Jsc3d's 3ds loader will treat the names 
properly.  Just include an additional source file jsc3d.3ds.js to enable it. 

Original comment by Humu2...@gmail.com on 9 Aug 2014 at 6:27