Skip to content

AccuCities CAD model units and coordinate frame #13

@v-pnk

Description

@v-pnk

Hello,
In README.md, there is: "The unit of the CAD models is the meter."

I downloaded the free AccuCities CAD model TQ3280 – Free 3D London Sample and the units of that model seem to be centimeters. At least when I measure the length of the model tile side in MeshLab, I get roughly 100 000. I've tried it for all the detail levels of .obj format.

holicity_model_measurement03

My intention is to render the model from the given camera poses. Currently, to get valid renderings, I have to multiply the translation vector of camera poses by 100 and apply rotation around the global X axis by 90 degs. (For the sake of completeness, I also have to rotate the local coordinate frame around X by 180 degs to get to the OpenGL camera convention, but that is not part of the issue, so I don't include that in the example below.)

T = camr_npz['R'] @ np.array([[1,0,0,0], [0,0,-1,0], [0,1,0,0], [0,0,0,1]])
R = T[0:3, 0:3]
t = T[0:3, 3]
t = 100 * t

Did I misunderstand the instructions?

Thank you in advance!

Edit: Fixed the code.

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