In maya I have the option to set the initial state of a dynamic object. This way I can put a glass on a table, let it calculate the collision and use this state after some frames as initial state for my dynamics.
Do I have something like that in houdini?
Initial State for dynamics
18959 9 2- haggikrey
- Member
- 45 posts
- Joined: July 2005
- Offline
- Allegro
- Member
- 696 posts
- Joined: March 2006
- Offline
yes, you can simply simulate an object until it settles where you want, then cache it to disk (at the geometry level, right click the dop import node and save geometry).
once you've cached to disk, you can bring it back in (with a file node) and then plug the file node into your dop import node rather than whatever had been plugged into it.
once you've cached to disk, you can bring it back in (with a file node) and then plug the file node into your dop import node rather than whatever had been plugged into it.
Stephen Tucker
VFXTD
VFXTD
- haggikrey
- Member
- 45 posts
- Joined: July 2005
- Offline
- haggikrey
- Member
- 45 posts
- Joined: July 2005
- Offline
- Allegro
- Member
- 696 posts
- Joined: March 2006
- Offline
- haggikrey
- Member
- 45 posts
- Joined: July 2005
- Offline
- haggikrey
- Member
- 45 posts
- Joined: July 2005
- Offline
I now use a dynamics file written with the file node to create an initial state .sim file.
Works fine.
But I have one problem. I have a simple scene. I have some cubes that build a wall. Then I want to shoot a sphere into the wall. In my dop I have the sphere as well as my cubes and the floor plane.
Because I first want the cubes to settle before I shoot the sphere into the wall, I first set the sphere rbd to not active.
Then I simulate. The boxes settle and the last written file is used as initial state for my dop network. But now I want the sphere to be an active rigid body and let it collide with my wall.
Unfortunatly my sphere does not move because the initial state seem to overwrite my active checkbox or something like this.
I hope I could explain what the problem is.
I've added the scene file. Simply go into the dop network, turn off the active setting for the sphere, let the simulation write some files and use one file as initial state. Then make the sphere active again and try to simulate. Nothing happens.
Any ideas?
Works fine.
But I have one problem. I have a simple scene. I have some cubes that build a wall. Then I want to shoot a sphere into the wall. In my dop I have the sphere as well as my cubes and the floor plane.
Because I first want the cubes to settle before I shoot the sphere into the wall, I first set the sphere rbd to not active.
Then I simulate. The boxes settle and the last written file is used as initial state for my dop network. But now I want the sphere to be an active rigid body and let it collide with my wall.
Unfortunatly my sphere does not move because the initial state seem to overwrite my active checkbox or something like this.
I hope I could explain what the problem is.
I've added the scene file. Simply go into the dop network, turn off the active setting for the sphere, let the simulation write some files and use one file as initial state. Then make the sphere active again and try to simulate. Nothing happens.
Any ideas?
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
Split your scene into layers. Your objects saved in sim files still can affect other objects. So simulate one part of your scene, then import it into another part. One branch comes from a previous sim and second has a RBD solver that solves reaction of new object on them self, gravity and previously saved object which are now passive.
In docs there should be an example of layered simulation I guess…
cheers,
sy.
In docs there should be an example of layered simulation I guess…
cheers,
sy.
- haggikrey
- Member
- 45 posts
- Joined: July 2005
- Offline
- huacho85
- Member
- 25 posts
- Joined: Sept. 2009
- Offline
-
- Quick Links