Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image alignment problem #39

Closed
liuzhy71 opened this issue Oct 14, 2021 · 3 comments
Closed

Image alignment problem #39

liuzhy71 opened this issue Oct 14, 2021 · 3 comments

Comments

@liuzhy71
Copy link

liuzhy71 commented Oct 14, 2021

Hello,

Following the previous problem, I managed to generate the edges of the objects in the scene with the assets files. However, when inspecting the alignment of the edges, I find that my edges from the mesh files are slightly tilted away from the rendered images. So I also tested generate a plain image from the provided scene_annotatiaon_tool.

For example, for scene ai_026_011, cam_00, image id 0099, the rendered image is
frame 0099 tonemap

My own image is
frame 0099 mesh_edge

And the image from the scene_annotation_tool is
screenshot

Is there any updates on camera position/orientations or different FoVs and far/near clipping plane values since August?

How can I align my images with the rendered images. I think maybe others will encounter this problem as well. So I need some guidance on this one.

@mikeroberts3000
Copy link
Collaborator

Hi! Thanks for your question. I think you are encountering the same issue as described in #24 and #25. This issue is still unresolved, but we're making progress. Please see the discussion in those threads for updates.

How are you generating your wireframe image? Did you modify our scene annotation tool somehow? Or did you generate it with your own renderer.

@liuzhy71
Copy link
Author

liuzhy71 commented Oct 15, 2021

Hi! Thanks for your question. I think you are encountering the same issue as described in #24 and #25. This issue is still unresolved, but we're making progress. Please see the discussion in those threads for updates.

How are you generating your wireframe image? Did you modify our scene annotation tool somehow? Or did you generate it with your own renderer.

Thank you for the timely reply and the quotation of the previous issue.
For the wireframe image, originally I tried to modify the annotation tool. With little luck, I turned to write another simple render just for the wireframe.

@mikeroberts3000
Copy link
Collaborator

mikeroberts3000 commented Jan 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants