My first try: I created a SmoothingVistor and let it be accepted by my models, but every model looks always black, even if it is a 'correct' model (ie with all the faces oriented in the right way).
Maybe I need to 'normalize' normals after that visitor? Just a guess...I keep trying... Alessandro On Mon, Jan 26, 2009 at 1:37 PM, Tomlinson, Gordon < gtomlin...@overwatch.textron.com> wrote: > 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:* osg-users-boun...@lists.openscenegraph.org [mailto: > osg-users-boun...@lists.openscenegraph.org] *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 > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org