6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: Uhrwerk]
#391760
01/15/12 17:30
01/15/12 17:30
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
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'm sorry, but this does not make much sense to me. It's a very easy solution and it works. Simply assign a material that deactivates lighting and maybe assign a bigger texture to the entity to avoid a pixelated effect. You can fade it exactly as you do with panels (view_entity.alpha = panel_main.alpha).
Last edited by Superku; 01/15/12 17:32.
"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: Roxas]
#391767
01/15/12 18:40
01/15/12 18:40
|
Joined: Apr 2008
Posts: 144 Germany | Niedersachsen (Lower...
Roxas
OP
Member
|
OP
Member
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
|
I'm sorry, but this does not make much sense to me. It's a very easy solution and it works. Simply assign a material that deactivates lighting and maybe assign a bigger texture to the entity to avoid a pixelated effect. You can fade it exactly as you do with panels (view_entity.alpha = panel_main.alpha).
I think I'll give it a shot once more thank you superku and everyone else who mentioned this. My only concern about this solution is, that the position on screen is not as easy to handle like a panel. I had some bad experiences with view entities. @Uhrwerk Thank you, this looks indeed quite interesting I think I'll use that for something else, but I think that this won't work with panels and bmaps because it's a material. But thanks anyways. I think I'll try to wrap it all up in a simple system and share the code afterwards if anyone is interested thanks and Cheers Dekurian
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: Espér]
#401994
05/28/12 13:12
05/28/12 13:12
|
Joined: Dec 2010
Posts: 224 NRW, Germany
NeoJones
Member
|
Member
Joined: Dec 2010
Posts: 224
NRW, Germany
|
show your Minimap Bitmap or View on a second bitmap with target_map, and just blit a circular mask over it
i dont understand this. i dont want a circular view entity, cause i had many problems with the own positions. now iam having a panel with a 32bit alpha bmap and a window with my map from a view. is there another way as a circular view entity?
Last edited by Dragonfly; 05/28/12 13:15.
Errors are the engine of progress.
Version: A8 Commercial OS: Win 7 64bit Models: Cinema 4D
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: NeoJones]
#402008
05/28/12 19:25
05/28/12 19:25
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Today at 04:12 PM ... Today at 07:16 PM anyone? Really?
"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]
#402023
05/28/12 21:00
05/28/12 21:00
|
Joined: Dec 2010
Posts: 224 NRW, Germany
NeoJones
Member
|
Member
Joined: Dec 2010
Posts: 224
NRW, Germany
|
since 3 days iam looking for a solution...
Errors are the engine of progress.
Version: A8 Commercial OS: Win 7 64bit Models: Cinema 4D
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: Superku]
#402027
05/28/12 22:06
05/28/12 22:06
|
Joined: Dec 2010
Posts: 224 NRW, Germany
NeoJones
Member
|
Member
Joined: Dec 2010
Posts: 224
NRW, Germany
|
Today at 04:12 PM ... Today at 07:16 PM anyone? Really? its not a problem to render it to a view entity, but a fixed position.
Errors are the engine of progress.
Version: A8 Commercial OS: Win 7 64bit Models: Cinema 4D
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: Superku]
#402031
05/29/12 00:02
05/29/12 00:02
|
Joined: Dec 2010
Posts: 224 NRW, Germany
NeoJones
Member
|
Member
Joined: Dec 2010
Posts: 224
NRW, Germany
|
i think bmap_process with a shader is very useful for that. i have a circular mask as .tga and the view bmap in 24bit. the only problem what i have, is the shader for that to become a round bmap at the end.
can you give me an example for this?
Errors are the engine of progress.
Version: A8 Commercial OS: Win 7 64bit Models: Cinema 4D
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: NeoJones]
#402041
05/29/12 09:03
05/29/12 09:03
|
Joined: Jun 2007
Posts: 1,337 Hiporope and its pain
txesmi
Serious User
|
Serious User
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
|
a simple example
texture TargetMap; // bmap_process bmSrc
texture mtlSkin1; // 32bit mask
sampler ColorSampler = sampler_state { Texture = <TargetMap>; };
sampler MaskSampler = sampler_state { Texture = <mtlSkin1>; };
float4 PS ( in float2 inTex: TEXCOORD0 ) : COLOR0
{
return float4 ( tex2D ( ColorSampler, inTex ).rgb, tex2D ( MaskSampler, inTex ).a );
}
technique
{
pass p0
{
VertexShader = null;
PixelShader = compile ps_1_1 PS();
}
}
Salud!
|
|
|
|