Skip to content

Question for coordinate system #3

@SCUTykLin

Description

@SCUTykLin

Hello:
I appreciate the solid work you've contributed and I‘m very interested in it.
But I have some question for the output(angles). I am trying to correlate the output of "Orient Anything" with some existing coordinate systems(OpenGL, blender, OpenCV...), but I have encountered some issues in this process.

  1. code of camera location:
    camera_location = [-1*radius * math.cos(phi), -1*radius * math.tan(theta), radius * math.sin(phi)]
    Is the output angle in spherical coordinates? However, the calculation method for spherical coordinates is as follows: $(r \sin \theta \cos \phi, r \sin \theta \sin \phi, r \cos \theta)$.
  2. What is the world coordinate in this project? because I want the transfer the angles which output via Orient Anything to xyz basis in another coordinate systems(OpenGL). View matrix:
    def look_at(eye: Vec3d, target: Vec3d, up: Vec3d = Vec3d(0, -1, 0)) -> Mat4d:
    Sound like up vector is [0, 1, 0]?

Sorry for bother u.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions