OK, I will look into that. Thanks for your reply.

Judie

On Jul 11, 11:42 am, "Robert Osfield" <[EMAIL PROTECTED]>
wrote:
> Hi Judie,
>
> When you enable tex gen, the texture coordinates are generated down on
> the GPU for each vertex that is processed, so it's not a state that
> you need to update at all.  It'd best to grab an OpenGL book, or looks
> at online docs to get a full understanding of tex gen.  The OSG just
> wraps up what OpenGL provides, so the OpenGL reference material will
> go a long way to helping you understand how tex gen is done in OSG.
>
> Robert.
>
>
>
>
>
> On Fri, Jul 11, 2008 at 6:57 PM, Judie <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I am applying sphere mapping and using GL_TEXTURE_GEN_S & T so that
> > osg will generate the texture coordinates automatically. My question
> > is: if the object is changed by something like a boolean operation, do
> > I need to do anything or will the texture coordinates be regenerated
> > correctly because it is set to generate texture coordinates
> > automatically through:
> > state->setTextureMode(texUnit, GL_TEXTURE_GEN_S,
> > osg::StateAttribute::ON);
>
> > Thanks,
>
> > Judie
>
> > _______________________________________________
> > osg-users mailing list
> > [EMAIL PROTECTED]
> >http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...
>
> _______________________________________________
> osg-users mailing list
> [EMAIL 
> PROTECTED]://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...-
>  Hide quoted text -
>
> - Show quoted text -
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to