Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sprite transparency #116600
03/11/07 17:02
03/11/07 17:02
Joined: Nov 2005
Posts: 67
USA
juszczec Offline OP
Junior Member
juszczec  Offline OP
Junior Member

Joined: Nov 2005
Posts: 67
USA
Hi folks

I've made a sprite of a cactus. Its a jpg converted to a pcx. The entire picture is rectangular with dimensions 250x700 pixels.

The cactus itself does not take up the entire 250x750 rectangle. I want the sky to be visible behind it.

Is there a way, using GIMP, to make selected areas of pcx transparent so my backrgound will be visible? Can I do this in WED?

Mark


I'm not old, I'm worn.
Re: sprite transparency [Re: juszczec] #116601
03/12/07 12:31
03/12/07 12:31
Joined: Dec 2005
Posts: 414
Munich, Germany
R
Robotronic Offline
Senior Member
Robotronic  Offline
Senior Member
R

Joined: Dec 2005
Posts: 414
Munich, Germany
Hello!

Iīm not familiar with Gimp, however some general advice:

For partly visible images you need the alpha channel and a 32 bit format, that supports the alpha channel. You canīt store alpha channel in .pcx files. So you should use 32 bit Targa (.tga) files instead (.dds files also work, but letīs keep it siomple for the moment). Gimp certainly supports .tga.

The other thing: I would recommend you, to use always textures with a size, that is a power of two, for example 256 * 256, 512 * 512, 1024 * 1024 ...

The creation of the alpha channel usually is simple: In Paintshop i woul simply select the cactus and then go to the selection menue and choose "store selection in alpha channel. The alpha channel has to be white, where you want to see the cactus and black, where you want the image to be transparent.

In WED you can simply load the image as a sprite. The sky will be visible, where the alpha channel is black.


Moderated by  HeelX, rvL_eXile 

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