Try BIND_PER_VERTEX

Brian

This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.
[email protected] wrote: -----

To: [email protected]
From: Werner Modenbach <[email protected]>
Sent by: [email protected]
Date: 08/25/2010 04:16PM
Subject: [osg-users] Issue with normal vectors

Maybe someone can give me some explanation on my stupid little problem.

I have a geometry being composed of TRIANGLES.
I have a vertex-array, a verted-index-array and a normal-array assigned to my 
geometry.
3 indexes and 3 normals per Triangle.
Normal binding is set to BIND_PER_PRIMITIVE_SET.

Unfortunately the rendering shows the geometry flat in curious dark colors and 
some unexpected light behaviour.
For analysis purpose I set the normal binding to BIND_PER_PRIMITIVE and pushed 
just 1 normal per TRIANGLE.
Everything looks good except I see the triangles and the geometry isn't 
smooth.
The next test is pushing the same normal vector 3 times and setting the 
binding back to BIND_PER_PRIMITIVE_SET.
In my understanding this should give the same optical result as before. 
Unfortunately it doesn't and everything is dark again.

I guess, I misunderstand something with the normal bindings.

Any hint is highly appreciated. Thanks in advance

- Werner -
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to