Code Monkey home page Code Monkey logo

Comments (6)

walbourn avatar walbourn commented on June 2, 2024

Just to clarify, the 45 literal you are passing to XMQuaternionRotationRollPitchYaw: The function takes radians, not degrees, so you are going to get something like 7 complete rotations plus a little...

If you do a rotation by XM_PI/4 (i.e. 45° expressed as radians), the answers match for MSVC, clang v15, /fp:fast, etc.

from directxmath.

UUUnmei avatar UUUnmei commented on June 2, 2024

oops, sorry for that...
but it is still there (and not just for specific angles)
does clang version make a difference?

my cli options: (and inherit from default)
/GS /W3 /Gy /Zi /O2 /fp:fast /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /WX- /Gd /Oi /MD /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" /Fp"x64\Release\Project1.pch" /diagnostics:column
(i'm not using any pch, though it does specify a name for it)

from directxmath.

UUUnmei avatar UUUnmei commented on June 2, 2024
2022-11-03.10-45-03.mp4

from directxmath.

walbourn avatar walbourn commented on June 2, 2024

Any use of /fp:fast allows the compiler to deviate from IEEE-754 rules for floating-point, so it's not going to be consistent between compilers.

from directxmath.

walbourn avatar walbourn commented on June 2, 2024

You may also want to try the latest DirectXMath. Windows 10 SDK (19041) contains DirectXMath 3.14. You can get newer versions from GitHub, NuGet, vcpkg, or installing newer Windows SDKs.

from directxmath.

UUUnmei avatar UUUnmei commented on June 2, 2024

You may also want to try the latest DirectXMath. Windows 10 SDK (19041) contains DirectXMath 3.14. You can get newer versions from GitHub, NuGet, vcpkg, or installing newer Windows SDKs.

i tried ver3.17 through vcpkg, but it still not works unfortunately.
anyway, thank you very much
let's looking forward to a better collaboration between compilers in the future xD

from directxmath.

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.