your triangles all need to be wound the same way (anticlockwise by
default for OSG & Opengl), whether or not your normal's are correct
 
The easiest fix would be to ensure that your modeling package sets up
correct normal's before you get to OSG
 
Assuming your triangles are wound the same way ( if not you will have to
fix that ) try using the SmoothingVistor on the data see 
 
include\osgUtil\SmoothingVisitor
 

Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 
 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
alessandro terenzi
Sent: Monday, January 26, 2009 7:09 AM
To: OpenSceneGraph Users
Subject: [osg-users] Rendering double-sided surfaces.


Sometimes my application has to load models that have normals not always
oriented in the same coherent way, so it is not always possible to say
that a surface is oriented in a way or in another and my renderings do
not look correct. 
 
I'd like to fix this problem in some way...so I was thinking about
rendering both front and back faces, but how do I ask OSG do this? Or
perhaps, is there another way/technique to achive the same result? (ie.
orient a surface in a coherent way: all faces inward XOR outward)
 
Thank you.
Alessandro
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to