andrulis Posted March 9, 2015 Share Posted March 9, 2015 Hi there! how to use Sample Sphere vex node or sample_sphere_uniform vex function? Quote Link to comment Share on other sites More sharing options...
bunker Posted March 14, 2015 Share Posted March 14, 2015 (edited) this is how you use it: // random vectors inside a sphere v@v= sample_sphere_uniform(rand(@P)); // random vectors inside a cube v@v= rand(@P) * vector(2) - 1; // random vectors inside a sphere, with all vectors normalized v@v = normalize(rand(@P)*vector(2)-1); random_vectors.hip also have a look at "sample_direction_cone" it does the same but inside a cone, very handy. Edited March 14, 2015 by bunker 2 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.