Creating Random Values in Materials based on Object Position
Vložit
- čas přidán 11. 09. 2024
- Today we have a look at how we can create almost Random Values in Materials to add variety to our shaders.
If you want to learn more about Materials in Unreal Engine check out my new course here:
tharlevfx.gumr...
If you have any questions about Game Art VFX or the Unreal Engine then email me: tharlevfx@gmail.com
Or you can find more tutorials on my website: www.tharlevfx.com
or check out my work on the Unreal Marketplace:
www.unrealengi...
or follow me on Twitter: @tharlevfx If you'd like to support the channel you can do so on Patreon: www.patreon.com/tharlevfx
unsure if this node didn't exist when this video was made years ago but in 5.2 the per instance random node allowed me to make a forest of trees have variety, super cool. the frac node worked perfectly to make the color variation not entirely random.
Same as all the other comments here but this was SUPER helpful. Thank you for the in depth explanation.
Glad it was helpful!
I was just about to ask how to do this for procedural foliage but you already covered it. Thanks buddy! :D
Happy to help!
Thanks Tharle!
this helped me out a huge bunch, thank you.
Glad to hear it!
legend
Thanks! Very helpful
Super fun :)
thx
That's great, thanks!
I was just wondering how you get colours on your "foliage" spheres? Mine are still between black and white...
I should have missed something :)
So I would use the random black and white value to lerp between two colours - very powerful and easy to control setup
@@tharlevfx Thanks for answering. Would you suggest adding a "Lerp" right after the "vertex interpolator"?
texture switch random per instance any help
Hey! How can I achieve a slightly more simple goal of having randomly either 1 or 0 in the shader?
Randomise a value between 0-1 and then just use an if > 0.5, 1 else 0
@@tharlevfx So simple, Thank you!
It's impossible to actually see your material nodes, or anything you do in detail. It's wayyy too small..
do you have a 480p screen? because it's not that small...