Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 06/28/09 04:06

TOCS
Member
From: Denmark
Registered: 04/04/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 06/28/09 09:06

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

Re: OniSplit - Color Formats

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

Offline

#3 06/28/09 11:06

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

Re: OniSplit - Color Formats

25397371.th.png

You see the calf on this ninja is messed.

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

Offline

#4 06/28/09 13:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/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 06/28/09 21:06

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/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 06/29/09 06:06

TOCS
Member
From: Denmark
Registered: 04/04/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 (06/29/09 06:06)

Offline

#7 06/29/09 11:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/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 06/29/09 13:06

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/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 06/29/09 14:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/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 06/29/09 16:06

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/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 06/29/09 16:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/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 06/30/09 12:06

TOCS
Member
From: Denmark
Registered: 04/04/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 06/30/09 12:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/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 07/01/09 04:07

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

Re: OniSplit - Color Formats

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

Offline

#15 07/01/09 14:07

TOCS
Member
From: Denmark
Registered: 04/04/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