Jump to content
  • Advertisement
Sign in to follow this  
Crazyfool

Minimaps in DirectX

This topic is 4111 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, how can I make a mini-map in c++ d3d9, I can think of something that involves lots of unnecesary drawing. Would it be better to not build a mini-map engine and just draw a scaled version of the world map myself and then just use that?

Share this post


Link to post
Share on other sites
Advertisement
The book Programming Role Playing Games 2nd Edition uses a stripped down version of your levels. Deleting all unnecessary polygons and textures, and saving them as a seperate model. Of course, in the book they are building a map that only displays areas you've been to before. For a more simple version, I'd imagine a 2d bitmap might work just as well, so long as the scaling is known.

Share this post


Link to post
Share on other sites
I use a texture to cover the level. 1024x1024 is usually sufficient space. I generate the texture when loading the level, but you can also have your artists draw the map texture.
I then overlay "live" objects using sprites (enemies in radar range, etc).

Share this post


Link to post
Share on other sites
Oh, I'll look into tht. I figure overlaying live dots/symbols would be easy, but I imagined doing something like redrawing 1000s of tiny textures every frame

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!