Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

I contacted them, but for now there is no way to check it on their website until they create the new one. Maybe I'll code a random scatter replicate plugin with some along surface options and a replace particles with object plugin. I was supposed to do that some 15 years ago and it is still needed today.

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...
×
×
  • Create New...