Some help interpreting model coordinates info
Posted: Sun Feb 15, 2015 5:20 pm
I'm having trouble interpreting some co-ordinates info on a model from EVE Online. Info on decals and lights for models is stored in a file like this:
http://pozniak.pl/lmeve/ccpwgl/proxy.ph ... dn1_t1.red
This code is for a spotlight facing straight ahead, circled in red on the right in the pic below.
This code is for a similar spotlight facing vertically downwards, circled in red on the left side of the pic.

I'm unable to identify which variables are responsible for the orientation of the light. I'm expecting it all to be in the Transform field.
<transform json="true">
[0.1309239,-0.4547336,39.7398682,0.0,-39.6938515,1.9394795,0.1529686,0.0,-9.4894753,-194.0409546,-2.1891282,0.0,129.2257996,-391.4908752,50.0921898,1.0,]
</transform>
The underlined are the positional co-ordinates in x-z-y format. "0.0" seems to be a break between different types of variables. The high numbers in the other groups of 3 seem to rule out the use of quaternions. I've tried plugging the numbers in and seeing which result in orientations perpendicular to each other but no luck so far.
Is there a common order of variables that matches what's in the Transform field? Thanks.
http://pozniak.pl/lmeve/ccpwgl/proxy.ph ... dn1_t1.red
Code: Select all
<element type="EveSpotlightSetItem">
<flareColor json="true">[0.7921569,0.7019608,0.5450981,1.0,]</flareColor>
<spriteScale json="true">[40.0,80.0,10.0,]</spriteScale>
<name>Front_spotlight_Right_03</name>
<spriteColor json="true">[1.8154248,1.5445752,0.9077124,1.0,]</spriteColor>
<transform json="true">
[40.0129013,0.0,-0.524,0.0,7.5e-06,19.9999962,-2.92e-05,0.0,-2.0938001,0.0001,179.9765015,0.0,72.0070114,-605.2061768,290.27771,1.0,]
</transform>
<coneColor json="true">[0.3686275,0.2705882,0.1333333,1.0,]</coneColor>
</element>Code: Select all
<element type="EveSpotlightSetItem">
<flareColor json="true">[0.6431373,0.6078432,0.5411765,1.0,]</flareColor>
<spriteScale json="true">[50.0,80.0,12.0,]</spriteScale>
<name>Spotlights_Bottom_Right_01</name>
<spriteColor json="true">[0.9568627,0.9019608,0.6901961,1.0,]</spriteColor>
<transform json="true">
[0.1309239,-0.4547336,39.7398682,0.0,-39.6938515,1.9394795,0.1529686,0.0,-9.4894753,-194.0409546,-2.1891282,0.0,129.2257996,-391.4908752,50.0921898,1.0,]
</transform>
<coneColor json="true">[0.2313726,0.227451,0.2117647,1.0,]</coneColor>
</element>
I'm unable to identify which variables are responsible for the orientation of the light. I'm expecting it all to be in the Transform field.
<transform json="true">
[0.1309239,-0.4547336,39.7398682,0.0,-39.6938515,1.9394795,0.1529686,0.0,-9.4894753,-194.0409546,-2.1891282,0.0,129.2257996,-391.4908752,50.0921898,1.0,]
</transform>
The underlined are the positional co-ordinates in x-z-y format. "0.0" seems to be a break between different types of variables. The high numbers in the other groups of 3 seem to rule out the use of quaternions. I've tried plugging the numbers in and seeing which result in orientations perpendicular to each other but no luck so far.
Is there a common order of variables that matches what's in the Transform field? Thanks.