Archived

This topic is now archived and is closed to further replies.

JoHnOnIzEr

Determining what is on screen

Recommended Posts

Currently, each object has a rect for collision and stuff and im checking if that rect is contained within the screen rect(what the camera is looking at). Is this a good way to go about doing this or is there a better one? Im using VB :-/

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You mean frustum culling ( http://www.google.com/search?q=frustum+culling )? That''s a good way to do it.

Now, if you''re talking about many, many objects, you might want to also include some sort of tree culling (like BSP) before doing frustum tests. Checking EVERY object against the frustum would get slow after a while.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
D''oh - sorry, my bad, should''ve been tipped off by "rect" instead of "cube".

Yeah, checking the screen rect / world offset versus your object rect is about as quick and straightforward as I can imagine.

Robin

Share this post


Link to post
Share on other sites