sly Posted September 5, 2012 Share Posted September 5, 2012 (edited) Hi, I'm facing some problems : i made some primitives groups an created a point in the centroid of each . Now i would like to copy each group on the corresponding point for animate them with some particles ( a little like the primitive sop would do , but whith some primitives groups) maybe is there a way to convert a group of primitives to a single primitive (and so , using the primitive sop ) ? hope i'm understandable see you, primGroupToParticles.hipnc Edited September 5, 2012 by sly Quote Link to comment Share on other sites More sharing options...
ben Posted September 5, 2012 Share Posted September 5, 2012 Just a quick and dirty hack. Not the best way to do it, it's slow and would be appropriate for something bigger. But it works primGroupToParticles_01.hipnc Quote Link to comment Share on other sites More sharing options...
sly Posted September 5, 2012 Author Share Posted September 5, 2012 thank you , i tried the same kind of technique too , but as you said , it pretty slow when number of objects go up (mine was even slower ) Quote Link to comment Share on other sites More sharing options...
koen Posted September 5, 2012 Share Posted September 5, 2012 I would love for sidefx to create a sop that does this. However, most of this functionality exists in the the dop import node. I have a feeling you should be able to hack a solution using this. I did not have a lot of time, but here is a simple example, with many issues. However, it might point you in the right direction. The idea is to make a "dumb" dop net that just is used to create a position on the objects. These you can later use to transform the incoming groups in a dopimport node. In the example, not everything transforms well, and there are no rotation etc. Please note the animation of the points is done in sops not in the dop net. you can get the animation from anywhere, for example particles. transform_groups.hip Hope it helps, koen Quote Link to comment Share on other sites More sharing options...
sly Posted September 5, 2012 Author Share Posted September 5, 2012 (edited) thank you Koen , very interesting approach and it seem to work well , more reactive than the (very slow) delete/copyStamp solution , i m not very used with dop , so it will take me a little time to understand all the aspects of your file . i will dig into it thanks, Sylvain. Edited September 5, 2012 by sly Quote Link to comment Share on other sites More sharing options...
3__ Posted September 5, 2012 Share Posted September 5, 2012 another way using add & primitive... primGroupToParticles_addsop.hipnc Quote Link to comment Share on other sites More sharing options...
ikarus Posted September 6, 2012 Share Posted September 6, 2012 You can store the centroid of each primitive group, then in a foreach sop, zero out the prim group via its centroid, then apply the corresponding particle position. Unfortunately you won't get rotations with simple particles. If you generate a rotation matrix on each particle then you can also apply that to the zero'd out prim group before transforming it to the particle position. Quote Link to comment Share on other sites More sharing options...
sly Posted September 7, 2012 Author Share Posted September 7, 2012 (edited) @cpb : thank you for sharing , it works well and it's a lot more reactive than what i tried @ikarus : thanks for the tip i learn a lot from your exemples. Edited September 7, 2012 by sly Quote Link to comment Share on other sites More sharing options...
tjeeds Posted September 8, 2012 Share Posted September 8, 2012 cpb, pullin' out the gnarly trixx from way back! Quote Link to comment Share on other sites More sharing options...
3__ Posted September 8, 2012 Share Posted September 8, 2012 cpb, pullin' out the gnarly trixx from way back! AdamJ learned us that one waaay back in '06: www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=5630&highlight= 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.