Jump to content
  • Advertisement
Sign in to follow this  
belgreth

In-game map techniques?

This topic is 2259 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

I'm having difficulty searching for any sort of tutorial for drawing interactive in-game maps as any search with "map" usually comes up with terrain and game level stuff. As the game world is procedurally generated I can't pre-fab maps so they'll have to be created during world generation.

Currently I just have a boring biome map being generated but I'm hoping for something with more pizzazz.

http://www.imageshack.us/photo/my-images/254/biomemap.png/ (Tried to make an image link but didn't seem to work)

Eventually other markers such as towns and forts would need to be drawn on the map as well. The map will start out with a fog-of-war and will fill in as the player moves around in the world. Does anyone know of any popular techniques/shaders for drawing in-game maps?

Share this post


Link to post
Share on other sites
Advertisement
Depending upon the technology used, I would think you could just render the map using a separate camera facing down in orthographic mode with low resolution, low LOD, skip animated models and most effects turned off. You could put a mask in a texture for a shader to do fog of war.

Share this post


Link to post
Share on other sites

Depending upon the technology used, I would think you could just render the map using a separate camera facing down in orthographic mode with low resolution, low LOD, skip animated models and most effects turned off. You could put a mask in a texture for a shader to do fog of war.


Hm, that won't work for viewing the whole world (as it would be too much to draw) however I do like that idea for a local 'radar' type map *adds to todo list*. I'm looking for a decent looking full world map that can be zoomed and scrolled around and possibly have highlightable icons on it. The icons and zooming/scrolling I can figure out, I just need something that isn't plain and boring to look at.

Share this post


Link to post
Share on other sites
Do you want a satellite style map, or a more symbolic map? Will it show elevation?

If you have access to the data that was used in procedural generation, you could either construct a separate simplified 3D model that is used by your map only, or draw everything yourself in 2D. This would allow you to do things like highlight roads, put billboards for town names, etc. Many procedural terrain algorithms (e.g. Perlin/Simplex noise) would allow you to make very coarse geometry which broadly matched your detailed geometry.

Share this post


Link to post
Share on other sites
Thanks for the replies jeffery, that might actually fit my needs. I dont need elevation, more symbolic than anything topographic-wise. I'll try generating a low rez version of the world and use an orthographic camera and see how that works out. This'll even let me do some lighting so it's not plain looking.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!