, September 28, 2011 4:40 PM
*To:* OpenSceneGraph Users
*Subject:* Re: [osg-users] GLSL shaders and projective texturing
** **
Brad,
I once had the same issue; calcuating my texgen matrix like this worked:**
**
** **
texGenMat =
modelViewMat *
projectionMat
I think Paul Martz did already.
http://thread.gmane.org/gmane.comp.graphics.openscenegraph.cvs/9237/focus=9304
jp
On 29/09/2011 13:46, Per Nordqvist wrote:
I also struggled with this issue once and I believe osgspotlight suffers
from exactly the same quadrant defect if you look closely.
Would
, 2011 5:19 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GLSL shaders and projective texturing
I think Paul Martz did already.
http://thread.gmane.org/gmane.comp.graphics.openscenegraph.cvs/9237/focus=9304
jp
On 29/09/2011 13:46, Per Nordqvist wrote:
I also struggled with this issue once
On 9/27/2011 7:21 PM, Brad Colbert wrote:
I am closer!
Looks like the other example I have is FFP not GLSL. Here's a working GLSL
implementation (not OSG) that should be relatively easy to feed with OSG
uniforms and such:
http://www.ozone3d.net/tutorials/glsl_texturing_p08.php#part_8
--
-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 'Xenon'
Hanson
Sent: Wednesday, September 28, 2011 3:31 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GLSL shaders and projective texturing
On 9/27/2011 7:21 PM, Brad
it out.
-B
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org [mailto:
osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 'Xenon'
Hanson
Sent: Wednesday, September 28, 2011 3:31 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GLSL shaders
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.
@01CC7D27.5588D890]
-B
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Chris 'Xenon'
Hanson
Sent: Tuesday, September 27, 2011 1:44 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] GLSL shaders
To add more to this:
I've adapted this to where the camera is the projector (ie the image is
projected from the viewpoint, well, at least that is the idea):
http://www.jotschi.de/?p=378
and I would like to say I'm close, but I'm still a ways away from a solution.
I do see the clock projected
9 matches
Mail list logo