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
1 registered members (AndrewAMD), 1,454 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Transparent sprites? #287087
08/29/09 21:11
08/29/09 21:11
Joined: Aug 2009
Posts: 46
gfxExp Offline OP
Newbie
gfxExp  Offline OP
Newbie

Joined: Aug 2009
Posts: 46
I was doing the WED tutorial from the download page. After making the house, chimney, tool shed etc. there is a sprite area under "Textures - Further Finesses - Part II" section. It says using black bg on "the sign sprite" will make it transparent. However, I'm having varying results with my A7. I believe the tutorial was made based on A5 or A6.

So how to do it on A7? please help. Also while building if i don't uncheck "create meshes" from the default settings while using sprites it crashes on running the level. Is it normal?

Re: Transparent sprites? [Re: gfxExp] #287094
08/29/09 22:14
08/29/09 22:14
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline
User
Ayumi  Offline
User

Joined: Oct 2008
Posts: 681
Germany
yes, very old Tutorial^^
You need:

A *.TGA, *.PCX, *.DDS or *.BMP sprite.

If you want to make it transparent, you will need
black parts of your sprite(tga, pcx, bmp).

pcx and bmp don t know transparency, so you will need
the overlay flag.(the black parts will be invisible)

Tga and DDS do have an alphachannel.

Re: Transparent sprites? [Re: Ayumi] #287113
08/30/09 06:10
08/30/09 06:10
Joined: Aug 2009
Posts: 46
gfxExp Offline OP
Newbie
gfxExp  Offline OP
Newbie

Joined: Aug 2009
Posts: 46
Thanks ^^

But the thing is, I already assumed tga and dds supports alpha-transparency and also tried checking various flags on pcx etc including overlay alone. Following are my test run results.

Original image
Made with photoshop. The black area was made transparent while saving as tga 32bit.

link: http://img215.imageshack.us/img215/3438/originali.jpg

.pcx with black bg (no overlay etc.)

Here instead of the black area, the orange border over the yellow area with text becomes transparent.



.pcx with black bg (overlay)

Here instead of the black area, the orange border over the yellow area with text becomes transparent. Checking overlay didn't help.



.tga 24bit with black bg (no overlay etc.)

Here instead of the black area, the orange border over the yellow area with text becomes transparent.



.tga 24bit with black bg (overlay)

Here instead of the black area, the orange border over the yellow area with text becomes transparent. Checking overlay didn't help.



.tga 32bit with transparent bg (no overlay etc.)

Here the original image shows up with white bg.



.tga 32bit with transparent bg (overlay)

Gets the following result.



So any idea what's wrong? I have 3dgs A7 7.04 version.

Re: Transparent sprites? [Re: gfxExp] #287135
08/30/09 10:42
08/30/09 10:42
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Create an Alpha channel by
selecting the background =>
invert the selection =>
Create new Channel ( alpha )
=> Save as TGA with 32Bit.

here´s a version i made for you:
http://daten.rmxpworld.de/Schild.tga
(rightclick => Save as..)

Last edited by Espér; 08/30/09 10:42.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Transparent sprites? [Re: Espér] #287139
08/30/09 10:47
08/30/09 10:47
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
or make the top-left pixel of the image BLACK, then black areas will be transparent.

Transparency in your case is based on the color of the top-left pixel of the image.


3333333333
Re: Transparent sprites? [Re: Espér] #287140
08/30/09 10:48
08/30/09 10:48
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
I do not recommend to create an alpha channel. You need alpha channel only when you want parts of the image to be partially transparent.

For a sprite, use a PCX with a black part as you did, but do not set d3d_autotransparency. Otherwise you need to set the top-left pixel as Quadraxas said.

Re: Transparent sprites? [Re: Petra] #287147
08/30/09 11:33
08/30/09 11:33
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
If you used d3d_autotransparency=1, try to remove it...

Doh, I missed this part...
Quote:

For a sprite, use a PCX with a black part as you did, but do not set d3d_autotransparency. Otherwise you need to set the top-left pixel as Quadraxas said.


Last edited by bart_the_13th; 08/30/09 11:35.
Re: Transparent sprites? [Re: bart_the_13th] #287164
08/30/09 12:56
08/30/09 12:56
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
when using the method with the upper left pixel as transparent color.. make your font another color than black..

Because later the letters will be transparent too, if you let em black.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Transparent sprites? [Re: Espér] #287165
08/30/09 13:10
08/30/09 13:10
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline
User
Ayumi  Offline
User

Joined: Oct 2008
Posts: 681
Germany
Ah ....

you need the "Bright" flag...for transparency..try it^^
i have had the same problem.

Re: Transparent sprites? [Re: Espér] #287166
08/30/09 13:12
08/30/09 13:12
Joined: Aug 2009
Posts: 46
gfxExp Offline OP
Newbie
gfxExp  Offline OP
Newbie

Joined: Aug 2009
Posts: 46
umm how can i see if d3d_autotransparency is set or not? ^^'

Last edited by gfxExp; 08/30/09 13:21.
Page 1 of 2 1 2

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