Hi Ash,
On 31/10/09 2:54 AM, Ash Pat wrote:
Thanks for the suggestions. I think the idea in both the responses was to get
enough
frames so that it doesn't complete in a fraction of a second. So I tried it but
it
still doesn't seem to work. I even inserted a wait time of a few seconds
between the
frames but it didn't help.
However, here are a couple of observations that seem odd. May be the scene is
not
picking up the transformation changes I made?
- When I have my 8 step (which is 8 frames) code, the node at the initial
position is
still there along with its position at the final step. - When I have the
infinite loop
of new positions (as suggested by others), the node doesn't move at all.
Is there a way to mark the scene graph "dirty"? I'm hoping that it would then
force it
to regen everything thus picking up the new position.
No, you don't have to do anything like that, the changes will be picked up automatically
on 'frame()'.
You mentioned that you're using Qt. Are you sure Qt gets a chance to update the canvas?
Is the 'frame' method overloaded to properly call swapBuffers?
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org