Giter Site home page Giter Site logo

Comments (10)

Lilaa3 avatar Lilaa3 commented on August 13, 2024

Could you provide a file please? From a quick glance at the object export code I can´t see the issue

from fast64.

yoyotam3 avatar yoyotam3 commented on August 13, 2024

Sorry, I meant to provide more detail after I figured out some stuff, but forgot. Making a blend file to show the issue rn, but while I was making my hack I figured out that the correct way to convert rotations is to first convert the blender rotations to YXZ (I think you're using ZXY which might be the issue), which I did by changing the rotation type to quaternions then to YXZ, then swapping the Y and Z values, then making the Z negative, then putting at into the levelscript. So if the blender YXZ Euler rotation values are bX, bY,bZ, it's (bX,bZ,-bY).

from fast64.

yoyotam3 avatar yoyotam3 commented on August 13, 2024

example_incorrect_rotation.zip
this blend file should be a good demonstration of the issue.

from fast64.

Lilaa3 avatar Lilaa3 commented on August 13, 2024

Ok I just woke up, I will step through the export with debug if needed, it's way easier to find issues that way, fast64 reads the actual object matrix and gets the rotation from that so all that should not be an issue but again I will check it out

from fast64.

Lilaa3 avatar Lilaa3 commented on August 13, 2024

I spent way too long trying to understand why it was still wrong but then i decided to actually check if the orientation we both expected was the actual orientation, it wasn't aha
Add a simple mesh with a clear orientation, parent it to the test object
image
Anyways I made a fix! It's mentioned right above this comment
image

from fast64.

yoyotam3 avatar yoyotam3 commented on August 13, 2024

Oh I didn't intend for the axes colors to represent actual specific axes if that's what you mean. Sorry for the confusion

from fast64.

yoyotam3 avatar yoyotam3 commented on August 13, 2024

Should I close the issue? Not super familiar with github.

from fast64.

Lilaa3 avatar Lilaa3 commented on August 13, 2024

It should be closed once the issue is resolved, the pr has no been merged so this will stay open for now

from fast64.

Dragorn421 avatar Dragorn421 commented on August 13, 2024

#339 was merged

from fast64.

Lilaa3 avatar Lilaa3 commented on August 13, 2024

Fixed in eee1c34

from fast64.

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.