Masoud Posted Tuesday at 04:49 PM Share Posted Tuesday at 04:49 PM Hi everyone, I'm trying to copy some grass onto the top of my Vellum grains simulation. However, the grass blades aren't aligning with the direction of the grains — they always point straight up instead of following the grains' orientation. Does anyone know how I can make the grass follow the grains' axis properly? Thanks in advance for your help! Grain Grass_01.hip Quote Link to comment Share on other sites More sharing options...
Librarian Posted Tuesday at 10:31 PM Share Posted Tuesday at 10:31 PM Check rolling debris file in qLib Master files (workFlow) . You need orient Att.. @Masoud Quote Link to comment Share on other sites More sharing options...
Masoud Posted Tuesday at 11:33 PM Author Share Posted Tuesday at 11:33 PM Hi Tesan, I've downloaded and installed qLib, but I haven’t been able to find any clear documentation or guidance on how to use it. Is there a simpler way to achieve this effect, or could you point me toward any resources that might help? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Librarian Posted 18 hours ago Share Posted 18 hours ago I just used last vex after simulation that you have in That file . For more advance Trick and Study if you search Grains orientation you gonna find some Studies on that Topic and Vex Codes. @Masoud Quote Link to comment Share on other sites More sharing options...
Masoud Posted 13 hours ago Author Share Posted 13 hours ago (edited) I opened the "rolling_debris.hip" file and confirmed that the POP Solver already aligns particle orientation to the surface correctly, without requiring any additional code. What I actually need is the same behavior for Vellum Grains, but it seems that Vellum doesn't orient the particles properly by default. I searched for "Grains Orientation" but couldn’t find any helpful tips. Since the Vellum solver doesn’t compute orientation by default, I manually applied an initial orient attribute before the solver. This stabilized the orientation, but now I need it to align properly with the animation. Edited 13 hours ago by Masoud Quote Link to comment Share on other sites More sharing options...
Masoud Posted 13 hours ago Author Share Posted 13 hours ago I added the "up" and "orient" attributes before sim, and included these lines of code after it. The alignment has a little improved, but it's still not exactly what I need: vector axis = v@v * v@up; float angle = @Time * $PI; vector4 spin = quaternion(angle, axis); @orient = qmultiply(@orient, spin); The issue is that the grain's orientation resets to its initial state after they reach to the rest (zero velocity). Any ideas to improve it? Quote Link to comment Share on other sites More sharing options...
Masoud Posted 13 hours ago Author Share Posted 13 hours ago (edited) @Librarian Could you share the codes, please? Edited 6 hours ago by Masoud 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.