StarfishRap Posted April 27, 2011 Share Posted April 27, 2011 (edited) 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 Below is the pattern I want to use as displacement. Trying to apply the displacement into here. Results: 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. snowShader.hipnc Edited April 27, 2011 by StarfishRap Quote Link to comment Share on other sites More sharing options...
dayvbrown Posted April 27, 2011 Share Posted April 27, 2011 Hi there, I can't look into your file right now but the "boxy" tearing is likely caused by displacement bounds. You need to add a "properties" vop in your shader and plug it into the "output collect" (i'm assuming you're using houdini 11) now select your properties and use the gear menu (in the top right next to the "H") to "edit paramter interface", a new window will pop up. Under "create parameters" go to the second tab "for rendering". Navigate "mantra 11.0 -> shading -> Displacement Bounds, select it and click the arrow pointing to the right. Hit apply and accept. You'll see that you now have a diplacement bounds slider in the parameter window of your properties. Start with a small number (say 0.05) and adjust it as required, this is basically letting mantra know how far to check for displacements and will stop all that nasty tearing. Hope it helps, Dave. Quote Link to comment Share on other sites More sharing options...
StarfishRap Posted April 27, 2011 Author Share Posted April 27, 2011 Hello Dave, Thanks for your reply. Well the displacement bound is something new to me. Thanks for sharing! I've tweaked the values and notice some minor changes but my geometry is still going haywire. Might be wrong inputs and outputs while connecting nodes in my displacement? But just can't seems to figure out what's wrong... Bump up gamma to see clearly... Quote Link to comment Share on other sites More sharing options...
StarfishRap Posted April 27, 2011 Author Share Posted April 27, 2011 Could someone also please tell me what is this problem? random missing faces? Quote Link to comment Share on other sites More sharing options...
dayvbrown Posted April 27, 2011 Share Posted April 27, 2011 Could someone also please tell me what is this problem? random missing faces? hey hey, i had a quick look at your file, and there are a couple of things to note. Rest Position - rest position is something that needs to be added to your geo in sops to have any relevance. I have done that for you, if you are using animated geometry make sure the rest pos sop is Before any animation or that it is referencing a still frame (in the second input). I've also unplugged it from the "Displace along normal" position input in the shader, just leave that as default and it will take P. The random missing faces is the displacement bounds issue i went over before, i've added that properties vop and it has disappeared. Outside of that it looks like you've got a nice noise pattern going now on the blue render so give these changed a go if you want and hopefully that will help. Dave. snowShader_dispBounds.hipnc Quote Link to comment Share on other sites More sharing options...
StarfishRap Posted May 2, 2011 Author Share Posted May 2, 2011 Hi I've manged to fix the problem and learned a lot! Thank you very much Here is a W.I.P shot: To see more please visit my project blog RnD Terrain Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.