GithubHelp home page GithubHelp logo

Comments (7)

TheMostDiligent avatar TheMostDiligent commented on June 10, 2024

Because Diligent uses a left-handed coordinate system.

from diligentengine.

Haidiye00 avatar Haidiye00 commented on June 10, 2024

image
Diligent math library uses the right-handed coordinate system by default.
But rendering is a left-hand coordinate system, then How do I change the rendering to a right-hand coordinate system

from diligentengine.

TheMostDiligent avatar TheMostDiligent commented on June 10, 2024

Please read this
If you want right-handed you need to apply a transform that changes handness, for example inverses x axis.

from diligentengine.

Haidiye00 avatar Haidiye00 commented on June 10, 2024

The projection matrix in bgfx can support right-hand coordinate systems. Will DiligentEngine support it in the future

from diligentengine.

TheMostDiligent avatar TheMostDiligent commented on June 10, 2024

This is the matter of changing the signs of a few members in a matrix.
You can trivially do it yourself if you need it.

from diligentengine.

Haidiye00 avatar Haidiye00 commented on June 10, 2024

Can you help provide a demo? Thank you

from diligentengine.

TheMostDiligent avatar TheMostDiligent commented on June 10, 2024

You likely need to swap X axis here:
https://github.com/DiligentGraphics/DiligentSamples/blob/7d4f4e14ea21aeb155dcd2d5ca2790c4e429fdb9/Samples/GLTFViewer/src/GLTFViewer.cpp#L121

And also change cull mode here:

https://github.com/DiligentGraphics/DiligentFX/blob/a0a5802d58b63ad158d68fb041f8d6a1b0a3ccdc/GLTF_PBR_Renderer/src/GLTF_PBR_Renderer.cpp#L253

from diligentengine.

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.