Re: [osg-users] HeightField texture coordinates

2009-12-07 Thread Dominic Stalder
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

Re: [osg-users] HeightField texture coordinates

2009-12-07 Thread Dominic Stalder
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

Re: [osg-users] HeightField texture coordinates

2009-12-07 Thread Dominic Stalder
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

Re: [osg-users] HeightField texture coordinates

2009-12-07 Thread Ulrich Hertlein
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

[osg-users] HeightField texture coordinates

2009-12-06 Thread Dominic Stalder
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