Skip to content

Frustum culling implementation uses wrong coordinate system #11

@jfsantos

Description

@jfsantos

Hello,

first of all, thanks for your amazing work on this library!

I am implementing a 3D game using SaturnRingLib and SaturnMathPP and was trying to implement frustum culling and found your implementation. I just noticed that the coordinates you use are not like the ones from SGL. The coordinate system from SGL is (from section 4.1 in the SGL's User Manual):

+X goes right
-Y goes up
-Z goes towards the screen

but in your implementation (from frustum.hpp):

     * Coordinate system:
     * - Uses a right-handed coordinate system where:
     *   - +X is right
     *   - +Y is up
     *   - -Z is forward (into the screen)

Is this intentional or a bug? Since it's not wired into SaturnRingLib yet I could not understand why the coordinate system is different from SGL.

Pinned by robertoduarte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions