Page 1 of 1

minimap

Posted: Mon Jan 05, 2015 8:35 pm
by aiman
how can i make mini map in the corner of screen which explain the position of player and other objects in 3D scene
like images below
Image

Re: minimap

Posted: Tue Jan 06, 2015 1:33 am
by CuteAlien
Try the forum search with "minimap" - there are a few threads about that which can probably help you.

Re: minimap

Posted: Tue Jan 06, 2015 3:28 pm
by aiman
Thank you for your replay
if I found any thing before, i would not ask

Re: minimap

Posted: Tue Jan 06, 2015 8:30 pm
by CuteAlien
Hm, I get several hits with that search-word. One of the first is this where I explain several ways to add a minimap: http://irrlicht.sourceforge.net/forum/v ... 19&t=49931

Re: minimap

Posted: Tue Jan 06, 2015 9:59 pm
by aiman
Thanks
but there is not any benefit idea

Re: minimap

Posted: Wed Jan 07, 2015 1:02 pm
by CuteAlien
Well, the ideas descibed there are the usual ones. Either you work with IGUIImage's (one for the map one for your position) or you you use a quad (2 triangles) with texture and you can then put anything you want into it.

The basics are generally - draw a image for the map. Draw one or more images for the player position and other objects of interest.

Everything else depends on your game. There are lot's of different minimaps. For example some do scroll, some do rotate. Sometimes you want to draw a dot for the player, sometimes you want a rotating arrow. There are different ways to draw your map - generally it's done by hand, but in some games you might prefer automatic maps (for example if users can change the map themself).

So first step is as usual design - you have to know what kind of minimap you need in your game. No one can help you with that first step. Once you know that please describe it, then we might be able to give more hints on how to implement it.

Re: minimap

Posted: Thu Jan 08, 2015 6:00 am
by thanhle