Git Product home page Git Product logo

Comments (2)

javagl avatar javagl commented on July 17, 2024

See #1640
And #2139
And #2149

We're in the process of trying to find a better wording/image. So even though this is a duplicate, we could as well leave this issue open for now...

from gltf.

aaronfranke avatar aaronfranke commented on July 17, 2024

@helviett There is a bit of confusion with the wording because of the mixing of directions and sides (forward vs front and back vs rear).

In OpenGL, cameras face -Z. By convention, it is common for objects to face towards the camera (so they face +Z). In GLTF, this convention is codified as part of the standard. Meaning:

  • The forward direction is -Z, the back direction is +Z. This implies the left direction -X is and right direction is +X.
    • These directions are used for things like cameras, lights, etc.
  • The front side is +Z, the rear side is -Z. This implies the left side +X is and right side is -X.
    • These sides are used for oriented 3D assets like characters and many props.
    • For Blender where +Z is up, -Y is front and +Y is rear.
  • For non-oriented assets, like maps, use the cardinal directions instead: +X east, -X west, +Z south, -Z north.
    • For Blender where +Z is up, +Y is north and -Y is south.

from gltf.

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.