Game Development Community

Weird particle culling

by Dan Keller · in Torque Game Engine · 03/09/2006 (8:31 am) · 2 replies

I'm having a problem with the particle engine. When I look at the volcano for the first time, I don't see any particles. (By the way, the emitter is inside the volcano, about where the * is.)
66.49.245.246/Torque/volcano1.jpg
When I go up to the volcano, particles suddenly start coming out.
66.49.245.246/Torque/volcano2.jpg
When the emitter is below the screen, the particles suddenly disappear.
66.49.245.246/Torque/volcano3.jpg
I can see the particles if I'm near the emitter and looking away from it, but only sometimes.
66.49.245.246/Torque/volcano5.jpg
When I go back to the position I was in to start with, I can now see the particles.
66.49.245.246/Torque/volcano4.jpg
Is there some update that I'm missing or what?

#1
03/09/2006 (9:30 am)
That is odd, i do know that you must be able to "see" the emitter on screen or you wont see jack.
#2
03/10/2006 (1:38 am)
The emitter nodes visiblity determines if the particles will be rendered or not. I fixed this by adding an optional parameter to objects to _always_ be rendered. Such functionality is part of stock 1.4 now, but not exposed to script by default. I forget what the variable is called you have to change to make an object always render, but I know it isn't obvious, and is called something along the lines of what it does, which is give the object infinite "bounds" so it's always rendered. It's not the most efficient thing, but wont' hurt things if used for a few special cases either.