Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

simple map

The map i would like to create is like this one, but simpler , what i want to have is a geographical map indicate high /low and a point that show where am i and points indicate enemies

Thank you

share|improve this question
2  
The implementation depends on a number of factors that you didn't specify. Does the map need to rotate like the one in the picture? And what shape do you want it to be? –  David Gouveia Mar 28 '12 at 11:21
2  
To be more clear here's the possible solutions depending on your requirements (1) No rotation + Rectangle shape = SpriteBatch with special sourceRectangle and destinationRectangle parameters. (2) Rotation + Rectangle Shape = SpriteBatch with vertex shader like this example. (3) Rotation + Any other shape = SpriteBatch with stencil buffer –  David Gouveia Mar 28 '12 at 11:42
add comment

1 Answer

up vote 1 down vote accepted

If you want that minimap for 3D game

  1. If your environment is created from heightmap then use heightmap as minimap

  2. Or just move camera up, to face down the ground, change projection to orthographic, and render it as depth map.

If you want to know just how to draw minimap, you can use SetData on Texture2D, to create texture and then pass it to spriteBatch.Draw

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.