I make a simulation of underwater bubble particles behind moving torpedo. I have a camera behind torpedo which is attached to and following torpedo. I use Camera Cull operator (Frustum) to hide particles out of camera frame. I use Camera Cull as Hide operation. But I actually do not need particles which are out of camera frame, so, I think I could use Camera Cull in Delete operation instead of Hide. But when I change operation to Delete mode then all particles are deleted. I expected that only particles out of camera frame will be deleted, similar as Hide operation. Is this a bug or I just misunderstood how Camera Cull Delete operation works?
Can you post a file so I can test your setup?
When your Cull operator is in 'delete' mode, it's being evaluated in regular operator order. In this case, it's deleting all particles because it's being evaluated before any particles are placed where you want them using the Position Icon operator...instead they're sitting at [0,0,0] when the Cull operator executes, which is out of the frustum.
Move the Cull operator to the end of the event and it'll function as intended.
12-15-2023, 03:15 AM
(This post was last modified: 12-15-2023, 03:17 AM by Viper.)
This makes sense. Thank you for clarification! Would be nice to have such information in documentation as well.
Is there a reason Camera Cull operator shouldn't always be latest in event order? I think in Particle Flow Camera Cull operator event order was not important.
In cull mode order doesn't matter, but in delete mode you're directly affecting in the sim in a history-dependent way, so order matters.