Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,507 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sorry, another question. #85612
08/11/06 22:08
08/11/06 22:08
Joined: May 2006
Posts: 6
Hashi Offline OP
Newbie
Hashi  Offline OP
Newbie

Joined: May 2006
Posts: 6
Is it possible to get a certain color to display as completely transparent?

I want a .gif animation to show only the moving parts inside it, but the white background is opaque.


Re: Sorry, another question. [Re: Hashi] #85613
08/12/06 21:32
08/12/06 21:32
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Yes, it is a black color (below rgb:8,8,8).
But try 32bit tga with alpha channel instead.

Re: Sorry, another question. [Re: Lion_Ts] #85614
08/13/06 03:25
08/13/06 03:25
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
Yes it is,

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




using an image with an alpha channel may be the best way though...

cheers

Last edited by tindust; 08/13/06 03:31.
Re: Sorry, another question. [Re: Lion_Ts] #85615
08/13/06 03:32
08/13/06 03:32
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
Quote:

Yes, it is a black color (below rgb:8,8,8).
But try 32bit tga with alpha channel instead.




That's actually rgb(0, 0, 0) instead that causes it. The color (0, 0, 1) is as close to black as you can get without being black (the darkest blue) and the color (0, 0, 8) is the lowest it can go if using 16-bit color.


"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: Sorry, another question. [Re: ulillillia] #85616
08/14/06 21:58
08/14/06 21:58
Joined: May 2006
Posts: 6
Hashi Offline OP
Newbie
Hashi  Offline OP
Newbie

Joined: May 2006
Posts: 6
Thanks a lot, guys. Sorry for bumping the post.


Re: Sorry, another question. [Re: Hashi] #85617
08/15/06 03:39
08/15/06 03:39
Joined: Jun 2006
Posts: 86
Asia
xboy360 Offline
Junior Member
xboy360  Offline
Junior Member

Joined: Jun 2006
Posts: 86
Asia
Wait! about that GIF animation, you can use GIFs in gamestudio?
i thought BMP only.


Happy Birthday!
Re: Sorry, another question. [Re: xboy360] #85618
08/15/06 03:50
08/15/06 03:50
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
GIF animations aren't allowed. For animations, you lay out each frame in a long line then add "+xx" to the file name where "xx" is the number of frames. +6 would mean 6 frames and the width of the image should be 6 times that of the height. +32 means 32 frames and the width should be 32 times that of the height.


"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: Sorry, another question. [Re: ulillillia] #85619
08/16/06 01:42
08/16/06 01:42
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
it would be nice to be able to use gifs, tho i dont know how much a real developer would need an image file with 256 colors like a gif only supports as far as i know


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