Adding noise to point normals

   4424   5   1
User Avatar
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
User Avatar
Member
670 posts
Joined: Sept. 2013
Online
You can adjust scale, roughness and amplitude to tame the noise.

Attachments:
grass_wind.hipnc (125.7 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
670 posts
Joined: Sept. 2013
Online
And here is a more complex example.

Attachments:
grass_wind2.hipnc (272.8 KB)
grass.png (136.6 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
15 posts
Joined: Aug. 2015
Offline
Great example, i did the first version before in a production by moving the normals, but the second one bends everything nicely. What would the preferred method be to replace the curves with actual geometry (liek a low-res wheat plant)? without absolutely killing the machine.
User Avatar
Member
670 posts
Joined: Sept. 2013
Online
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

Attachments:
wheat_wind.hipnc (351.0 KB)
wheat_wind2.hipnc (378.6 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
15 posts
Joined: Aug. 2015
Offline
Thanks Konstantin, appreciate your answer. Clever solution.
  • Quick Links