Hi Martin, Rather than copy the data could you just use a GLSL shader and read both textures and choose between the two based on the tex coords that are valid for each segment.
If you can't do this then you'll need to copy the data back to the CPU using osg::Image::readImageFromCurrentTexture and then subload this to the other texture. Robert. 2009/7/7 Martin Großer <[email protected]>: > Hello, > > in the last few days I try to implement a height field painter. That means, > I would like paint in the texture of a object and depending on this texture > the object vertices should be translate in the direction of the normals. > I have implement a projection of a paint brush texture. Also I have the > basic texture with own texture coordinates and the paint brush texture with > own coordinates. Now I would like copy in every frame the information from > paint brush image into the basic image. Make it sense? Or is that the wrong > way? > > How can I copy the data of an texture image in anoter texture image? The > problem is, that the textures have different texture coordinates. > > Cheers, > > Martin > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

