Re: [osg-users] get texture from scene a frame n-1, n-2, n-3 ...

2009-06-30 Thread Christian Buchner
Can't you just store the n frame in a circular buffer of size 4? That gives you frames n, n-1, n-2 and n-3. Christian ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] get texture from scene a frame n-1, n-2, n-3 ...

2009-06-30 Thread Sebastien Nerig
yes, I am actually working on storing the texture. But I think I have some implementation problem for the moment. I was just wondering if a scenegraph approch was possible. thx for your answer sebastien -- Read this topic online here:

Re: [osg-users] get texture from scene a frame n-1, n-2, n-3 ...

2009-06-30 Thread J.P. Delport
Hi, you can add as many cameras (each under a switch) as you need textures, then just enable the camera for the currently to be updated texture of the ring buffer by enabling its switch. You then pass the IDs of the textures to your shader using uniforms (in the order in which they were

Re: [osg-users] get texture from scene a frame n-1, n-2, n-3 ...

2009-06-30 Thread Sebastien Nerig
Exactly what I did ! (before reading your message !) and that works great At start, I didn't think about the switch node and I made a add/remove camera's node mechanism, but I had lots of seg fault problem. the switch node is perfect thank you so much all for your reactivity! sebastien