Closed liuzhy71 closed 3 years ago
See #39.
camera_data_out_new.csv This is a vray camera data that I parsed and I have manually examined all the scenes for the projection alignment. Hope this helps anyone working on this problem.
Hi @liuzhy71, I have some good news. I just checked in some data and example code that resolves this issue.
In the contrib/mikeroberts3000
directory, I provide a modified perspective projection matrix for each scene that can be used as a drop-in replacement for the usual OpenGL perspective projection matrix, as well as example code for projecting world-space points into Hypersim images.
I apologize that it took so long to address this issue. It was especially challenging to debug because V-Ray's behavior wasn't well-documented, and I've been busy with other projects and holiday travel.
wow, thank you very much, I have made a work around of the projection matrix. But I didn't test it thoroughly, I'll check my code with yours to see if if mine is correct.
When using the
scene_annotation_tool
to generate images, I found that, in some scenes, the camera projections from the scene_annotation_tool are different from the rendered images.For example, in scene
ai_026_006
the render image ofcam_00
with id0097
isHowever, the screen shot from the annotation tool is
It can be seen that in the annotation tool, the distortion of post is small. However, in the original image the distortion is distinct.
How can I fix this problem to generate correct images from the annotation tool?