0
$\begingroup$

Basically like the title; I'm working on a terrain generator in DLang and have been using Blender for rendering. It's been working great so far, but I'm now attempting to line up trees and grasses on the map.

Grasses are easy enough with hair-instanced-objects, but trees vary a bit more and have to be lined up reasonably well with the relative altitude. There are two obvious ways for me to do this; one is to read over the height map and determine it with that—which can become a problem when something is rotated—and another is to spawn the saplings in a collection that's hidden from the render, and instance them as sparse hair particles at exact locations.

There's a remarkable amount of control over particle systems available in Python, but I've yet to find a way to add a specific root to it. I'm not even 100% sure that it's possible. I would need to add an exact root, at a specific UV location on the mesh. If someone could help me out, I would really appreciate it.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.