Urban Chaos LGT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 9: Line 9:
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
// Urban Chaos  
// Urban Chaos  
// LGT file format
// LGT file format
Line 15: Line 14:


//header
//header
4 bytes (uint32) - sizeof_ed_light
SLONG    sizeof_ed_light
4 bytes (uint32) - ed_max_lights
SLONG    ed_max_lights
4 bytes (uint32) - sizeof_night_colour
SLONG    sizeof_night_colour
 


ed_max_lights *
ed_max_lights *
{
{
   (sizeof_ed_light) bytes - el
   (sizeof_ed_light) bytes - ED_Light el entry
    {
      el.x,
      el.y,
      el.z,
      el.range,
      el.red,
      el.green,
      el.blue
    }
}
}


SLONG        ed_light_free
ULONG        flag
ULONG        amb_d3d_colour
ULONG        amb_d3d_specular
SLONG        amb_red
SLONG        amb_green
SLONG        amb_blue
SBYTE     lampost_red
SBYTE     lampost_green
SBYTE     lampost_blue
UBYTE        padding
SLONG        lampost_radius


SLONG ed_light_free
(sizeof_night_colour) sky_colour
 
 
 
</pre>
</pre>
</div>
</div>
Line 37: Line 53:
* Files with this file format can be found inside "\Urban Chaos\data\Lighting\" folder.
* Files with this file format can be found inside "\Urban Chaos\data\Lighting\" folder.
* File version can be calculated as follows: version = sizeof_ed_light>>16.
* File version can be calculated as follows: version = sizeof_ed_light>>16.
* LGT file can be described as "Light map file".


=== Compatible Programs ===  
=== Compatible Programs ===  
Line 49: Line 66:
[[Category:Extension_lgt | Extension: lgt]]
[[Category:Extension_lgt | Extension: lgt]]
[[Category:BMS_None | BMS: None]]
[[Category:BMS_None | BMS: None]]
[[Category:File Format]]

Latest revision as of 17:04, 25 January 2021

LGT


Format Specifications

// Urban Chaos 
// LGT file format


//header
SLONG     sizeof_ed_light
SLONG     ed_max_lights
SLONG     sizeof_night_colour

ed_max_lights *
{
   (sizeof_ed_light) bytes - ED_Light el entry 
    {
       el.x,
       el.y,
       el.z,
       el.range,
       el.red,
       el.green,
       el.blue
    }
}

SLONG        ed_light_free
ULONG        flag
ULONG        amb_d3d_colour
ULONG        amb_d3d_specular
SLONG        amb_red
SLONG        amb_green
SLONG        amb_blue
SBYTE	     lampost_red
SBYTE	     lampost_green
SBYTE	     lampost_blue
UBYTE        padding
SLONG        lampost_radius

(sizeof_night_colour) sky_colour

Notes and Comments

  • Files with this file format can be found inside "\Urban Chaos\data\Lighting\" folder.
  • File version can be calculated as follows: version = sizeof_ed_light>>16.
  • LGT file can be described as "Light map file".

Compatible Programs

None.