Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 07/11/26 18:10
Z9 getting Error 058
by madpower2000. 07/09/26 18:09
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 07/09/26 13:16
New Zorro version 3.11
by jcl. 07/06/26 06:56
Synthetic test data in Zorro
by jcl. 07/06/26 06:54
Parameter filename BUG
by walt_Schwarz. 07/02/26 15:36
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,884 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 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