Create a movie

Post Reply
sara
Posts: 39
Joined: Thu Mar 24, 2011 3:50 pm

Create a movie

Post by sara » Tue Jun 26, 2012 4:00 pm

Hi,

I am trying to make a movie from my bullet demo. To do that, I want to store an image every timestep, and create a movie using ffmpeg.

I need the simulation to advance only one step at a time. For that, I am doing

Code: Select all

m_dynamicsWorld->stepSimulation(0.005,0);
And after that, I store the scenario (I later create an image of the scenario). At the end of the animation, I am creating a movie using as timestep 200 fps (1/0.005). This should give me the real time animation, but instead the animation is a little bit slow.

Any ideas?

Post Reply