Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Create a movie
PostPosted: Tue Jun 26, 2012 4:00 pm 
Offline

Joined: Thu Mar 24, 2011 3:50 pm
Posts: 39
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:
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group