Jump to content

[SOLVED] Why must the position rest for a noise to behave consistently in shader ?


Mael_P

Recommended Posts

Hello,

For all my time in Houdini I have never shaded a lot. I however have played with pointVop quite bit, so I was surprised when I tried to make a noisy shader and I kept following the camera ?
Let me explain what the scene is :

- a grid, that has a principledshader

- a rotating null, parenting a camera

- 3 lights

In the shader, I take the position of a Global Variable, plug it into a noise, and in the basecolor of the principledshader.
Why is that, that when I render different frames (so the camera has moved), the noise stays the same. I can see the lights are not coming from the same angle, which is normal since the camera moved, but the noise is pixel for pixel displaying the same way.
I fixed it by pluging a restpost between the Global Variable and the input of my noise, but I can't wrap my head around why I have to do this in the first place ? Normaly everything makes sense in Houdini but this doesn't.
As I said I know my ways around Point Vops, so should I expect other different behaviors in the shader context ?

 

 

image.thumb.png.e49a170559a9c8d1055403f5842c81e0.png

 

image.thumb.png.69c2fd547d1b26dafb883f93280aa62d.png

 

image.png.66f61a6e76ec9bf381437811459cae67.png

 

image.png.393c467787d5f3e4180280d861571091.png

 

shader_must_rest.hiplc

Edited by Mael_P
title
Link to comment
Share on other sites

4 hours ago, Mael_P said:

I fixed it by pluging a restpost between the Global Variable and the input of my noise, but I can't wrap my head around why I have to do this in the first place ? Normaly everything makes sense in Houdini but this doesn't.
As I said I know my ways around Point Vops, so should I expect other different behaviors in the shader context ?

Change in your shader behavior compared to PointVops comes from a single fact - stack it on top of everything you already know,  and all of this will make sense again. Fact is: in Mantra (as probably any other renderer) world origin is at the camera position.

Link to comment
Share on other sites

15 hours ago, symek said:

Change in your shader behavior compared to PointVops comes from a single fact - stack it on top of everything you already know,  and all of this will make sense again. Fact is: in Mantra (as probably any other renderer) world origin is at the camera position.

That's good to know, thanks you !

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