Jump to content

Surface position in object space


hopbin9

Recommended Posts

Hi,

I'm using the Global Variables node to bring in the Surface Position (P), but when I work with it. It seems like this Vector is in world space, and I need the local Object Space of the point being shaded.

Is there a way of getting that point?

Thanks,

Link to comment
Share on other sites

thanks, I was looking for a way to import an object P. Never thought of transforming it.

I wish the manual would provide better details which space the data is in. Took me a while to figure out that the P was in world space. When developing shaders for 3ds Max the shading point was always in object space.

Link to comment
Share on other sites

thanks, I was looking for a way to import an object P. Never thought of transforming it.

I wish the manual would provide better details which space the data is in. Took me a while to figure out that the P was in world space. When developing shaders for 3ds Max the shading point was always in object space.

The surface position (P) from the global variables in a shading VOP is actually camera space, not world space. This throws a lot of people off, myself included.

  • Like 1
Link to comment
Share on other sites

The surface position (P) from the global variables in a shading VOP is actually camera space, not world space. This throws a lot of people off, myself included.

arg. thanks for clarifying. They should really rename the label in the Global Variables to reflect this fact.

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