Jump to content


Annihilator

Member Since 04 Feb 2011
Offline Last Active Jan 05 2013 08:00 PM
-----

Topics I've Started

2D Map Sprite Visibility Detection

26 December 2012 - 11:57 AM

Hello.

Can anyone please share an example or a link to the information about 2D Game map spritie visibility detection?
I have googled for a while now and only found the way to render 2D tile maps which is easy.

What i am looking for is a basic info on how to Render what is visible in the camera and not render invisible objects.
My project has a map with few big ground textures and a lot of objects placed on top in the Editor. Objects are not snapped to a grid and can be places anywhere in a free-form way (can be stretched, rotated). Basically i am moving around the map, and placing the objects anywhere i want.

What I am looking for is how to detect what sprites are in the viewport and only render them.

Thanks.
Juris.