h-cha / unity_to_instant-ngp

0 stars 0 forks source link

カメラパスを出力base_cam.json したもの→transform.json #9

Open h-cha opened 9 months ago

h-cha commented 9 months ago

https://github.com/NVlabs/instant-ngp/discussions/506 transform.jsonのカメラパスをbase_cam.jsonに変換できるか?→できる

h-cha commented 9 months ago

https://github.com/NVlabs/instant-ngp/discussions/153 カメラ座標について

h-cha commented 9 months ago

transform.jsonで以下のカメラ行列のものをbase_cam.jsonに出力するとどうなるか?

{
    "camera_angle_x": 2.1273956954128375,
    "scale": 1.0,
    "offset": [
        0.0,
        0.0,
        0.0
    ],
    "frames": [
        {
            "file_path": "png/view_f0000f",
            "transform_matrix": [
                [
                    1.0,
                    0.0,
                    0.0,
                    0.8
                ],
                [
                    0.0,
                    1.0,
                    0.0,
                    1.0
                ],
                [
                    0.0,
                    0.0,
                    1.0,
                    1.2
                ],
                [
                    0.0,
                    0.0,
                    0.0,
                    1.0
                ]
            ]
        }
    ]
}

{"path":[{"R":[0.5,-0.5,0.5,0.5],
"T":[1.0,1.2000000476837158,0.800000011920929],
"dof":0.0,"fov":55.83858108520508,"scale":0.6027858257293701,"slice":0.0}],"time":1.0}

Rが違う理由 キャプチャした時に90度回転した状態でキャプチャしたから ![Uploading スクリーンショット 2023-12-05 18.16.07.png…]()