XML:ONSK: Difference between revisions
Jump to navigation
Jump to search
m (→beta: link fix) |
m (clarifying that there's no bottom in the skybox TXMP) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{XML_File_Header | type=ONSK | {{XML_File_Header | prev=ONLV | type=ONSK | next=ONVL | name=Oni Sky Class}} | ||
== | ==General information== | ||
[[Image:ONSKafternoon.png|thumb|200px|right| | [[Image:ONSKafternoon.png|thumb|200px|right|Skybox "ONSKafternoon".]] | ||
* The | * The XML on this page is based on OniSplit '''v0.9.61.0'''. | ||
* ONSK*.oni files are '''global''' | * ONSK*.oni files are '''global''' (they can be found in AE/AEInstaller/vanilla/level0_Final.dat). | ||
* | * A skybox is basically a cube with a TXMP that has regions intended for each side – except that the there's no need for a bottom face to the cube since it will never be seen. | ||
* There are 4 original ONSK files: | * There are 4 original ONSK files: | ||
** afternoon (level 1) | ** afternoon (level 1) | ||
** sunset (level 2 and 3) | ** sunset (level 2 and 3) | ||
** crapsky (level 19) | ** crapsky (level 19) | ||
** night (all the other levels except level 13, which has no ONSK) | ** night (all the other levels except level 13, which has no ONSK) | ||
==Tags== | |||
== | |||
{| class="wikitable" width="100%" | {| class="wikitable" width="100%" | ||
!width=150px| XML tag | !width=150px| XML tag | ||
!width=120px| | !width=120px| Content type | ||
! | ! Description | ||
|- | |- | ||
| <ONSK id="..."> | | <ONSK id="..."> | ||
| integer | | integer | ||
| | | Instance ID | ||
|- | |- | ||
|valign=top| <SkyboxTextures> | |valign=top| <SkyboxTextures> | ||
|valign=top| - | |valign=top| - | ||
| Holds 6 <Link> tags | | Holds 6 <Link> tags, but the 6th tag isn't used. Image order: | ||
: top | : top | ||
: left | : left | ||
Line 40: | Line 31: | ||
: back | : back | ||
: (no) bottom | : (no) bottom | ||
To | To make a long story short, nothing in the resource after this tag is used. | ||
|- | |- | ||
| <Link> | | <Link> | ||
Line 48: | Line 39: | ||
|valign=top| <Planets> | |valign=top| <Planets> | ||
|valign=top| - | |valign=top| - | ||
| Holds 8 <Link> tags. The planets can be displayed using the specified textures, sizes and positions. Unfortunately | | Holds 8 <Link> tags. The planets can be displayed using the specified textures, sizes and positions. Unfortunately the code is unfinished and they're not occluded by anything. | ||
|- | |- | ||
| <Link> | | <Link> | ||
Line 60: | Line 51: | ||
| <Stars> | | <Stars> | ||
| - | | - | ||
| Holds 5 <Link> tags | | Holds 5 <Link> tags | ||
|- | |- | ||
| <Link> | | <Link> | ||
Line 68: | Line 59: | ||
|valign=top| <PlanetCount> | |valign=top| <PlanetCount> | ||
|valign=top| integer | |valign=top| integer | ||
| Number of used planets | | Number of used planets | ||
|- | |- | ||
|valign=top| <NoSunFlare> | |valign=top| <NoSunFlare> | ||
|valign=top| integer | |valign=top| integer | ||
| For the first "planet" an optional "flare" can be drawn. It does not appear to work correctly and since planets don't display correctly the flare is not of much use. | | For the first "planet" an optional "flare" can be drawn. It does not appear to work correctly, and since planets don't display correctly the flare is not of much use. | ||
: -1 (off) | : -1 (off) | ||
: 0 (on) | : 0 (on) | ||
Line 98: | Line 89: | ||
| <Float> | | <Float> | ||
| float | | float | ||
| | | Elevation in radians | ||
|- | |- | ||
| <PlanetAzimuths> | | <PlanetAzimuths> | ||
Line 106: | Line 97: | ||
| <Float> | | <Float> | ||
| float | | float | ||
| | | Azimuth in radians | ||
|- | |- | ||
| <SunFlareSize> | | <SunFlareSize> | ||
Line 114: | Line 105: | ||
| <SunFlareIntensity> | | <SunFlareIntensity> | ||
| float | | float | ||
| 1.0 = 100% ? | | 1.0 = 100%? | ||
|- | |- | ||
| <StarCount> | | <StarCount> | ||
| integer | | integer | ||
| A fixed number of stars can be displayed at random positions in the sky. Doesn't appear to work | | A fixed number of stars can be displayed at random positions in the sky. Doesn't appear to work; the stars are not visible, and the game crashes when the level ends. | ||
|- | |- | ||
| <RandomSeed> | | <RandomSeed> | ||
Line 126: | Line 117: | ||
| <Offset_00F0> | | <Offset_00F0> | ||
| integer | | integer | ||
| | | Unknown | ||
|} | |} | ||
==Infamous bug== | |||
In some Windows Oni installations, the edges of the skybox cube are visible as thin black lines. Hopefully we will have a public release of the skybox fixes one day. | |||
Here's 2 examples of the bug showing up and not showing up: | |||
Skybox bug Operating system Main board Processor Graphics card | |||
yes Windows 7 Home Premium M5A99X EVO AMD Phenom II X6 1055T AMD Radeon HD 7970 | yes Windows 7 Home Premium M5A99X EVO AMD Phenom II X6 1055T AMD Radeon HD 7970 | ||
no Windows 7 Home Premium - (laptop) Intel Core i5 2467M Intel HD | no Windows 7 Home Premium - (laptop) Intel Core i5 2467M Intel HD Graphics Family (Revision 9) | ||
===Beta fix=== | |||
[[Image:ONSK_fixes_Motoko_plugin.jpg|thumb|200px|right|Neo's plugin fixes the skybox borders and sun's visibility.]] | |||
''' | '''Change date 15.07.2014''' | ||
* [http://mods.oni2.net/node/380 motoko_dx11.zip] | * [http://mods.oni2.net/node/380 motoko_dx11.zip] | ||
:: The | :: The ZIP contains also the Oni.exe and binkw32.dll to use in tandem with it. | ||
Known issues: | Known issues: | ||
* | * Doesn't work with the Daodan DLL | ||
* | * Problems with lensflares | ||
* | * Problems with sorting transparencies | ||
{{XML}} | {{XML}} |
Latest revision as of 14:27, 17 October 2021
ONSK : Oni Sky Class | ||
---|---|---|
XML
ONLV << Other file types >> ONVL |
General information
- The XML on this page is based on OniSplit v0.9.61.0.
- ONSK*.oni files are global (they can be found in AE/AEInstaller/vanilla/level0_Final.dat).
- A skybox is basically a cube with a TXMP that has regions intended for each side – except that the there's no need for a bottom face to the cube since it will never be seen.
- There are 4 original ONSK files:
- afternoon (level 1)
- sunset (level 2 and 3)
- crapsky (level 19)
- night (all the other levels except level 13, which has no ONSK)
Tags
XML tag | Content type | Description |
---|---|---|
<ONSK id="..."> | integer | Instance ID |
<SkyboxTextures> | - | Holds 6 <Link> tags, but the 6th tag isn't used. Image order:
To make a long story short, nothing in the resource after this tag is used. |
<Link> | link | TXMPfile_name.oni (file suffix .oni not used) |
<Planets> | - | Holds 8 <Link> tags. The planets can be displayed using the specified textures, sizes and positions. Unfortunately the code is unfinished and they're not occluded by anything. |
<Link> | link | TXMPfile_name.oni (file suffix .oni not used) |
<SunFlare> | link | TXMPfile_name.oni (file suffix .oni not used) |
<Stars> | - | Holds 5 <Link> tags |
<Link> | link | TXMPfile_name.oni (file suffix .oni not used) |
<PlanetCount> | integer | Number of used planets |
<NoSunFlare> | integer | For the first "planet" an optional "flare" can be drawn. It does not appear to work correctly, and since planets don't display correctly the flare is not of much use.
|
<PlanetWidths> | - | |
<Float> | float | |
<PlanetHeights> | - | |
<Float> | float | |
<PlanetElevations> | - | |
<Float> | float | Elevation in radians |
<PlanetAzimuths> | - | |
<Float> | float | Azimuth in radians |
<SunFlareSize> | float | |
<SunFlareIntensity> | float | 1.0 = 100%? |
<StarCount> | integer | A fixed number of stars can be displayed at random positions in the sky. Doesn't appear to work; the stars are not visible, and the game crashes when the level ends. |
<RandomSeed> | integer | Random seed for star generation. |
<Offset_00F0> | integer | Unknown |
Infamous bug
In some Windows Oni installations, the edges of the skybox cube are visible as thin black lines. Hopefully we will have a public release of the skybox fixes one day.
Here's 2 examples of the bug showing up and not showing up:
Skybox bug Operating system Main board Processor Graphics card yes Windows 7 Home Premium M5A99X EVO AMD Phenom II X6 1055T AMD Radeon HD 7970 no Windows 7 Home Premium - (laptop) Intel Core i5 2467M Intel HD Graphics Family (Revision 9)
Beta fix
Change date 15.07.2014
- The ZIP contains also the Oni.exe and binkw32.dll to use in tandem with it.
Known issues:
- Doesn't work with the Daodan DLL
- Problems with lensflares
- Problems with sorting transparencies