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
2 registered members (AndrewAMD, juanex), 1,247 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Miscolored Graphics [Re: Irish_Farmer] #32804
09/06/04 14:45
09/06/04 14:45

A
Anonymous
Unregistered
Anonymous
Unregistered
A



For TGA, TGA has a support for transparency called "alpha channel." For alpha channel, at 0 for red, 0 for green, and 0 for blue, when it's black, it's transparent. But at the gray of 255 (meaning 255 for red, 255 for green, 255 for blue), it's opaque. At 127, 127, 127, it's equalvilant to 50% transparency.

For example in PSP 8...

I create an image at a resolution of 1024x192, with the image transparent.

I create a new layer, which is going to be a background layer.

I make a background image for the layer, then create a new layer for the window.

I create an image for the window, cutout the middle of the window, then I select the background layer.

I create a mask layer (for the alpha channel) then save the image as an alpha channel.

For the background layer, I select the mask layer, then create a gradient from white to black and fill the image with gradient.

When finished, I save the image as a TGA file with all the layers flattened, then I load the image via C-Script to view the image with alpha channel.

Here's the website to try out PSP 8 (although you will need to use GIMP to save the image as TGA as PSP 8 didn't save the image as an alpha channel for TGA):

www.jasc.com

Re: Miscolored Graphics [Re: Irish_Farmer] #32805
09/06/04 16:53
09/06/04 16:53
Joined: Jul 2000
Posts: 11,321
Virginia, USA
Dan Silverman Offline
Senior Expert
Dan Silverman  Offline
Senior Expert

Joined: Jul 2000
Posts: 11,321
Virginia, USA
There really isn't any difference between PCX and BMP file types as far as when these textures are running in the game. Memory consumption is computed by the pixel size of the file and the color depth. TGA files, if they are 32-bit TGAs, hold alpha transparency information. 24-bit TGA files do not.


Professional 2D, 3D and Real-Time 3D Content Creation:
HyperGraph Studios
Re: Miscolored Graphics [Re: Dan Silverman] #32806
09/07/04 03:51
09/07/04 03:51
Joined: Feb 2004
Posts: 718
Wisconsin
Irish_Farmer Offline OP
User
Irish_Farmer  Offline OP
User

Joined: Feb 2004
Posts: 718
Wisconsin
That makes sense. All right, I'm all set and I fixed up all of my sprites in my game. Its finally moving along really quick and I'll have something to show in a few months. I owe you guys.


"The task force finds that...the unborn child is a whole human being from the moment of fertilization, that all abortions terminate the life of a human being, and that the unborn child is a separate human patient under the care of modern medicine."
Page 2 of 2 1 2

Moderated by  HeelX, 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