You are not logged in.
Pages: 1
Which command is used to make a texture transparent, when extracting the images to .oni?
Offline
There are several formats that allows for transparency, from lowest to highest quality
-format:bgra4444 4,096 colors, alpha 16 colors
-format:bgra5551 32,768 colors, alpha 2 colors
-format:bgra32 16,777,216 colors, alpha 256 colors
You'll also need the -envmap:TXMPTextureName command
Last edited by EdT (08/05/09 10:08)
Offline
So it'll be something like: -envmap:TXMPWH_GLASS_SCUM.tga?
Offline
sort of the -envmap: command refers to the texture that will show through the alpha channel.
Here is a sample command:
-create:txmp dir -format:bgra32 -genmipmaps -envmap:TXMPstrikerarmor TXMPStrikerChest.tga
Now the texture needs to have an alpha channel with white being the area transparent so the envmap can be visible and black where it will not be transparent.
Offline
Ahh, okay.
My task was actualy to make the glass reflective, but I guess it's not possible to add more that one envmap?
Offline
Nope. We can't have reflective and transparent at the same time.
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
Pages: 1