Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | 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