Morning morning the almighty community!
I tried to build a customized scatter that can generate static mesh/foliage on mesh.
Basically I just followed this tutorial by Harry from the Antler Studios
Also followed this one to learn how to get some randomization.
My question is, how can I get a static result after multiline trace by channel is done? I’m using break hit result to extract from the hit calculation then added some params to create some random on rotation and scale. But for now whenever I adjust ANY parameters, the multiline trace will re-calculate. Am I doing anything wrong with it? Is it possible for me to rotate/scale those mesh instance on each local axis?
Thank you so much my hero!!
Just let you know I’m still very new to the BP system and I’m terribly sorry but do you mind to explain a bit of it please? What does this integer do? How can I set the correct number of it? Should I connect the random rotate/scale to the New Instance Transform?
So this will rerun the construction even when you want to change the transform of an instance. I think that’s unavoidable. But, you can use the construction to make the instances, and change their transform at runtime, no problem…
Thank you so much for teaching! Sorry for the late reply I just got time to take a breathe.
Can you take a look at my BP please? They still changing position all over the bounding area.
So basically I’m trying to achieve generate static mesh on the surface of another large terrain mesh. Is there a better solution than using a Multiple Line Trace? Is that the reason why it kept changing location?
You haven’t done anything wrong. But if you’ve used ‘random point in bounding box’, the trees will jump around every time you change parameters. It’s because the whole script runs every time, nothing you can do about it.
So, you might as well, just add rotation as you’re making the instance. I think the stuff with specifying the instance index is to do with making changes at runtime. For example, you could make the trees rotate, which you probably wouldn’t want to do ( that’s what I’m doing above ).
Thank you so much for your kind and patience!! I’m really appreciated that!
BP is like a mystery for me with no doubt.
lol mind if I ask one last question please? Do you have any recommendation tutorial or docs that I can take a look at how to generate static mesh on selection mesh surface or control it by a mask please?