Hi,
I have the following problem:

I've got a (for example, 1024x1024px) Image and
each animation cycle I need (in a smaller texture) a slightly different part of 
​​this Image.

e.g.
1. Pass: x1 = 0, x2 = 64, y = 0, y2 = 64
2. Pass: x1 = 0, x2 = 64, y = 1, y2 = 65
3. Pass: x1 = 0, x2 = 64, y = 2, y 2 = 66

Could I somehow use copyTexImage2D (State & state, int x, int y, int width, int 
height) but with my 1024px Texture as Source?

E.g targetImage.copyTexImage2D(sourceImage,0,y,64,y+64)

Or is there another way to go?

Thank you and please excuse my bad english.

Cheers,
Marc

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39554#39554





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to