Hi Robert,

1D texture approach with attenuation, based on your state should do the
work. However, I am not familiar with this technique. Could you give more
words on this, or point me what is to search for

Thanks !
Nick

http://www.linkedin.com/in/tnikolov
Sent from Gümüşsuyu, İstanbul, Turkey

On Fri, Dec 11, 2009 at 12:06 PM, Robert Osfield
<[email protected]>wrote:

> Hi Nick,
>
> On Fri, Dec 11, 2009 at 9:40 AM, Trajce Nikolov
> <[email protected]> wrote:
> > I mimic the code from osgspotlight and here are the results. To me it
> looks
> > like one half of the lobe is mirrored. Any idea ?
>
> This is a classic issue with projective texturing - the way around it
> is either to use a shader to disable the lighting behind, or to use a
> 1D texture along the axis of the light that clips out the light from
> behind.  Such a texture would also enable you to attenuate the light.
>
> Robert.
> _______________________________________________
> 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