I’ve set up some foliage including grass and trees with a directional wind shader. It all works splendidly until I try to use procedural methods for tree placement. On the left side of the screenshot I hand placed the trees and on the right they were placed procedurally.
My theory is that it is an issue with instancing on the foliage tool/spawner. My shader uses the object position for calculation, and may not be returning position per instance. Not 100% on it though, nor do I have any ideas on how to resolve the issue.
Any help is appreciated!
Hi there! I am fairly new to the community/software, however a few questions come to mind:
- Is the pivot point of the object set properly in your trees?
- Does this rotation issue only occur when using the tool? Or, does it react the same way when dragging the tree into the workspace via toolbox?
- Does the tree rotation only occur when the shader is applied to the trees?
I hope this helps!
Thanks for replying!
It is only when using foliage painting or a foliage spawner that this issue occurs. They look correct when I place them by hand.
Disabling the shader does kind of solve the issue. Except it gets rid of the directional wind. Which is kind of a bummer.
I think the pivot point/object position may be the issue, but only for procedurally placed instances.
Which is where I get lost. I don’t understand what the difference is between a foliage painted instance and a hand place one in terms of object position.
Whew… Got wordy there.