Non alpha sprites

Blitz3D Forums/Blitz3D Beginners Area/Non alpha sprites

Nexic(Posted 2005) [#1]
I'm trying to load a sprite, of which the color black is 100% transparent and the rest is 0% transparent. However using various combinations of flags on LoadSprite, I can find no way to do this simple thing. The best I can get is alpha, which gets rid of the black, but leaves me with the rest of the sprite semi transparent...

Anyone know?

EDIT: Nevermind, I found out that my art software was changing my black areas from 0,0,0 to 5,5,5 for some reason.


_PJ_(Posted 2005) [#2]

I found out that my art software was changing my black areas from 0,0,0 to 5,5,5 for some reason.


Was it changing the bit-depth of the image? I would check this (I know latter versions of MSPaint do this when Saving, possibly to save space, but, for instance, say you only use 256 colours or less, it saves as a 256 colour bitmap regardless of the initial file.) This can be set with Save As.


jfk EO-11110(Posted 2005) [#3]
you may use CreateSprite together with ENtityTexture, instead of Loadsprite, so you get total control over the texture (use the mask flag:4)