Dear all,
When using calling scene_->Update(my own UpdateTimeStep) inside the E_UPDATE event I found that my components (Node translation) rendering are a few frame behind. This occur after the first three passes in the E_UPDATE event.
According to the doc, I can use E_SCENEUPDATE event. But E_SCENEUPDATE doesn’t seem to be existed in the current revision.
Is there anyway to force render update after scene_->Update(my own UpdateTimeStep) ? Or where is the best place to do scene_->Update() to make sure that it occurs just before render update.
Are you talking about skeletal animations? These will be lazy-updated during the render update.
If you want to sample the node positions after animation, you have a couple of options. The octree sends E_SCENEDRAWABLEUPDATEFINISHED after the animation updates are done. You could also use E_POSTRENDERUPDATE. You cannot reasonably force this update. Note that E_POSTRENDERUPDATE is a delicate place in the frame; deleting visible nodes at this point will likely crash the engine.