one more thing. The matrix that I pass to TexGen seem to not be taken into account. No matter how I set the far plane it shows same results. Is this expected behavior ?
Nick http://www.linkedin.com/in/tnikolov Sent from Gümüşsuyu, İstanbul, Turkey 2009/12/11 Trajce Nikolov <[email protected]> > ok .. did some experiments and made it work. Now I am seeing it the same > with Texture1D. Any ideas how this texture should look like? > > Nick > > http://www.linkedin.com/in/tnikolov > Sent from Gümüşsuyu, İstanbul, Turkey > > On Fri, Dec 11, 2009 at 12:10 PM, Trajce Nikolov <[email protected] > > wrote: > >> 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

