minimap

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
aiman
Posts: 19
Joined: Thu Nov 06, 2014 5:04 pm

minimap

Post 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
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: minimap

Post by CuteAlien »

Try the forum search with "minimap" - there are a few threads about that which can probably help you.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
aiman
Posts: 19
Joined: Thu Nov 06, 2014 5:04 pm

Re: minimap

Post by aiman »

Thank you for your replay
if I found any thing before, i would not ask
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: minimap

Post 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
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
aiman
Posts: 19
Joined: Thu Nov 06, 2014 5:04 pm

Re: minimap

Post by aiman »

Thanks
but there is not any benefit idea
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: minimap

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply