ipc-sim / IPC

Incremental Potential Contact (IPC) is for robust and accurate time stepping of nonlinear elastodynamics. IPC guarantees intersection- and inversion-free trajectories regardless of materials, time-step sizes, velocities, or deformation severity.
https://ipc-sim.github.io/
MIT License
572 stars 73 forks source link

Output interval control #5

Closed nburgessCarbon closed 4 years ago

nburgessCarbon commented 4 years ago

I'm having trouble getting IPC to output and .obj file every timestep. I looked over the documentation and there is an input called playBackSpeed. I've tried setting this value to 1 and to a speed that that equals number of time steps/simulation end time. Neither of these setting has produced a 1.obj or a 2.obj file after Timestep 1 and 2 are completed.

Any help would be appreciated.

Thanks, Nick

liminchen commented 4 years ago

Hi Nick,

Forgive me that the playBackSpeed setting is too complicated, it has to be set to a value such that playing back in that speed at about 30 frame/s requires all objs from each time step, it will output every obj. So to ensure every time step has the output, simply setting it to a tiny value like 1e-20 should definitely work.

Minchen

nburgessCarbon commented 4 years ago

Thanks Minchen, that works perfectly. Sorry to ask such a trivial question, but I got confused.

Nick