Jump to content
  • Advertisement


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


Tile Based Programming

This topic is 5940 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I am am fairly new to tile based development and I was looking for any help possible in joining my tiles together to make a map that uses a little memory as possible and is fast in panning and zooming. The map sizes I use are fairly big and the tiles can be up around 10,000 x 10,000. In panning I have decompressed the viewing area of the screen and as I move to a new area of the map it will preload additional tiles and unload un-needed tiles. This works ok, but this is slow and there is a delay in the loading. There must be a better way. With zooming how can I zoom out completely and still keep the memory low and the speed fast? I am using Visual C++ and GDI and Direct X. Any help will be greatly appriciated. Thanks in advance.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
I suggest using a 3d API such as openGL or DirectX to do the map.
It helps alot and is quick for zooming etc. After all thats what it is for.

Share this post

Link to post
Share on other sites
By 10''000x10''000 I assume you mean the map dimensions, not individual tile size. How big are the tile images that you''re loading? I would consider not loading/unloading tile images quite so rapidly, usually tile sets are changed when entering a new ''zone'', be it indoors<->outdoors desert<->dense foliage.

Tilesize Number Per MB
(For 8bit images)

Unfortunately, zooming right out to view a 10''000x10''000 tile map would make that... rendering 2e8 triangles per frame, which would bring any computer to its knees.

Fast rotation and zooming can be done easily with D3D or OGL.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!