HI

Materials and transparency need lighting so

They way I would tackle this would be to use 2 different geometries and
states

One for the front poly with no lighting

One for the back poly ( a copy of the front but reversed) with lighting and
material




Best Regards

Gordon

__________________________________________________________
Gordon Tomlinson
Email  : gordon.tomlinson @ overwatch.com
YIM/AIM: Gordon3dBrit
MSN IM : Gordon3dBrit @ 3dSceneGraph.com

__________________________________________________________

"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



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Morné
Pistorius
Sent: Monday, July 16, 2007 6:49 AM
To: osg users
Subject: [osg-users] Can GL_LIGHTING be disabled for only one face? Or
someother GL wizardry.


Hi all,

I have a textured quad that I want lighting disabled on the front
face, so that it appears bright no matter from what angle I look at
it.  But I want to render it semi-transparent when viewed from the
back.  Is this possible?  I tried playing around with materials and a
two sided lightmodel, but couldn't get the exact effect I was looking
for.  Using a material, I can set different alpha values for the front
and back face, but that only works if I have lighting enabled, and
then the front face is bright only when I look at it straight on.

Perhaps I am going about this in the wrong way.  Any suggestions?

Thanks!
Morne
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to