Sedatyf Posted February 9, 2018 Share Posted February 9, 2018 (edited) Hey guys ! I recently followed the "Houdini 15+ Particles to Bullet" tutorials from Andrew (https://vimeo.com/179143928) and then the "Emit Bullet from Particles" tutorials from Tim van Helsdingen (https://vimeo.com/179639085) but I've got a weird issue that I can't figured out. I strictly followed what they show on their videos, but, when I'm checking my RBD sim, I have duplicate geometries on my point (as you can see on my screenshot). Also, the bullet solver warn me by this message : Quote Warning : rbdpackedobject1 - /obj/rbd/bulletrbdsolver1: Object contains duplicate values for the 'name' point attribute. Something has changed in the RBD between H15 and H16 ? Am I missing something ? Thanks in advance guys, Gael. PS : Here's my file, but it's normally, as we can have in Tim's video. emit_rbd.hip Edited February 13, 2018 by Sedatyf Quote Link to comment Share on other sites More sharing options...
toadstorm Posted February 9, 2018 Share Posted February 9, 2018 The Assemble SOP doesn't know to create pieces with unique names per-frame, so it's always starting over each frame with `piece0`, `piece1`, etc. You need to manually create the name attribute for each piece based on the particle ID, so that every piece is understood as unique. Attached an example for you. emit_rbd_2.hip 1 Quote Link to comment Share on other sites More sharing options...
Sedatyf Posted February 10, 2018 Author Share Posted February 10, 2018 Hey thank you @toadstorm ! I'll check that out as soon as possible ! But I can't understand why it is working in H15 but not in H16 ? Quote Link to comment Share on other sites More sharing options...
Sedatyf Posted February 10, 2018 Author Share Posted February 10, 2018 And what "piece%d" means in your sprintf function ? Quote Link to comment Share on other sites More sharing options...
Sepu Posted February 11, 2018 Share Posted February 11, 2018 %d is the specifier for an integer value, so sprintf("piece%d", i@id); means that %d will get replace by the id of each particle so piece1, piece2, piece3 ... and so on. That way you get unique names. Also you have %s (string) %f (float) and there is more but those are the most useful. 1 Quote Link to comment Share on other sites More sharing options...
toadstorm Posted February 11, 2018 Share Posted February 11, 2018 (edited) I'm not sure why it wouldn't be working for you in H16 as opposed to 15, but in general your packed RBDs always need to have unique names in order to function properly. I haven't watched the tutorial you're referencing so I'm not sure if they cover that or not, but you definitely need it either way. Edited February 11, 2018 by toadstorm Quote Link to comment Share on other sites More sharing options...
Sedatyf Posted February 11, 2018 Author Share Posted February 11, 2018 Alright ! Thanks a lot guys ! Quote Link to comment Share on other sites More sharing options...
Sedatyf Posted February 13, 2018 Author Share Posted February 13, 2018 Hey guys, it's me again. I found that being able to emit RBD from particles was very convenient to control the behavior of multiple RBDs. So, I tried to transfer velocities on my packed geometries. But the bug comes back. It's the velocity that mess all the things up obviously. But that I can't understand is exporting velocity properly. As you can see, I have a propper velocity on my point 9 and 10 at frame 12. Then I transfer it on the primitives as the id. And finally, after I packed it, the velocity is correctly transfered on the point. So how do I transfer it properly? Why it doesn't work? Thanks again guys ! Quote Link to comment Share on other sites More sharing options...
Sepu Posted February 13, 2018 Share Posted February 13, 2018 Im not exactly clear what you are asking. But I believe what you want is transfer v from the particles to the RBD is that correct? if so you can use the pack SOP to transfer the attribute, just add v there as well or any other attribute you might need from POPs. You are working with pts not with primitives in the popnet, so you dont need to promote anything. Quote Link to comment Share on other sites More sharing options...
Sedatyf Posted February 13, 2018 Author Share Posted February 13, 2018 Yes it's correct @Sepu I already did that, but the problem is, if I tranfer my velocity (v) in any ways, I've got the same issue as the beginning of this topic. 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.