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

Depth/normal maps rendering from Mesh #1752

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

servantftechnicolor
Copy link
Contributor

@servantftechnicolor servantftechnicolor commented Oct 2, 2024

Generate synthetic (depth/normal)maps using pose and intrinsics from sfmData and a mesh.
If the sfmData contains n views with pose and intrinsics then this node will generate n (depth/normal)maps

Comment on lines +73 to +74
ray.direction.y = -dir.y();
ray.direction.z = -dir.z();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we convert it here or convert on the load of the OBJ as we usually do (to keep the CV coordinates everywhere)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much more efficient given that, for lidar files, the number of vertices is way higher than the number of peeks in an image.

@fabiencastan fabiencastan changed the title depthmap rendering Depth/normal maps rendering from Mesh Oct 17, 2024
@fabiencastan fabiencastan merged commit 5869c98 into develop Oct 17, 2024
4 checks passed
@fabiencastan fabiencastan deleted the dev/generateDepth branch October 17, 2024 13:08
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

Successfully merging this pull request may close these issues.

2 participants