.xl

From Hgames Wiki
Revision as of 16:30, 27 March 2013 by Enimaroah (talk) (Created page with ".xl units define light sources for dynamic lighting. They usually accompany maps or characters. ==The contents of XL units== To view the contents of such units and even to c...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.xl units define light sources for dynamic lighting. They usually accompany maps or characters.

The contents of XL units

To view the contents of such units and even to create them the XLtool has been implemented. It is a command line tool which can be used produce text output as follows:

CMD> XLtool.exe /decode aj_body_03_00.xl

decode D:\PPD\data\prpr_00_00\aj_body_03_00.xl
version=5
x00 xB8 x97 x79
num_entries=4
<Light_00>
<SCENE_ROOT>
x0B i1
1 1 1 1 // material attributes 1 RGBA
1 1 1 1 // material attributes 2 RGBA
0 0 0 1 // material attributes 3 RGBA
7.322689 -1.913467 -27.40286 // position XYZ
0.4881772 -0.1989661 0.8497619 // normal XYZ (0.999999883417138)
100 1 0 0.1 0 0.7853982 0.9948376
0.9999999 0 0 0 // transformation matrix line 1
0 0.9999999 0 0 // transformation matrix line 2
0 0 0.9999999 0 // transformation matrix line 3
0 15 15 0.9999999 // transformation matrix line 4
0 x00
0 0 0
0 15 15 // translation XYZ

<Light_01>
<SCENE_ROOT>
x0B i1
1 1 1 1 // material attributes 1 RGBA
1 1 1 1 // material attributes 2 RGBA
0.70588 0.6392201 0.52157 1 // material attributes 3 RGBA
-7.322673 4.055534 -52.8958 // position XYZ
0.4881772 -0.1989661 0.8497619 // normal XYZ (0.999999883417138)
100 1 0 0.1 0 0.7853982 0.9948376
0.9999999 0 0 0 // transformation matrix line 1
0 0.9999999 0 0 // transformation matrix line 2
0 0 0.9999999 0 // transformation matrix line 3
0 15 -15 0.9999999 // transformation matrix line 4
0 x00
0 0 0
0 15 -15 // translation XYZ

<Light_02>
<SCENE_ROOT>
x0F i3
1 1 1 1 // material attributes 1 RGBA
1 1 1 1 // material attributes 2 RGBA
0 0 0 1 // material attributes 3 RGBA
0.000008046712 -13.53399 -43.569 // position XYZ
0.148223 -0.6472438 -0.7477334 // normal XYZ (0.999999918127288)
100 1 0 0.1 0 0.7853982 0.9948376
0.7248354 0.000000029802 0.6889218 0 // transformation matrix line 1
-0.5515964 -0.5991105 0.5803512 0 // transformation matrix line 2
0.4127404 -0.8006661 -0.4342566 0 // transformation matrix line 3
0 0 0 0.9999999 // transformation matrix line 4
0 x00
-4.069999 -0.7600006 0
0 0 0 // translation XYZ

<Speculer Light>
<>
x0B i3
1 1 1 1 // material attributes 1 RGBA
0.10588 0.31765 0.23137 1 // material attributes 2 RGBA
0 0 0 1 // material attributes 3 RGBA
27.21347 7.596552 5.233931 // position XYZ
0.05156758 0.2179258 -0.9746019 // normal XYZ (0.999999835748409)
100 1 0 0.1 0 0.7853982 0.9948376
-0.8464078 -0.000000000233 -0.532535 0 // transformation matrix line 1
0.005325514 0.99995 -0.00846434 0 // transformation matrix line 2
0.5325084 -0.01000031 -0.8463655 0 // transformation matrix line 3
2.904988 31.7 50.55145 1 // transformation matrix line 4
0 x00
0.01000047 2.58 0
2.904988 31.7 50.55145 // translation XYZ


Enimaroah (talk) 15:30, March 27, 2013 (UTC)