Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, ozgur, AbrahamR, wdlmaster), 849 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panel masking(again) #102284
12/15/06 15:21
12/15/06 15:21
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline OP
Senior Member
Roel  Offline OP
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
This time my post is WITH pictures
The Idea was Panel masking, with that I mean that You can show a bit of a panel,just like with the window .... definition in panels.
the problem with window is that it has a square shape. and with defining a panel mask it should be possibleto get EVERY shape you want by assigning a mask to a panel.

this is just a panel, red is visible and white isn't


but if it gets possible to assign a bmap mask you create something like this
where the panel and the mask overlap each other you can see the image
red is visible, white is not visible in the panel AND in the mask.
yellow parts exist in both images but are not visible


his is an easy example, it is also possible to do with window, but you can also have a mask shape like this:
[image] http://88.198.45.9/pic/intenscriptfiles_pm_03.png[/image]

the code can be this

bmap mybmap <blub.bmp>;
bmap mybmapmask <blubmask.bmp>;
panel mypan
{
bmap = mybmap;
mask = mybmapmask;
}


Check out the throwing game here: The throwing game
Re: Panel masking(again) [Re: Roel] #102285
12/16/06 12:02
12/16/06 12:02
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
how about using transparent images?

Re: Panel masking(again) [Re: Joey] #102286
12/16/06 15:58
12/16/06 15:58
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline OP
Senior Member
Roel  Offline OP
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
hmmm maybe it is possible to multiply the alpha of the bmap's pixel alpha by
the mask's pixel alpha. or just adding it.

I don't know which I have to choose


Check out the throwing game here: The throwing game
Re: Panel masking(again) [Re: Roel] #102287
12/17/06 12:04
12/17/06 12:04
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
multiplying with a normalized value between 0 and 1 or adding a normalized and clamped value between -255 and 0.

Re: Panel masking(again) [Re: Joey] #102288
12/17/06 17:00
12/17/06 17:00
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline OP
Senior Member
Roel  Offline OP
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
I think multiplying gives the best result.
'To multiply the alpha of the bmap's pixel alpha by
the mask's pixel alpha'


Check out the throwing game here: The throwing game
Re: Panel masking(again) [Re: Roel] #102289
12/17/06 17:06
12/17/06 17:06
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline OP
Senior Member
Roel  Offline OP
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
I think it's not a very bad Idea.


Check out the throwing game here: The throwing game
Re: Panel masking(again) [Re: Roel] #102290
12/19/06 19:04
12/19/06 19:04
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
who said it was a bad idea?

by the way, can shaders be applied to panels? i'm not sure about this (i don't think so), so you should probably use view entities for this job.

Re: Panel masking(again) [Re: Joey] #102291
12/28/06 15:29
12/28/06 15:29
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline OP
Senior Member
Roel  Offline OP
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
I don't mean shaders, I kno they're not applyable to panels but maybe it is
possible to give a mask over a whole panel like in paint programs, where you
only see the part you want to see.
but not with bmaps, but with whole panels.


Check out the throwing game here: The throwing game

Moderated by  aztec, Spirit 

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