Hi Aitor, On 9/11/10 23:25 , Aitor Ardanza wrote: > The idea is to edit a texture in real time. To do this, I get the texture > coordinates > where I clicked on the model and I try to update the image as follows ... >... > > float x = textCoord._v[0]*tex_width; > float y = textCoord._v[1]*tex_height; >... > > But the idea does not work ... How can I relate the texcoords with the rows > and columns of the image?
Just an idea but since you appear to use a TextureRectangle the tex coords might be in image space already. Or they might be upside down. What does not work? /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

