EntityVisible

Blitz3D Forums/Blitz3D Programming/EntityVisible

Hehe sure.

On further thinking about it I can see that Blitz hides entities automatically if they are outside the frustum but not if they are behind an obscurer.

Actually on second thoughts the EntityInView test is not needed since an entity outside the frustum gets hidden anyway.

I make a cube or sphere emitter that defines the area where the particles will be, then each particle is parented to the emitter so that hiding/showing the emitter does the same for all the particles...and also the particles don't get updated either if the emitter is not in view.

Another thing I think I am seeing is that for EntityVisible Blitz is ignoring any radius/box and only using the positions of the entity/camera for the occlusion test.

May have to do some more work on this, possibly doing some linepicks instead.