Hi Chris,


Thanks for the quick reply and the lead.  I'm still fumbling around with that 
example and I think I've found an issue with it.  It appears to be sensitive to 
the camera position (ie not the correct projection solution).  This little bit 
in the shader makes me feel that it's suspect (+vec2(0.5,0.5)):



"     vec4 color =  texture2D(projectionMap,dividedCoord.st+vec2(0.5,0.5)  );"





Do embedded images come across in these emails:



Startup:



[cid:[email protected]]



Moving in slide to the right (projection moves to the far right):



[cid:[email protected]]



-B





-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Chris 'Xenon' 
Hanson
Sent: Tuesday, September 27, 2011 1:44 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GLSL shaders and projective texturing



On 9/27/2011 2:16 PM, Brad Colbert wrote:

> Hi folks,

> I'm looking for a complete example showing projective texturing with GLSL 
> shaders in OSG.  I'm simply trying to implement a spotlight just like the 
> osgspotlight example.  What I've found doesn't quite paint the whole picture 
> for me.  Anything would be helpful.



  This one seemed fairly complete.

http://www.jotschi.de/?p=378





  Ping me if you need help on the project.





--

Chris 'Xenon' Hanson, omo sanza lettere. [email protected] 
http://www.alphapixel.com/

  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.

    "There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen

_______________________________________________

osg-users mailing list

[email protected]

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

<<inline: image001.png>>

<<inline: image002.png>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to