Hello,
jerry wrote:
> I am trying to transform a VRML file to another format
> I used traverse function to read each triangle vertex positions from each
> geometry
> however, the material information is missing, or all the vertex shares the
> same color or material data.
hm, possible. If the Geometry has vertex colors they are stored in the
colors/secondaryColors property. Are you interpreting the index/indices
when reading the information from the Geometry?
> I had tried to read material information from Material Group, however, there
> is nothing too.
do you mean there is no material, the material has no chunks or you can
just not find the information you are looking for?
> note that, the material and color can display normally but just can't read.
> I think there is something I missed.
I'm not sure what information you are looking for exactly, OpenGL (and
therefore also OpenSG) has lots of state that affect how things look and
therefore could be considered "material data". However, I think you are
looking for something specific, like vertex colors or the MaterialChunk
(the OpenSG wrapper for state set with glMaterial).
Can you describe a bit more detailed what material data you are
interested in?
Cheers,
Carsten
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users