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
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:
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
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
4 matches
Mail list logo