Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Minimap like in any MMORPG or RPG #391489
01/13/12 06:40
01/13/12 06:40
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey there, it has been a while

I think everyone knows what I mean. A simple circular minimap showing the current environment and some icons of interesting places.

An example:



I ran into the problem that 3d gamestudio doesn't seem to support circular windows on panels.

My question is, how do I achieve something like that? I want a circular cut-out of a rectangle map image on screen which moves accordingly to my character. I'm not asking for the math equation, but if you answer this question accidentally I won't complain =)

Does anyone have any ideas? Panels and Windows, alpha transparency, shaders, anything?

Thanks for your replies in advance
and
Cheers

Dekurian

Re: Minimap like in any MMORPG or RPG [Re: Roxas] #391490
01/13/12 07:29
01/13/12 07:29
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
show your Minimap Bitmap or View on a second bitmap with target_map, and just blit a circular mask over it
or use a circular view entity and use its skin as target_map


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Minimap like in any MMORPG or RPG [Re: Roxas] #391491
01/13/12 07:30
01/13/12 07:30
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You could use a circular view entity and render a panel with a window element into its skin (bmap_for_entity, panel.target_map). Then iterate over all entites, calculate their 2D/ xy-distance to the center of the minimap in world coordinates and use draw_bmap to draw the entity icons.

EDIT: Ninja'd...

Last edited by Superku; 01/13/12 07:30.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Minimap like in any MMORPG or RPG [Re: Superku] #391637
01/14/12 15:09
01/14/12 15:09
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey thanks for your replies so far,

I finally had the time to try your suggestions, but neither of them worked as expected.

Maybe I misunderstood you or I've done something wrong.. could you please explain it a bit further, I don't quite get how to use that target_map. I also tried to use a circular mask tga with alpha channel but either the circle or the corners of the rectangle mask is shown, but not the map itself. Or Is there a way to set an alpha channel for a certain bitmap?

Thanks in Advance as always
an
Cheers

Dekurian

Re: Minimap like in any MMORPG or RPG [Re: Roxas] #391652
01/14/12 15:51
01/14/12 15:51
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
PANEL* pnl_minimap =
{
window(...);
...
}

ENTITY* ent_minimap =
{
type = "circle.mdl";
...
}

...
pnl_minimap.target_map = bmap_for_entity(ent_minimap,0);

Now you just have to set the window variables in relation to the player's position.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Minimap like in any MMORPG or RPG [Re: Superku] #391653
01/14/12 15:59
01/14/12 15:59
Joined: Aug 2008
Posts: 36
California USA
tunisod Offline
Newbie
tunisod  Offline
Newbie

Joined: Aug 2008
Posts: 36
California USA
Also Check out AUM 95 under questions and answers. George gives an example.

Last edited by tunisod; 01/14/12 15:59.
Re: Minimap like in any MMORPG or RPG [Re: tunisod] #391715
01/15/12 10:34
01/15/12 10:34
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey thanks for your replies again,

I tried some of your suggestions and the solution with the view entity does work after all, but honestly I don't want to use a view entity, because I need to fade it out, move it accordingly to the rest of my interface etc. A view entity is more difficult to handle in comparison to panels.

It's affected by lighting, and the map is pixelated..

I tried several other things for example a per pixel solution where I iterated trough the pixels of a mask image and set the minimap pixel alpha values accordingly to the mask so that it got a circular map. But this isn't fast enough for a minimap , because it'll move all the time. I don't want to waste frames per second for a tiny thing like a minimap.

Isn't there any possible solution for bmaps and/or panels?

Thanks for your replies in advance
and
Cheers

Dekurian

Re: Minimap like in any MMORPG or RPG [Re: Roxas] #391717
01/15/12 10:45
01/15/12 10:45
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
bmap_process

Re: Minimap like in any MMORPG or RPG [Re: Rei_Ayanami] #391740
01/15/12 15:05
01/15/12 15:05
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Thanks for your reply,

But I don't have A8, bmap_process is A8 only.

So do you have another idea how to solve this problem? I just want to use
panels and bmaps, there has to be a solution. I hardly believe that I'm the only person who wants to create a circular minimap of his game environment.


Cheers
Dekurian

Re: Minimap like in any MMORPG or RPG [Re: Roxas] #391743
01/15/12 16:01
01/15/12 16:01
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen


Always learn from history, to be sure you make the same mistakes again...
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1