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
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 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
Panel color invisibility #72566
04/30/06 02:40
04/30/06 02:40
Joined: Dec 2003
Posts: 179
Chameleon_Man Offline OP
Member
Chameleon_Man  Offline OP
Member

Joined: Dec 2003
Posts: 179
Hey guys,

What's the property I change in C-Script to assign the hex color that will be invisible in game? Thanks.

Re: Panel color invisibility [Re: Chameleon_Man] #72567
04/30/06 12:44
04/30/06 12:44
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
By default, it's solid black, or 000000. The color 000001, the closest to black, will not be transparent, except if 16-bit color is used (use 000008 instead, the closest you can get with 16-bit color). Instead of black, there's a predefined variable that gets the transparent color from the top left corner, bu I don't know what it is. If you want partially transparent areas, use an image with alpha channel and save as TGA.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Panel color invisibility [Re: ulillillia] #72568
04/30/06 14:08
04/30/06 14:08
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Quote:


d3d_autotransparency
If this flag is set, the color of the upper left pixel of true color textures is taken as transparency color, instead of black. This way the background of sprites or skins can be set to any color, thus avoiding the black seams visible by antialiasing to a black background.

Range:
on - the color of the upper left pixel is the overlay color
off - black (0,0,0) is overlay color






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