ObiNon Posted June 30, 2017 Share Posted June 30, 2017 (edited) Hey Guys, I am working on my vector rotations with vops and wrangles ... I have a particle launcher that aligns the particles normal with velocity vector of the particle. The problem I am having is that the particle is flpping when it stops. Here is a test .hip. Thanks c_launch_3.hip Edited June 30, 2017 by Mdonovan Quote Link to comment Share on other sites More sharing options...
ObiNon Posted July 5, 2017 Author Share Posted July 5, 2017 Here is the wrangle code I am using to align the normals... if (@speed > 5) {@N = -@v; v@lastalign = @N; i@stopped = false; } if (@speed <= 5){ i@stopped = true; @N = @lastalign; } For some reason the normal is still getting set to 0,0,0 even though I am setting it only if the speed of the particle is above 5. It just occurred to me that maybe I should be doing this inside my popnet ? Quote Link to comment Share on other sites More sharing options...
ObiNon Posted July 5, 2017 Author Share Posted July 5, 2017 (edited) 42 minutes ago, Mdonovan said: Here is the wrangle code I am using to align the normals... if (@speed > 5) {@N = -@v; v@lastalign = @N; i@stopped = false; } if (@speed <= 5){ i@stopped = true; @N = @lastalign; } For some reason the normal is still getting set to 0,0,0 even though I am setting it only if the speed of the particle is above 5. It just occurred to me that maybe I should be doing this inside my popnet ? That fixed it ... I am doing my alignment inside the popnet and the normal is staying fixed at speed of 0. Edited July 5, 2017 by Mdonovan Quote Link to comment Share on other sites More sharing options...
andre steyn Posted July 18, 2018 Share Posted July 18, 2018 Hi Mdonovan. do you by any chance still have the fixed hip file to your problem? I am playing around with the exact same thing. I am actually a compositor still new at Houdini. 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.