Git Product home page Git Product logo

Comments (7)

bkaradzic avatar bkaradzic commented on June 30, 2024 1

bx is not really part of bgfx... It's used there, but not everything.

bx vector math is going to get changed in the future, and ideally you should have your own math library.

from bx.

OswaldHurlem avatar OswaldHurlem commented on June 30, 2024

Additionally, mtxSRT appears to have the opposite rotation direction as Aerospace Eulers
flight_dynamics_with_text
https://gyazo.com/9e0d2019405543e5a63f4f5484b71c35

from bx.

bkaradzic avatar bkaradzic commented on June 30, 2024

cc @dariomanesku

from bx.

dariomanesku avatar dariomanesku commented on June 30, 2024

@OswaldHurlem: are you perhaps using left-handed coordinate system?

from bx.

OswaldHurlem avatar OswaldHurlem commented on June 30, 2024

I am, but is there any handedness inherit to my example from above? Also, bgfx/bx does not have any documented handedness.

from bx.

dariomanesku avatar dariomanesku commented on June 30, 2024

@OswaldHurlem: yes, try

bx/src/math.cpp

Line 320 in 7f4f5a2

void mtxLookAtRh(float* _result, const float* _eye, const float* _at, const float* _up)

from bx.

OswaldHurlem avatar OswaldHurlem commented on June 30, 2024

One particular thing that may have led me to believe BX's vector math was left-handed and integral to BGFX was the debug draw example:
Debug Draw Example
It has left-handed coordinates and +Y = Up

from bx.

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.