PDA

View Full Version : Help with displacement shader


starfishRap
04-27-2011, 04:41 AM
Hi all,
I'm trying to make a displacement shader to implement into a snow shader.
But it's not working the way I intended.
The shader I'm trying to make is here:
snow shader (http://www.creativecrash.com/maya/tutorials/rendering-lighting/shaders/c/realistic-snow)

Below is the pattern I want to use as displacement.
http://i17.photobucket.com/albums/b99/rapcheng/project_LA/Shaders/snowShade_004.jpg?t=1303872739
Trying to apply the displacement into here.
http://i17.photobucket.com/albums/b99/rapcheng/project_LA/Shaders/snowShade_001.jpg?t=1303872850
Results:
http://i17.photobucket.com/albums/b99/rapcheng/project_LA/Shaders/snowShade_002.jpg?t=1303872792
http://i17.photobucket.com/albums/b99/rapcheng/project_LA/Shaders/snowShade_005.jpg?t=1303872812
http://i17.photobucket.com/albums/b99/rapcheng/project_LA/Shaders/snowShade_003.jpg?t=1303872811

Things that I've tried:
converting the pattern into HSV
converting the pattern into luminance
Using the fit node to decrease the displacement amount
Using the normalized node but it seems like displacement will not work after...

Someone please advise, thank you for your time.
for the file please visit:
http://forums.odforce.net/index.php?/topic/13106-help-with-displacement-shader/

Hun
04-30-2011, 10:33 AM
The black artifacts are caused by missing displacement bounds, probably. You have to add them on the OBJ level via the gear-menu.

starfishRap
05-02-2011, 05:36 AM
Hi I've manged to fix the problem.
Thank you


Here is a W.I.P shot:
http://i17.photobucket.com/albums/b99/rapcheng/project_LA/RnD_Terrain/snowShade_016.jpg?t=1304221815
To see more please visit my project blog
RnD Terrain (http://starfishrap.wordpress.com/rnd_terrain/)

Robert Magee
05-05-2011, 10:10 PM
In the new production build there is a new Mantra surface node which fixes the displacement bound issues which were there before. You can check it out to see the proper setup for displacement and displacement bound.

CGTalk Moderation
05-05-2011, 10:10 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.