Jump to content

Help with displacement shader


StarfishRap

Recommended Posts

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.

snowShade_004.jpg?t=1303872739

Trying to apply the displacement into here.

snowShade_001.jpg?t=1303872850

Results:

snowShade_002.jpg?t=1303872792

snowShade_005.jpg?t=1303872812

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.

snowShader.hipnc

Edited by StarfishRap
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

snowShade_006.jpg?t=1303885811

Bump up gamma to see clearly...

Link to comment
Share on other sites

Could someone also please tell me what is this problem?

snowShade_007.jpg?t=1303886205

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...