exarhos2003 Posted November 3, 2003 Share Posted November 3, 2003 ran into a stump, in my vex shader It calculates the angle between two vectors for diffuse value. then its divided by the angle to give a value of one. this is just a test use. So, it displays in the SHOP viewer, but not on the geometry. Im converting my value(float) to a vector, first input only for red color,then into lighting diffuse, then output(Cf). any thoughts, christopher Quote Link to comment Share on other sites More sharing options...
meshsmooth Posted November 3, 2003 Share Posted November 3, 2003 At the moment I am biting off more than I can chew with VOPs and getting into the area of the dot product. and things I have found is it returns the a number that if you want the angle you need to put it through the 2 normalised vectors then put it trough the acos to get the angle in radians. acos( dotp(V1,V2)) convert it to degrees if that is what you need to work with. Now I am new to this so I may not be rite but it may help. Quote Link to comment Share on other sites More sharing options...
exarhos2003 Posted November 3, 2003 Author Share Posted November 3, 2003 I have that all set up. Its just that when i plug it into the output node, im not getting the result i want. ill post an image. 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.