Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,464 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Minimap like in any MMORPG or RPG [Re: txesmi] #402049
05/29/12 10:13
05/29/12 10:13
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline
Member
NeoJones  Offline
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
Hi txesmi,

Thank you! I try it once I have time.

Regards


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] #402089
05/29/12 20:56
05/29/12 20:56
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline
Member
NeoJones  Offline
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
At first I forget to set the skin1 in the material, but it works now!

Best regards



Last edited by Dragonfly; 05/30/12 00:07.

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] #402095
05/30/12 00:15
05/30/12 00:15
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Hi,
Don't worry about the shader, its right. Let me explain.

Render the view over a bitmap.
Code:
VIEW *CAM_Minimap = view_create ( 1 );
CAM_Minimap.bmap = bmap_create ( "#256x256x24" );



Set a panel to show the minimap.
Code:
PANEL *PAN_Minimap = pan_create ( "flags=SHOW", 1 );
PAN_Minimap.bmap = bmap_create ( "#256x256x32" );



Set the material with the shader above
Code:
MATERIAL *MTL_Minimap = mtl_create ();
MTL_Minimap.effect = "minimap.fx";



Set the 32bit mask as the skin1 of the material
Code:
MTL_Minimap.skin1 = bmap_create ( "mask.tga" );



Process the view render target over the panel background bitmap
Code:
process_bmap ( PAN_Minimap.bmap, CAM_Minimap.bmap, MTL_Minimap );



hope it is clear enough wink

Salud!

edit_______
emms, a bit late grin

Last edited by txesmi; 05/30/12 00:16.
Re: Minimap like in any MMORPG or RPG [Re: txesmi] #402097
05/30/12 01:49
05/30/12 01:49
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline
Member
NeoJones  Offline
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
Sorry for my late edit... Will not happen again!
But many thanks for your help. I understand now how it works wink


Errors are the engine of progress.

Version: A8 Commercial
OS: Win 7 64bit
Models: Cinema 4D
Page 3 of 3 1 2 3

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

Gamestudio download | 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