8,018
edits
m (link fix) |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 209: | Line 209: | ||
:These bits have no effect on the texture itself but the colors of the 3D model to which the texture is applied. Each point gets a color based on current time and some coefficients for each color component. For example for invisibility green has 0.15, blue has 0.3 and red 0. [[User:Neo|Neo]] | :These bits have no effect on the texture itself but the colors of the 3D model to which the texture is applied. Each point gets a color based on current time and some coefficients for each color component. For example for invisibility green has 0.15, blue has 0.3 and red 0. [[User:Neo|Neo]] | ||
===0x90=== | ===0x90=== | ||
Line 270: | Line 241: | ||
;Anything else? | ;Anything else? | ||
:Q: (sorry) nothing else, ever ever? ^^ [[User:Geyser|geyser]] | :Q: (sorry) nothing else, ever ever? ^^ [[User:Geyser|geyser]] | ||
===flag values are powers of 2=== | |||
When you open OUP, dat editor and choose for example "contrail4444" then you will see "05" at offset 0x88. But that flag isn't explained here. Same "50" and so on. All the listed files have one or more unknown flag at offset 0x88. The question is what does they stand for. -- Or do I have overlooked their meaning?? | |||
[[User:Paradox-01|Paradox-01]] 19:40, 17 July 2008 (CEST) | |||
05 = 04 + 01 | |||
50 = 40 + 10 | |||
All flag values are powers of 2 and they can be combined by addition. For example if you want to disable both U and V wrapping you need to use 0x04 + 0x08 = 0x0C. | |||
[[User:Neo|Neo]] | |||
Ah that's cool^^ Big thanks. | |||
[[User:Paradox-01|Paradox-01]] 20:05, 17 July 2008 (CEST) | |||
==XML section== | |||
'''file structure''' | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Oni Version="..."> | |||
<Texture> | |||
<Flags>...</Flags> | |||
<Format>...</Format> | |||
<Image>...</Image> | |||
</Texture> | |||
</Oni> | |||
<'''Oni Version'''="..."> can be: | |||
''your_version'' | |||
E.g. my current onisplit version is ''0.9.52.0'' | |||
<'''Flags'''>... can be: | |||
ARGB4444 | |||
RGB555 | |||
ARGB5551 | |||
RGB888 | |||
DXT1 | |||
ARGB8888 | |||
ARGB8888 can be used only if you use an updated engine. (Mac users also need to [http://oni.bungie.org/community/forum/viewtopic.php?pid=29967#p29967 swap the color channels.]) | |||
<'''Format'''>... can be: | |||
None | |||
HasMipMaps | |||
DisableUWrap | |||
DisableVWrap | |||
AnimUseLocalTime | |||
AnimBackToBack | |||
AnimRandom | |||
AnimIgnoreGlobalTime | |||
ShieldEffect | |||
InvisibilityEffect | |||
DaodanEffect | |||
The following tag is used if xml file is meant to create an animated texture. In that case you use multiple <Image>... | |||
<'''Speed'''>... can be an integer. | |||
The following tag is used if xml file is meant to create an texture with reflectivity. The file suffixes like .tga or .oni is not used in the EnvMap link. | |||
<'''EnvMap'''>... can be: | |||
TXMPfile_name | |||
<'''Image'''>... can be: | |||
TXMP''file_name'''''.tga''' | |||
TXMP''file_name''.png | |||
TXMP''file_name''.dds | |||
TGA is preferred by the community. |
edits