PDA

View Full Version : Instancing: points mode: managing collisions/density of instanced objects?



jeric_synergy
11-19-2012, 05:43 PM
Doing a simple-minded distribution of LegoŽ-esque xmas trees over a 'landscape'. As it happens, in my original random distribution of the the trees in Points mode two instances of the trees intersect.

I know I can change the Seed value to get different distributions, but in the interest of discussion AND having more control is there a way to make that distribution sensitive to the dimensions of the instanced object, such that one could prevent as much as possible collisions between instanced objects?

dwburman
11-19-2012, 06:00 PM
Are you using the points on the mesh, a separate object (point cloud), or an emitter?

If you're doing a separate object/point cloud, you could do a Merge Points and use the Fixed option and set the distance to equal the diameter of the tree (half the diameter might work too). That should get combine any points that are close enough together to overlap.

Tools in the instancer to prevent overlapping would be nice too. :)

jeric_synergy
11-19-2012, 06:51 PM
If it were possible nodally, that would be a very good preset to ship w/LW.

Sensei
11-19-2012, 07:09 PM
SprayBgPoints video tutorial
https://www.youtube.com/watch?v=KKKsNMd_kCM

Minimum Spacing parameter adjust to your needs control whether instances will intersect or not.

Newer version of it, not showed in video, has also Surface and Part parameters in Polygon mode.
Then user can use SurfacesToLayers
https://www.youtube.com/watch?v=QB5uKgchh1M
or PartsToLayers
https://www.youtube.com/watch?v=_-wXoQm5ZMA
That's the primary reason why I made them.
To use together with SprayBgPoints with LW instancing in mind..
Different layer picked in in Instance generator in point mode, has different density of sprayed points (different spacing between them).

jeric_synergy
11-19-2012, 08:06 PM
Sensei, that SprayBgPoints is a very cool tool. Congrats!

alexs3d
11-20-2012, 12:24 AM
@sensei - that´s a really nice plugin ;) perfect for placing trees, stone ... on a surface .... but this feature should be native in lightwave