[osg-users] texture1D example
Bradford, Chase
CHASE.BRADFORD at saic.com
Sun Aug 5 22:36:06 PDT 2007
Would it be alright if I submitted an update to the example that uses a texgen node with ABSOLUTE_RF? That way the texture would show different effects when in EYE_LINEAR and OBJECT_LINEAR mode.
Chase
-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org on behalf of Robert Osfield
Sent: Sat 8/4/2007 2:42 AM
To: osg-users at lists.openscenegraph.org
Subject: Re: [osg-users] texture1D example
Hi Brad,
EYE_LINEAR does't actually strictly mean relative to the eye
coordinates, rather the the modelview matrix that was active when the
glTexGen is called is used to compute the final coords. See the
OpenGL docs for glTexGen.
Robert.
On 8/3/07, Bradford, Chase <CHASE.BRADFORD at saic.com> wrote:
>
>
>
>
> In trying to solve my texgen issue, I decided to play with the texture1D
> example. I noticed that it defines an AnimateStateCallback which is
> supposed to toggle the texgen mode between OBJECT_LINEAR to EYE_LINEAR every
> second. Whenever I run the example on cow.osg, the texture seems fixed
> regardless of how I rotate it. It's as if the texgen computes the coords
> once and never updates them.
>
>
>
> Is there something missing in the example that, or should it really work
> that way?
>
>
>
> Chase
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3430 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070805/0fa776d7/attachment.bin
More information about the osg-users
mailing list