Technical speed question in 3d camera

Previous topic - Next topic

mentalthink

Hi there,
I have a doubt whit the camera... if I draw the 3d camera and over I put in 2D mode a sprite overriding part of the camera , this can be usefull, for reduce the consume of graphical CPU?¿, or simply don´t make nothing, and all 3D scene it´s redreawing while the loop works.!!!

Thanks ,
Iván J.

PS : I think this it´s called "furstrum effect" or something ....  :blink:  :S

AMateus

Hi,

Frustum Culling is used to remove the objects outside the View Frustum (the visible area). So, to answer your question, no, it don't make nothing. The whole 3D scene is rendered first, and then the 2D on top of it.

More Info: http://www.lighthouse3d.com/tutorials/view-frustum-culling/

António

MrTAToad

What you should try and do if possible is to try and render object that are only within the camera range.  The only problem with this is deciding how to determine such a thing :)


AMateus

Anyway, from the manual:

"While in 3D mode, only objects or parts of objects that are between znear# and zfar# relative distance to the camera will be drawn."

We just need to know if the engine also culls objects *outside* the viewport ;)

António

Kitty Hello

Yes it does. It has a bounding-shere-to-frustim culling algo implemented.

AMateus


mentalthink

thanks in advance for the utils explanations...