0 like 0 dislike
271 views

Hi!
I tried to integrate a couple of example effects from the Release Highlights 1.9 pack into my Unity project.
I have a scene where the effect spawner position is initially outside the camera's view frustum.
All the effects which have infinite spawners that I tried work fine. However when I tried to bake the "SpatialLayers_NthQuery5" effect which do spawn only once and have an infinite particles lifetime, I've found out that at the moment when camera reaches the spawner sphere location, there are no particles visible at all!

I followed instructions from the wiki: http://wiki.popcornfx.com/index.php/Category:Unity

Is that some kind of spawner-frustum culling mechanism included in popcornFx runtime? I think for particles with infinite lifetime it shouldn't be used, right? Could you suggest any workaround for that? This is something that I really need for my project: to be able to spawn particles once and be sure they will be alive even if spawner position isn't in the camera view frustum.

I hope the problem should be easy to reproduce!

Best,
Lev

by leavittx (220 points)

1 Answer

0 like 0 dislike

Hello,

No we don' t have any spawner-frustum culling mechanism of some sort. Can you tell me if you can see the effect even if you spawn it inside your camera's view frustum ? The fact that particle have or not infinite lifetime souldn't have any impact in the Unity plugin.

Cheers,
Maxime.

by ohmatheus (5.4k points)
Hi Maxime!

If I spawn the effect inside the camera view frustum, of course I can see it!

We tried it dozens of times, even when instantiating the effect object in unity dynamically at the point when it is visible by the camera. All the infinite spawners work, but "SpatialLayers_NthQuery5" (not infinite one) doesn't!

Best,
Lev
Hi Lev!

So a made some tests again. I still can assure you that we don't have any frustum culling. But this effect "SpatialLayers_NthQuery5" is made to be spawn only at world's origin. (otherwise it have an undefined behaviour)
I think if you try to spawn it at origin there should be no problem.
Besides, this effect is not made for Unity. You should modify the effect if you want it to have a normal behavior in Unity.

I hope this helped you to gain a better understanding of how PopcornFX works.

Cheers,
Maxime.
...