Copy link to clipboard
Copied
I am trying to scatter leaves across a shape (a sphere right now) using mesh sampler in conjunction with Geometry instancing. The problem is that the orientation is messed up, the leaves point outward from the sphere correctly, but the face of the leaf is kind of random. If I turn off particle orientation all the leaves point up which would be ok if I could copy the closest surface normal. I suppose I could probably get there if I could get access to the point set's vector info but not sure how to do that either.
Any recommendation on how to proceed would be appreciated.
Copy link to clipboard
Copied
Hello,
Can you please share a screenshot demonstrating the issue? This would help reproducing the problem accurately.
Best regards.
Copy link to clipboard
Copied
Hi Luca!
I've attached a screenshot below of what I am running into. I'm using a sphere as a stand in for the "bush" shape and flattened cubes as stand ins for the leaves. I'm sampling the mesh from a scene rasterization to get the leaves to only gather on top of the mesh. All that is behaving as expected. However when I instance the geometry it is orienting the "leaves" in this kind of mirrored fashion that you see in the screenshot. I tried doing a crude sketch in the lower right of what I'm hoping to achieve, with the "leaves" extending out from the surface like they are now, but with the broad face of the leaf rotated to face up (the green lines trying to indicate the normal direction). I think if I can get that working then I should be able to bend them and add jitter and whatnot to make a believable shrub exterior.
Let me know if that clarifies things or if I need to dig in further. Thanks for your help!