Hi,
       An other technique, if you don't have normals of the model :

http://c0de517e.blogspot.com/2008/10/normals-without-normals.html

     I have the same probleme with CAO file.

yann,



On Wed, Jan 28, 2009 at 6:18 PM, Paul Martz <pma...@skew-matrix.com> wrote:

>  OpenGL features deprecated in 3.0 will still work in 3.0, but:
>  * They might not be the optimal mechanism for what you are trying to
> accomplish -- better techniques exist. That's why it's deprecated; and...
>  * Deprecated features might not work correctly when combined with new
> functionality; and finally...
>  * Deprecated features might be removed in a future rev of OpenGL. At that
> point, the features might -- or might not -- still be available as an
> extension.
>
> Paul Martz
> *Skew Matrix Software LLC*
> http://www.skew-matrix.com
> +1 303 859 9466
>
>
>  ------------------------------
> *From:* osg-users-boun...@lists.openscenegraph.org [mailto:
> osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *alessandro
> terenzi
> *Sent:* Wednesday, January 28, 2009 4:37 AM
> *To:* OpenSceneGraph Users
> *Subject:* Re: [osg-users] Rendering double-sided surfaces.
>
>  My second try:
>
> I got/created a StateSet from my model root and then, as suggested by
> Frank, I did:
>
>
>  osg::ref_ptr< osg::LightModel > pLightModel = new osg::LightModel();
>  pLightModel->setTwoSided( true );
>  pState->setAttributeAndModes( pLightModel.get(), osg::StateAttribute::ON
> );
>
>
> Doing this solved the problem. I did not added also the material setting as
> in the Frank's example because my models already have materials and textures
> applied.
>
> Paul said that this way to solve the problem is deprecated in OpenGL 3.0,
> but will it keep working anyway?
> Thank you very much for helping.
> Alessandro
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
Yann Le Paih
Keraudrono
56150 BAUD
Portable: +33(0)610524356
lepaih.y...@gmail.com
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to