Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/15/26 08:28
Alternative to Stooq for Zorro S
by Petra. 10/14/26 07:04
Stooq now requires an API key
by cwford. 10/08/26 23:27
Purchase A8 full licence version
by jcl. 10/05/26 12:12
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 10,917 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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