Jump to content

World Space Position?


Recommended Posts

Hi everyone,

I've got a problem that has me stumped. In my setup, I'm flying with a camera through a volume that has its density modulated via a couple of noises in the mat context. But whatever I do, I'm unable to make the noises stick to their position, it seems like the P attribute from the globals node is always in camera space. I must be missing something obvious since a lengthy internet search didn't give me any meaningful results. I've attached my file, to observe the problem just render a frame and then jump to another frame, the camera will have moved but the noise pattern is in exactly the same place.

Thanks in advance
Paul

world_space_noise.hip

Link to comment
Share on other sites

Oh joy of joys, I found the solution, as usual, right after posting the question, and it is indeed rather obvious. A Transform (matrix) node (the one with the red icon) with its default settings does exactly what I need, i.e transforming the current space to object or world space and the noise stays in place.

Edited by Kaprolactam
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...