Jump to content

Planting trees, plants and rocks with bullet physic : limits not working


MarquisDeSang
 Share

Recommended Posts

I have a deformed terrain model.

Above it I copy tons of trees, plants  and rocks objects.

Then I use bullet physic to place those elements (randomly) on the surface of the terrain.

It's working, but I would like  the falling objects to stop moving on impact and block their rotation (prevent them from rolling).

I tried to activate all the limits, all link types and bullet properties without success : everything continue moving and rotating (on the steep hills).

In Vue d'Esprit there is a drop function that does exactly that. You place above then hit the drop button.

I hope to use this technique eventually with "Force" to place/scatter objects on objects.

Link to comment
Share on other sites

Just open the bullet session and press the preview button in the camera 3d view.

I did not touch anything this time, so the goal is to lock translation in X and Z and lock all rotations.

So as soon as a tree touch the terrain, I would like it to stop moving.

Placing stuff with physic is a technique that I have used for a long time. Once the physic simulation is ok, I go to the last frame, create a keyframe for all trees then remove the animation flag (This part is working fine). Then I select all the threes and move them down a little so they dig themselves a little.

Planting Trees With Bullet (Lock Translate X Z and all Rotations).zip

Link to comment
Share on other sites

Ola Jean!

We need to ask our friend Chip Pedersen.. he is the Bullet Master..

Here, I did a simple thing which doesn't fully stopped the trees, its possible, I don't remember exactly the trick with forces.

Planting Trees With Bullet 2.zip

Use the contextual menu to change values between all groups fast in the link window.

Thanks

Tom

1.png2.png3.png

Link to comment
Share on other sites

I did it! No need for "Force" or anything. The deactivation conditions must all be met at once, not only one. So the simulation will stop if the object move less than 30 unit and 90 degrees during 1 second. Voila! Of course this must be adjusted to the scene.

I learned this technique from a guy working for 3D Studio : he showed me how to place realisticaly books in a book shelves by placing books normally inside, activating the physic simulation then shaking the furniture. He then proceeded to show me how to place rocks on a terrain with the physic.

So I guess that this technique combined with "Force" can be a replacement to "Flock" plugin (in some cases).

Screen Shot 2017-01-17 at 18.18.22.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...