hopbin9 Posted May 5, 2011 Share Posted May 5, 2011 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, Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted May 5, 2011 Share Posted May 5, 2011 There's a transform VOP node which will convert from one coordinate space to another. See the help for the node for all the spaces. Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted May 5, 2011 Author Share Posted May 5, 2011 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. Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted May 5, 2011 Share Posted May 5, 2011 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. 1 Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted May 5, 2011 Author Share Posted May 5, 2011 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. Quote Link to comment Share on other sites More sharing options...
Erik_JE Posted May 6, 2011 Share Posted May 6, 2011 You can also use the Rest VOP instead of Transform VOP. Then the shader will stay also if you animate the object. Too use the Rest VOP you also need to use the Rest SOP. 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.