Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 28/6/09 4:19

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

OniSplit - Color Formats

Which color format, is best for reflective parts? (a.k.a formats with an alpha channel).

Currently I'm using the format; bgra5551.
But it seems to mess the texture slightly, even when I save the images in 16-bit.

Offline

#2 28/6/09 9:03

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

Re: OniSplit - Color Formats

Rexxar:  Can you post an example of how the texture is messed up.

Offline

#3 28/6/09 11:03

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

Re: OniSplit - Color Formats

25397371.th.png

You see the calf on this ninja is messed.

Last edited by TOCS (28/6/09 11:09)

Offline

#4 28/6/09 13:00

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

Re: OniSplit - Color Formats

Try DXT1


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

#5 28/6/09 21:51

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

Re: OniSplit - Color Formats

Rexxar: As Gumby stated for the textures that do not have alpha channels, use DXT1, that will give you the larger depth of colors. bgra5551 has a smaller range of colors, that's why you get the splotches.  More specific details can be found in this thread: http://oni.bungie.org/community/forum/v … id=400&p=3

Offline

#6 29/6/09 6:04

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

Re: OniSplit - Color Formats

DXT1 dosen't seem to work, it makes the whole part shiny, and does the texture even more messy (if that's a word smile).
What about a format in something like 24-bit and 1 for alpha?
I guess OniSplit dosen't support such..

Last edited by TOCS (29/6/09 6:09)

Offline

#7 29/6/09 11:02

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

Re: OniSplit - Color Formats

Onisplit supports whatever Oni does.

You have a choice of: [-format:bgr32|bgra32|bgr555|bgra5551|bgra4444|dxt1]

bgra32 might be what you need.


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

#8 29/6/09 13:03

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

Re: OniSplit - Color Formats

Rexxar: Use DXT1 on the textures that do not have an alpha channel.  For example the original Ninja's calf textures are DXT1.  For the textures that have an alpha channel then you need to use brga5551

Offline

#9 29/6/09 14:02

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

Re: OniSplit - Color Formats

Whats wrong with bgra32?


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

#10 29/6/09 16:39

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

Re: OniSplit - Color Formats

Its not supported by OniSplit:
enum TXMPFormat
ARGB4444 = 0
RGB555 = 1
ARGB5551 = 2
RGB888 = 8
DXT1 = 9

Offline

#11 29/6/09 16:42

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

Re: OniSplit - Color Formats

Ahh, it is apparently supported by Onisplit but not Oni. hmm

In any case 5551 is the best option.


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

#12 30/6/09 12:41

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

Re: OniSplit - Color Formats

Hmmm, okay, I guess I'd paint my textures in more regular colors so the matches aren't so different..
But would it be possible to import other formats to Oni, in the furture?

Offline

#13 30/6/09 12:43

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

Re: OniSplit - Color Formats

Hmm...doubtful. I don't know. smile You need to find a program that saves the images in the proper format, I guess.


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

#14 1/7/09 4:17

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

Re: OniSplit - Color Formats

Okay, thanks for the advice, both of you! smile

Offline

#15 1/7/09 14:09

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

Re: OniSplit - Color Formats

EdT: I think I'll just use BGR32/RGB32 for the textures that aren't shiny.. As it's 32-bit.
The DXT1 looks like it's only 16- 24-bit. Let's hope that there will be some way around the problem.. smile

Offline

Board footer

Powered by FluxBB