Coder Social home page Coder Social logo

Interpret the rotation keyword about garnett HOT 7 CLOSED

bdice avatar bdice commented on August 23, 2024
Interpret the rotation keyword

from garnett.

Comments (7)

bdice avatar bdice commented on August 23, 2024

Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).


Tagging @rosecers , do you know how the rotation keyword is defined?

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).


It appears that the rotation keyword refers to a rotation about the x, y, z view axis, where x=[1,0,0], y=[0,1,0], and z=[0,0,1] in euler angles with DEG unit.

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by RoseCers (Bitbucket: RoseCers, ).


That's correct!

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by RoseCers (Bitbucket: RoseCers, ).


The rotation key word indicates rotation about the x, y, and z axes, defined as the [100], [010], and [001], respectively.

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).


Thank you for the confirmation @rosecers . I'm going to keep the issue open until this is actually implemented.

Since the glotzformats box is defined such that the first box vector must be parallel to [1,0,0], there is no way to actually rotate the whole system according to the specified rotation.

I'm currently working on an implementation where the rotation keyword is interpreted by the PosFileReader and the associated rotation is stored as a quaternion as part of the frame data. This rotation is also written out again by the PosFileWriter.

For this I copied and translated injavis code from java to python for the translation between the angles and quaternion and back. @rosecers, does the injavis license allow that?

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by RoseCers (Bitbucket: RoseCers, ).


I'm not entirely sure, that's a question for @michaelengel.

from garnett.

lyrivera avatar lyrivera commented on August 23, 2024

This issue was addressed on 4b6ebe0.

from garnett.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.