Spawning KineFX rigs - (my take / technical feedback)
1463 3 1- OdFotan
- Member
- 192 posts
- Joined: April 2015
- Offline
I wanted to POP-spawn some KineFX rigs and this was my take:
Doing a capturepackedgeo every frame worked, but was incredibly slow. Especially on more complex rigs.
The trick for me was doing the capture on a still frame (i.e. make still points for all the ids in the POP simulation),
and then doing everything (applying pscale, position/movement, deletion/death) after the capture has already been done.
It feels a bit convoluted, but hopefully someone can correct enlighten me on that:
I want to hear from you what you think of it. Maybe I am missing something obvious. Is there any better way? (I am not familiar with crowds yet)
Please let me know what you think.
Thanks, ✅
Doing a capturepackedgeo every frame worked, but was incredibly slow. Especially on more complex rigs.
The trick for me was doing the capture on a still frame (i.e. make still points for all the ids in the POP simulation),
and then doing everything (applying pscale, position/movement, deletion/death) after the capture has already been done.
It feels a bit convoluted, but hopefully someone can correct enlighten me on that:
I want to hear from you what you think of it. Maybe I am missing something obvious. Is there any better way? (I am not familiar with crowds yet)
Please let me know what you think.
Thanks, ✅
Edited by OdFotan - July 22, 2022 05:43:10
- mawi
- Member
- 252 posts
- Joined: Jan. 2008
- Offline
- OdFotan
- Member
- 192 posts
- Joined: April 2015
- Offline
Yes that is also possible. I thought it would be kind of hard because it involves a detail attribute, but indeed you can do that in a foreach loop like you do.
I was also wondering if you could do it in VEX with the packed capture attributes somehow. It seems like a custom type of attribute, I wonder if we could make one ourselves (or modify the strings directly, without the detail attribute).
Anyhow, I will test out your method the coming week.
I was also wondering if you could do it in VEX with the packed capture attributes somehow. It seems like a custom type of attribute, I wonder if we could make one ourselves (or modify the strings directly, without the detail attribute).
Anyhow, I will test out your method the coming week.
Edited by OdFotan - July 23, 2022 01:29:17
- OdFotan
- Member
- 192 posts
- Joined: April 2015
- Offline
-
- Quick Links