Monday, August 31, 2009

ODE Solver..and some fun! (ode to ODE Solver!)

this is flipbooked sequence of a Rigid Body Simulation with in Houdini using the ODE Solver..
Actually this is more of a Hybrid..using POPs, VOP POPs, SOPs, and DOPs in Houdini..
There were 2 DOP simulations used for different purposes..
The Particles were also Advected to get a specific movement.
Main intention behind this was simply my NEED to work with the ODE Solver. ODE is mainly used for Dynamics in gaming and cant work with complex geometry..So I made up a Truck (sort of :P ) using simple primitives and used that for the Dynamics..
Though ODE Solvers are much faster than Houdini's RBDs, there's a lot of difference between the accuracy and the ability to handle Complex Geometry within a simulation.
SESI implementing ODE in Houdini is awesome! Now we have a choice in case we want just a Pre-Vis or if we are working with simple Geometry types.
The simulation for DOPs took no more than 4-5 seconds per frame..(sometimes lower than this)
POPs and VOP POPs was almost realtime..

Specs:
500 different RBDs simulated together.
DOPs Sim time: 4-5 secs per frame. (max..sometimes lower than this)

which is amazingly fast considering my system configs:
2GB RAM,
intel core 2duo, 2.1GHz, 32 bit, WinXP

2 comments:

Virgil said...

how can it be for gaming if it can't output realtime? 4-5 seconds for a frame for a few hundred simple objects means it can't be used in games

bhavesh pandey said...

hi Virgil..the thing is Implementation..
An implementation of ODE in an application like Houdini is much more different than in a Gaming solution..

And trust me when I say..simulations take real long..I have used Realflow for Fluid sims as well as Rigid body sims..and it is pretty slow.
Houdini on the other hand handles RBDs really well and has an excellent Dynamics engine and even if you were to compare maya's or houdini's dynamics engine to ODE, ODE wins in terms of speed..but loses out on accuracy..which again can be increased using substeps..
(i cant really speak for Maya as I personally dont like it and dont use it)
There were 500 rigid bodies here and for this scale of simulation 3-5 secs per frame is a welcome amount..trust me :)

There's only one way of appreciating ODE implementation in Houdini..and thats by using it :)

Also feel free to check out these pages:

http://www.ode.org/
http://en.wikipedia.org/wiki/Open_Dynamics_Engine

cheers.
B