Sprite Alpha
Blitz3D Forums/Blitz3D Programming/Sprite Alpha
| ||
Hi, All, If I have a load of 2D images that I want to use as 3D sprites, and they all have the same colour I'd like to make transparent, is there any easy way to do it? I don't fancy having to make them all PNG's with an alpha channel... :( Thanks in advance! :) |
| ||
I think if you turn on mask it makes all black parts see through. If you turn on an alpha mask on an image without one it just makes it see through with the darker parts more see through than the lighter parts, so 128,128,128 would be 50% alpha. I think that's right |
| ||
No masking does not make part alpha. But you can set the alpha through command to set it per sprite. See the entity commands (sprite is just another type of entity, like terrain, mesh etc) |
| ||
You can't set the alpha colour though, defaultly through blitz. If you load the texture with the alpha flag, it will defaultly choose black as the alpha colour. If you look at my code archive entry though, you can change the colour used to mask/alpha. http://www.blitzbasic.com/codearcs/codearcs.php?code=1013 Skid's link is better, but can never mind the link. |