One b3d file, one texture with alpha channel?!

Blitz3D Forums/Blitz3D Programming/One b3d file, one texture with alpha channel?!

BerhanK(Posted 2003) [#1]
Yepps,

I have one b3d model (room with furniture) and I have a
texture map that maps all entities around in the room.
I also made an alpha chanel (in photoshop) for the texture and I am not sure what format to save the file:
Does it have to be a TGA?
Also what format of the channels:
16bit - A1R5G5B5 or X1R5G5B5 or A4R4G4B4 or X4R4G4B4
32bit - A8R8G8B8 or X8R8G8B8

I tried saving them with different chanle formats and it looked deifferently in Blitz3D!

Any general idea there?

I simply want to use alpha chanel to make some of the objects transparent.

How to?


jfk EO-11110(Posted 2003) [#2]
TGA 32ARGB and load the model with flag 2 set. And avoid crossing alphaed parts to prevent Z-order troubles.


BerhanK(Posted 2003) [#3]
Thanx!

But is it really possible to do what I'm trying to do?

I have one model (entire room) but only the plant's leaves will be somewhat transparent (with the use of the alpha channel of the texture map)

Loading the model with flag2 set? you mean loadTexture?
Then the whole model becomes transparrent and I do not want that!

Regards