Sign in to follow this  
Crazyfool

Minimaps in DirectX

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this