b1m2x3 Posted May 16, 2008 Share Posted May 16, 2008 (edited) Well, it's almost 3am, and i can't seem to get this to work. I'm trying to get these grids that are copied to these particles to randomly orient themselves. They have no velocity, so i thought creating that attribute would work, and in details view with this, vx, vy, and vz are all different per particle, BUT they still all align themselves! The scale is randomly affected... so why not vel/direction!? Should i make an orientation attribute? I've done this before, but it's late and i forget what i did Edited May 16, 2008 by b1m2x3 Quote Link to comment Share on other sites More sharing options...
GallenWolf Posted May 16, 2008 Share Posted May 16, 2008 Try it in the normals dude Also, you might want to offset your rand($ID) a bit to like rand($ID+1.2323) etc. for each x y z normal. Else they're gonna be the same angle all the time. GW Quote Link to comment Share on other sites More sharing options...
b1m2x3 Posted May 16, 2008 Author Share Posted May 16, 2008 (edited) Try it in the normals dude Also, you might want to offset your rand($ID) a bit to like rand($ID+1.2323) etc. for each x y z normal. Else they're gonna be the same angle all the time. GW adding to the normals did the same thing as adding to velocity in this case. offsetting the x y z did help a little though, but for the most part, they still line up. Edited May 16, 2008 by b1m2x3 Quote Link to comment Share on other sites More sharing options...
MIguel P Posted May 18, 2008 Share Posted May 18, 2008 adding to the normals did the same thing as adding to velocity in this case.offsetting the x y z did help a little though, but for the most part, they still line up. Set the components to [ rand($ID)-0.5, rand($ID+1)-0.5, rand($ID+2)-0.5]. You'll get a more random result. Also, since the velocity vector that comes from pops has a length, you should override the parameter, not just add the rand to it. But I would add the rand functions in the rotation fields at the copy sop multiplying it by 360 degrees: rand($ID+x)*360. 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.