Jump to content

OBD:ONSK: Difference between revisions

78 bytes removed ,  19 July 2008
no edit summary
m (link32 to link)
No edit summary
Line 24: Line 24:
{{OBDtr| 0x38 | link    |00FF00| 00 00 00 00 | unused  | planet 7; unused; always the same }}
{{OBDtr| 0x38 | link    |00FF00| 00 00 00 00 | unused  | planet 7; unused; always the same }}
{{OBDtr| 0x3C | link    |00FF00| 00 00 00 00 | unused  | planet 8; unused; always the same }}
{{OBDtr| 0x3C | link    |00FF00| 00 00 00 00 | unused  | planet 8; unused; always the same }}
{{OBDtr| 0x40 | link    |00FF00| 00 00 00 00 | unused  | sun flare; unused; always the same }}
{{OBDtr| 0x40 | link    |00FF00| 00 00 00 00 | unused  | sun flare texture; unused; always the same }}
{{OBDtr| 0x44 | link    |00FF00| 01 11 25 00 | 9489    | star 1; link to 09489-lensflare02.[[OBD:TXMP|TXMP]] (global); always used (see below) }}
{{OBDtr| 0x44 | link    |00FF00| 01 11 25 00 | 9489    | star 1; link to 09489-lensflare02.[[OBD:TXMP|TXMP]]; always used (see below) }}
{{OBDtr| 0x48 | link    |00FF00| 00 00 00 00 | unused  | star 2; unused; always the same }}
{{OBDtr| 0x48 | link    |00FF00| 00 00 00 00 | unused  | star 2; unused; always the same }}
{{OBDtr| 0x4C | link    |00FF00| 00 00 00 00 | unused  | star 3; unused; always the same }}
{{OBDtr| 0x4C | link    |00FF00| 00 00 00 00 | unused  | star 3; unused; always the same }}
{{OBDtr| 0x50 | link    |00FF00| 00 00 00 00 | unused  | star 4; unused; always the same }}
{{OBDtr| 0x50 | link    |00FF00| 00 00 00 00 | unused  | star 4; unused; always the same }}
{{OBDtr| 0x54 | link    |00FF00| 00 00 00 00 | unused  | star 5; unused; always the same }}
{{OBDtr| 0x54 | link    |00FF00| 00 00 00 00 | unused  | star 5; unused; always the same }}
{{OBDtr| 0x58 | int32   |00FFFF| 01 00 00 00 | 1      | number of used planets }}
{{OBDtr| 0x58 | int32   |00FFFF| 01 00 00 00 | 1      | number of used planets }}
{{OBDtr| 0x5C | unknown  |FF00FF| FF FF FF FF | unknown | unknown, always the same; either -1 or opaque white (ARGB) }}
{{OBDtr| 0x5C | int32    |FF00FF| FF FF FF FF | -1      | sun flare on/off (-1 <nowiki>=</nowiki> off, 0 <nowiki>=</nowiki> on) }}
{{OBDtr| 0x60 | float32  |FFC8C8| 00 00 80 3F | 1.000000| planet 1; U-scaling in percent }}
{{OBDtr| 0x60 | float32  |FFC8C8| 00 00 80 3F | 1.000000| planet 1; U-scaling }}
{{OBDtr| 0x64 | char[28] |FFC8C8| AD DE      | dead    | planets 2-8; U-scaling in percent }}
{{OBDtr| 0x64 | char[28] |FFC8C8| AD DE      | dead    | planets 2-8; U-scaling }}
{{OBDtr| 0x80 | float32  |FFFFC8| 00 00 80 3F | 1.000000| planet 1; V-scaling in percent }}
{{OBDtr| 0x80 | float32  |FFFFC8| 00 00 80 3F | 1.000000| planet 1; V-scaling }}
{{OBDtr| 0x84 | char[28] |FFFFC8| AD DE      | dead    | planets 2-8; V-scaling in percent }}
{{OBDtr| 0x84 | char[28] |FFFFC8| AD DE      | dead    | planets 2-8; V-scaling }}
{{OBDtr| 0xA0 | float32  |C8FFC8| 00 00 00 00 | 0.000000| planet 1; elevation in radians }}
{{OBDtr| 0xA0 | float32  |C8FFC8| 00 00 00 00 | 0.000000| planet 1; elevation in radians }}
{{OBDtr| 0xA4 | char[28] |C8FFC8| AD DE      | dead    | planets 2-8; elevation in radians }}
{{OBDtr| 0xA4 | char[28] |C8FFC8| AD DE      | dead    | planets 2-8; elevation in radians }}
{{OBDtr| 0xC0 | float32  |C8FFFF| 00 00 00 00 | 0.000000| planet 1; azimuth in radians }}
{{OBDtr| 0xC0 | float32  |C8FFFF| 00 00 00 00 | 0.000000| planet 1; azimuth in radians }}
{{OBDtr| 0xC4 | char[28] |C8FFFF| AD DE      | dead    | planets 2-8; azimuth in radians }}
{{OBDtr| 0xC4 | char[28] |C8FFFF| AD DE      | dead    | planets 2-8; azimuth in radians }}
{{OBDtr| 0xE0 | float32  |FFC8FF| 00 00 80 40 | 4.000000| unknown, always the same }}
{{OBDtr| 0xE0 | float32  |FFC8FF| 00 00 80 40 | 4.000000| sun flare size }}
{{OBDtr| 0xE4 | float32  |FFC800| 00 00 80 3F | 1.000000| unknown, always the same }}
{{OBDtr| 0xE4 | float32  |FFC800| 00 00 80 3F | 1.000000| sun flare intensity }}
{{OBDtr| 0xE8 | float32  |C800C8| 00 00 00 00 | 0.000000| unknown, always the same }}
{{OBDtr| 0xE8 | int32    |C800C8| 00 00 00 00 | 0       | number of stars to generate }}
{{OBDtr| 0xEC | int32    |C87C64| 45 00 00 00 | 69      | unknown, always the same }}
{{OBDtr| 0xEC | int32    |C87C64| 45 00 00 00 | 69      | random seed for star generation }}
{{OBDtr| 0xF0 | int32    |B0C3D4| 01 00 00 00 | 1      | unknown, always the same }}
{{OBDtr| 0xF0 | int32    |B0C3D4| 01 00 00 00 | 1      | ignored }}
{{OBDtr| 0xF4 | char[12] |E7CEA5| AD DE      | dead    | unused }}
{{OBDtr| 0xF4 | char[12] |E7CEA5| AD DE      | dead    | unused }}
|}
|}


;Skybox
:The skybox is just a cube drawn using the skybox textures. The bottom face of the cube is never used/drawn.


;TXMP links
:According to the swapcode table, the 20 links are in fact 4 groups:
:*6 (skybox, bottom one is never used)
:*8 (only first one is ever used (sun))
:*1 (never used)
:*5 (first one always lensflare02, other 4 never used)
;Issues with the sun
:After upscaling and positioning the sun, two bugs remain:
:*the sun texture is rotated 90° counter-clockwise
:*the sun isn't occluded by anything at all :(
;Planets
;Planets
:Multiple planets work, but the occlusion issue is still there.
:There can be up to 8 "planets" displayed using the specified textures, sizes and positions. Unfortunately there is a bug and they're no occluded by anything.
 
;Sun Flare
: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.
 
;Stars
;Stars
:Stars are not placed the way planets are.
: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.
:They are probably generated at random...
 
 
;Original ONSK
;Original ONSK
*afternoon (level 1)
*afternoon (level 1)
Line 69: Line 66:
*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)
All ONSK are identical apart from the sun stuff (see above) and the skybox textures.




{{OBD_File_Footer|type=ONSK|prev=ONSA|next=ONTA|name=Oni Sky Class}}
{{OBD_File_Footer|type=ONSK|prev=ONSA|next=ONTA|name=Oni Sky Class}}
708

edits