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

Generate NormalMaps and HeightMaps #1092

Merged
merged 28 commits into from
Sep 3, 2021

Conversation

Thomas-Zorroche
Copy link
Contributor

@Thomas-Zorroche Thomas-Zorroche commented Aug 5, 2021

Generate normal maps and height maps from a high poly model in order to retrieve details on a decimated mesh.
This PR is linked to the following in the meshroom repository : alicevision/Meshroom#1508

Documentation

Plug the high poly mesh output from the Meshing into the Texturing Ref mesh input.
Then plug the low poly model to export into the Texturing mesh input.

Implementation remarks

  • It is possible to skip a texture generation (Diffuse, NormalMap, HeightMap) by choosing the empty option for the texture file type.
  • Heightmaps can only be exported in .exr format.
  • In order to have correct results, you should not use a "simple" Decimate node with a vertices count target. Instead, use as many combinations of MeshFiltering following by Decimate node as needed, then use the output mesh as the model to texture.

Screenshot

Rendered in Cycles (Diffuse + NormalMaps)
Model with 6 411 triangles.
Cycles_NM

@Thomas-Zorroche Thomas-Zorroche force-pushed the dev/NormalMaps branch 2 times, most recently from 41c66db to c5a2299 Compare August 10, 2021 14:57
Add filetype support for Meshing and MeshFiletring
@fabiencastan
Copy link
Member

@Thomas-Zorroche Could you upgrade the main_convertMesh to use the library instead of geogram?

Allow to see textures inside Meshroom Viewer3D, but we still have the lighting / normal issue with black gradient on the surface
around-media/ue4-custom-prompto@044dbad
@fabiencastan fabiencastan merged commit 6478c47 into alicevision:develop Sep 3, 2021
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