Hi,

Miguel Lokida wrote:
Hi,

I have built a geometry in which I have defined vertices, faces,
normals per face and color per vertex.

Mixing per face/per vertex like this causes OSG to fall back to slow OpenGL paths (glBegin and friends). Please try using normals and colours per vertex. You can then try display list or vertex buffer objects to draw.

When I use this code in a
simple openscenegraph progam with only one node (the geometry) the
rendering is perfect.

But, when I use it in my application scenegraph, the color is
practically absent and when I can see it, it 's not the color I have
put on the geometry/geode. And, in the same apllication, the
rendering of the sphere shape is ok.

What could be the problem of this ?

State seems to be leaking.

jp



Thank you

------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17451#17451





_______________________________________________ osg-users mailing
list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to