830
edits
m (→Sound export bug: PC demo, level4) |
No edit summary |
||
Line 1: | Line 1: | ||
Talk page archives: [[/Archive1|#1]] | Talk page archives: [[/Archive1|#1]] | ||
==TGA Transparency bug== | |||
I extracted HQ_DOUBLED_GLASS as TGA format from vanilla Level8_Final with the OniSplit command -extract:tga. The file was opened in Photoshop and the alpha channel was visible. | |||
I then added that texture to Sketchup and applied it in a test level, it appeared transparent in Sketchup. I used the command -create:level to create a level in Oni. In the game Oni, the texture appeared opaque not transparent. When, the file TXMPHQ_DOUBLED_GLASS.oni was extracted from the test level as TGA, the alpha channel was gone or opaque. | |||
Even if the following code was added to the textures.xml file, the texture still appeared opaque in game. | |||
<Texture Name="HQ_DOUBLED_GLASS"> | |||
<GunkFlags>Transparent TwoSided</GunkFlags> | |||
<Format>RGBA</Format> | |||
<Image>images/HQ_DOUBLED_GLASS.tga</Image> | |||
</Texture> | |||
However, if HQ_DOUBLED_GLASS.tga is converted to PNG format with alpha channel, and then the PNG file is used in Sketchup, then the texture will be transparent in game. | |||
This occurs using OniSplit version 0.9.96.0 and previous versions, tested to version 0.9.90.0 | |||
[[User:EdT|EdT]] 15:03, 14 May 2020 (PDST) | |||
==Sound export bug== | ==Sound export bug== |
edits