Jean-Sebastien Guay wrote:
Hello Marcus,
3DS-files are not exported in the same way as VRML (from 3DS Max 7 at
least). Any hierarchy is lost.
OK, but when loaded into OpenSG, will a 3ds file have a MaterialGroup with a
ChunkMaterial as parent to the geometry node(s), like VRML files do? I'd like
to know because I'm trying to make a wrapper for OpenSG objects (so I don't
have too many begin/endEditCPs in my main code), and if objects from different
sources don't behave the same way I'll probably have to special-case it...
Yes. IIRC the format is similar, (three node(core)s per object
(transform, material, geometry)). Can't remember if it's ChunkMaterial
or SimpleMaterial though.
I usually convert most of the non-chunkmaterials to chunkmaterials, just
to get a uniform graph, but is some cases, one needs to work on both
(esp Materials in MaterialGroups vs. Geometries), so I have traversal
funcs that test which it is and give me the option to get/set material
regardless of it's container. Makes it a bit less painful.
mvh
/Marcus
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users