Adding noise to point normals
4390 5 1- Tom Hurd2
- Member
- 7 posts
- Joined: Sept. 2015
- Offline
Hi,
So I have a small issue that I'm sure someone here could help me with. I am currently working on a project requiring a wheat field with a gentle breeze flowing through it, the field is reasonably far from camera so I figured a simulation would be overkill. My process so far is to create a simple terrain, scatter points, assign point normals, add noise to the normals to fake the “sway” and then copy the geometry to the points, inheriting their movement from the normals.
My problem is adding the noise to the normal direction in the first place, I have managed to get the normal to move but they jump quite erratically. Is there a way to add smooth noise to point normals in order to fake the sway of grass?
Thanks, Tom
So I have a small issue that I'm sure someone here could help me with. I am currently working on a project requiring a wheat field with a gentle breeze flowing through it, the field is reasonably far from camera so I figured a simulation would be overkill. My process so far is to create a simple terrain, scatter points, assign point normals, add noise to the normals to fake the “sway” and then copy the geometry to the points, inheriting their movement from the normals.
My problem is adding the noise to the normal direction in the first place, I have managed to get the normal to move but they jump quite erratically. Is there a way to add smooth noise to point normals in order to fake the sway of grass?
Thanks, Tom
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
You can adjust scale, roughness and amplitude to tame the noise.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
And here is a more complex example.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- rpdacosta .
- Member
- 15 posts
- Joined: Aug. 2015
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
You can apply the same principle to any geometry as long as you apply a vertical black to white gradient to it (first file). In other cases a wirecapture plus a wiredeform node might come in handy (second file).
Edited by Konstantin Magnus - Feb. 17, 2018 18:22:24
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- rpdacosta .
- Member
- 15 posts
- Joined: Aug. 2015
- Offline
-
- Quick Links