hito2501 Posted April 9, 2012 Share Posted April 9, 2012 I need to find the cosine of the angle between the normal vector and the vector of the point of Velocity tell me what node is returns the scalar product of two normalized vectors? Quote Link to comment Share on other sites More sharing options...
eetu Posted April 9, 2012 Share Posted April 9, 2012 I need to find the cosine of the angle between the normal vector and the vector of the point of Velocity tell me what node is returns the scalar product of two normalized vectors? Dot Product. It returns the cosine of the angle, so no need to use a cosine node after that. Quote Link to comment Share on other sites More sharing options...
hito2501 Posted April 9, 2012 Author Share Posted April 9, 2012 thanks a lot! Quote Link to comment Share on other sites More sharing options...
hito2501 Posted April 11, 2012 Author Share Posted April 11, 2012 (edited) One more question please I need to paint the surface of a moving subject focusing on the difference between the normal direction and direction of the acceleration of its surfaces. tell me how to convert the returned node "Dot product" value in the format of a float value in the format of color (vector?). I want to mix it with a constant color and assign the object. node "Float to vector" produces only black color.. Edited April 11, 2012 by hito2501 Quote Link to comment Share on other sites More sharing options...
old school Posted April 12, 2012 Share Posted April 12, 2012 The nice thing about dot(normalize(N), normalize(accel)) is that it will return the cosine that ranges from -1 to 1 and is easy to fit it to 0-1 and then feed in to a color ramp to give you the freedom to color as you wish. accel_dot_N.hip 1 Quote Link to comment Share on other sites More sharing options...
hito2501 Posted April 12, 2012 Author Share Posted April 12, 2012 thanks for the help! Quote Link to comment Share on other sites More sharing options...
hito2501 Posted April 13, 2012 Author Share Posted April 13, 2012 (edited) Hi, it's me again please tell me - is it possible to transfer the surface color of the resulting shop shader to point color from the vopsop without rendering and loading texture? and if this is the only way please tell me how to render this texture? my job to make the figure of a dancing man made of paint, with strong movements which fly off drops of ink With your help I was able to paint the figure, depending on the strength and direction of the surface velocity, but still, these areas are too large to simulate the desired shape of the liquid. now I want to combine this result with the result of ambient occlusion, but how to combine them if they are in a different SOPs... Edited April 13, 2012 by hito2501 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.