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
2 registered members (TipmyPip, AndrewAMD), 12,726 guests, and 5 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
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 | 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