Alessandro,

Check osg::TexMat. Thats exactly the thing you are looking for. 

You may be also intereste4d in osg::TexGen for automatic texture coords 
generated from vertex coords. 

Wojtek


From: Alessandro Terenzi 
Sent: Tuesday, June 08, 2010 5:27 PM
To: OpenSceneGraph Users 
Subject: [osg-users] Changing textures tiling without changing 
texturecoordinates(?)


Maybe this is a silly question...anyway, how is it possible to change the 
number of times a texture repeats over a surface?

For instance I have a model that comes with a texture already applied to it 
(for example a cube with the texture applied to each face) and I'd like to let 
the same texture repeat N times (along U or V or both) over each face. So far I 
can imagine only to change (by scaling) the texture coordinates of each vertex, 
is there any other way to achive the same result (maybe using methods from 
osg::Texture or osg::Texture2D)?

If changing texture coordinates is the only way, is there a 'clever' way to do 
it? For example changing some parameter that affects every vertex in the 
geometry "in one shot" instead of changing each vertex coords 
individually...I'm just guessing...

Thanks.
Alessandro



--------------------------------------------------------------------------------


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to