goldleaf Posted March 12, 2012 Share Posted March 12, 2012 (edited) I've gone back to a little side project I started back in 2010, creating a Bullet POP to better understand POPs/HDK/Bullet/C++. I've been able to get it working in H12 (spheresA_bulletPOP.mov), but I'm finding the particles' rotations are going nuts (see the attached file particle_rotation.mov), spinning every which way. Visualizing the velocity by putting each component ($VX,$VY,$VZ) into each RGB channel respectively, the velocities seem normal (velocity_rgb.mov). Coloring the particles with the magnitude of the velocity (see velocity_ramp_scrn.png) also shows some erratic behavior (velocity_ramp.mov). Is this because POPs have the orientation, rotation, and velocity all driving the single velocity vector, and in bullet they are separate (and rotation is a quaternion)? Or is there a getRot() function (or something like that, which I haven't been able to find) that I can use to set the rotation of each particle from bullet? My (very rough/unstable) code can be found at: https://github.com/crydalch/houdini-plugins, if you'd like to take a peak. Thanks so much! spheresA_bulletPOP.mov particle_rotation.mov velocity_rgb.mov velocity_ramp.mov Edited March 12, 2012 by goldleaf 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.