Hello, devnull wrote: > I still get no color. I'm sending you compressed-wrl file. Please check and > let me know.
I don't think there is a problem with your wrl file. But what Francesco was explaining is that the VRML loader creates a scenegraph from the file that contains Nodes with MaterialGroup cores (your file does not contain any material information so the loader will just put a default material in there). In order to have the vertex color used, you can either turn off lighting for that material or have one of the material properties (e.g. diffuse color) change on a per vertex basis, i.e. basically use glColorMaterial. Both are controlled by the MaterialChunk that is either already part of the MaterialGroups Material or you'd have to add one; the relevant fields are "lit", "colorMaterial" and "backColorMaterial". (More info can also be found in the tutorial <http://opensg.vrsource.org/trac/wiki/Tutorial> or the doxygen generated documentation <http://www.opensg.org/doc-1.6.0/PageSystemState.html#State>) Hope it helps, Carsten ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users