jjstanley Posted August 19, 2006 Share Posted August 19, 2006 I know this is a problem which has been brought up before but after ready everything I can find on the subject I still can't get a solution. I am working on a shader in VOPs that needs to change opacity based on the distance from a point in world space. I have it working great except that I can only get it to base the distance from the camera. At first I couldn't figure it out because I would have it perfect and then when I would move the camera it was all screwed up again! How can I reference a point in world or object space to base the opacity change from? I know this has been asked before but I can't find anything to help me out on this one Quote Link to comment Share on other sites More sharing options...
hoknamahn Posted August 19, 2006 Share Posted August 19, 2006 I know this is a problem which has been brought up before but after ready everything I can find on the subject I still can't get a solution. I am working on a shader in VOPs that needs to change opacity based on the distance from a point in world space. I have it working great except that I can only get it to base the distance from the camera. At first I couldn't figure it out because I would have it perfect and then when I would move the camera it was all screwed up again! How can I reference a point in world or object space to base the opacity change from? I know this has been asked before but I can't find anything to help me out on this one If I understand you right you should use Space Change To Object VOP and Null Obj in your scene. That null will be like a reference to your "world" coordinate system. Quote Link to comment Share on other sites More sharing options...
jjstanley Posted August 20, 2006 Author Share Posted August 20, 2006 Thanks, I tried that and it worked but I found that the Rest Position VOP worked too. 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.