Hi,

I'm trying to created an osg::Matrix that has the equivalent
representation of what a texgen would make.

For instance, the texgen has:
texgen->setPlane(osg::TexGen::S, osg::plane(a,b,c,d));
texgen->setPlane(osg::TexGen::T, osg::plane(e,f,g,h));

(R&Q) are defaults.


When this is used with a vertex, I get generated texcoords.

I would create a matrix that I could use to calculate these results.

osg::Matrix mat(a,b,c,d,
                e,f,g,h,
                0.0,0.0,1.0,0.0,
                0.0,0.0,0.0,1.0);


Multiplying this with the vertex coord doesn't seem to give me the right
answers.

Is this the right way to set up the equivalent matrix?

Thanks,

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

Reply via email to