nmoehrle / mvs-texturing

Algorithm to texture 3D reconstructions from multi-view stereo images
Other
931 stars 328 forks source link

Is it possible create only one .jpg texture file? #163

Open cogitas3d opened 3 years ago

cogitas3d commented 3 years ago

Hey there!

I develop an Blender based addon to surgical planning and facial prosthesis modeling and the system use displacement map to create surface details to be printed in 3D.

I solve the problem of multiple jpeg files duplicating the mesh and project the texture on a new UV map. All worjs well when I use -s3 to reconstruct the mesh on fsrecon, but when I use raw (without -s) the mesh only project texture in strong computers with i9 processor and doesnt works on i7 processors on notebook, for example.

If MVS-Texture could create only one texture file this problem could be fixed. Is it possible?

Thank you!

nmoehrle commented 3 years ago

There is a heuristic that tries to minimize the total amount of pixels in all texture atlases, this heuristic can be modified to favor the creation of a single atlas even if there are more unused pixels. https://github.com/nmoehrle/mvs-texturing/blob/e471b115bf0da337a19bf0e36e1b8177de363515/libs/tex/generate_texture_atlases.cpp#L36.