Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,709 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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