On 23/11/09 10:09 AM, Dominic Stalder wrote:
I will try the texture coordinates scaling. But just for interesting,
how would the texture matrix work, do you have some basic code snippet?

osg::TexMat provides a matrix and any texture coordinates you specify will be multiplied by that.

The matrix can translate, scale, and rotate the texture coordinates. For example if you specify a x2 scaling matrix and the texture coordinates are 0..1 then that has the same effect as if you specified texture coordinates 0..2.

Hope this helps,
/ulrich
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to