Alpha

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1879
Joined: Sat Feb 23, 2008 11:15 pm

Alpha

Post by Kjell »

Hi,

Quick question. Are Bitmaps in 24 or 32-bit? The following BitmapExpression doesn't seem to have any result.

Code: Select all

this.Pixel.A = Y;
Regards,
Kjell
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

It should be 32-bit. Try setting A to a constant 0.1 and see if there is a effect. Of course you need a material that use alpha, such as one minus source alpha.
User avatar
Kjell
Posts: 1879
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

Hej Ville,

*Doh, forgot to set the Material Blend :shock:

Thanks!
Kjell
Post Reply