Hi Ulrich
found the solution, sorry:
Matrixd matrix;
matrix.makeScale(Vec3(scaleX, scaleY, 1.0));
ref_ptr matTexture = new TexMat;
matTexture->setMatrix(matrix);
// creates a new OSG geode
ref_ptr geoGround = new Geode;
geoGround->addDrawable(new ShapeDrawable(gridGr
Hi Ulrich
because the osg website is not reachable (again), can you show me how to
implement a texture matrix - I didn't find any other sites showing some
examples.
Here is my code:
// defines the file path
QString fileGroundTexture = "res/osg/grass.png";
// creates a new OSG height
Hi Ulrich
thanks, I forgot the texture matrix again (maybe I try to ignore them ;-))
I will try it.
Regards
Dominic
Ulrich Hertlein schrieb:
On 6/12/09 7:27 PM, Dominic Stalder wrote:
is it possible to set the textue coordinates (for repeating a texture)
of a HeightField node? If yes, how
On 6/12/09 7:27 PM, Dominic Stalder wrote:
> is it possible to set the textue coordinates (for repeating a texture)
> of a HeightField node? If yes, how?
If you're using HeightField/ShapeDrawable then no, you cannot specify the
texture
coordinates manually. But you can achieve the same by using
Hi there
is it possible to set the textue coordinates (for repeating a texture)
of a HeightField node? If yes, how?
Thanks a lot
Dominic
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-us
5 matches
Mail list logo