Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 08/05/09 10:08

TOCS
Member
From: Denmark
Registered: 04/04/07

Transparent Textures

Which command is used to make a texture transparent, when extracting the images to .oni?

Offline

#2 08/05/09 10:08

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Transparent Textures

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

#3 08/05/09 11:08

TOCS
Member
From: Denmark
Registered: 04/04/07

Re: Transparent Textures

So it'll be something like: -envmap:TXMPWH_GLASS_SCUM.tga?

Offline

#4 08/05/09 11:08

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Transparent Textures

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

#5 08/05/09 14:08

TOCS
Member
From: Denmark
Registered: 04/04/07

Re: Transparent Textures

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

#6 08/05/09 16:08

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Transparent Textures

Nope. We can't have reflective and transparent at the same time.


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

Board footer

Powered by FluxBB