Object XML Format

Started by umar4911, Aug 18, 2019, 11:20 AM

Previous topic - Next topic

umar4911

<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
 <item model="1083" name="Home">
  <position x="-34.6886" y="1763.63" z="32.1387" />
  <rotation format="axisangle" x="0" y="0" z="-0.703279" angle="-0.710914" />
 </item>
</itemlist>

What can be other formats for rotation except axisangle? Is there any for Euler?
I am gamer, programmer and hacker. Try to find me!
xD

Sebastian

Quaternion if I'm not wrong.

NicusorN5

Isnt axis angle already a quaternion?

Sebastian

#3
Have no idea. Afaik, there was a "w" rotation too.
Is that what "angle" stands for ?

Ps: there are surely 2 ways to define the rotation, because i've used both. I just don't remember.
When i will put my hands on laptop, i will find the lines and show you, if nobody else do.

NicusorN5

Quote from: Sebastian on Aug 20, 2019, 09:04 AMHave no idea. Afaik, there was a "w" rotation too.
Is that what "angle" stands for ?

Ps: there are surely 2 ways to define the rotation, because i've used both. I just don't remember.
When i will put my hands on laptop, i will find the lines and show you, if nobody else do.
Seems to be, since:
x =0,y=0,z=0, angle = 1 is also the default quaternion value (in monogame for example Quaternion.Identity has the value (0,0,0,1) and  thats 0,0,0 as euler angles.