cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.35k stars 910 forks source link

Orange Faces at Texture generation #321

Open dasbuchi opened 6 years ago

dasbuchi commented 6 years ago

Hi, I am using the prebuild windows files to reconstruct some stones and natural things for useage in 3D applications. Pretty impressed so far. The only thing it seems I couldn´t get right is the texture process. I am ending up having some orange faces all over the place. What am I doing wrong? As I am more a user with not that much coding knowlege, please be patient with your answers ;)

cdcseacave commented 6 years ago

can't help u with only this info, sry

kschweikert commented 6 years ago

orange is the default fill for missing parts of the texture image. You might not have enough overlap in your images, but to just change the color of the texture background use texturemesh.exe --empty-color 16744231 (except use a decimal color code other than orange, such as 0 for white)

abhimanyuchadha96 commented 5 years ago

What is the color code for black?

Eberty commented 5 years ago

On example page: Note that the triangles textured in orange (default) are not visible in any of the input images, and can be colored differently or removed.

My doubt is: What is the color code for transparent? Or better, is there any way I can use the neighborhood color to color this part?

cdcseacave commented 5 years ago

As texture is saved in JPEG format, no alpha channel is supported, so no transparent. No currently there is no way to color them according to neighbor faces, feel free to add this feature.

Eberty commented 5 years ago

There is a way to save the texture in png and use alpha channel? Sorry, but the final texture is saved in PNG. Do you are talking that in the code just 3 channels are used and just on final is saved in png?

cdcseacave commented 5 years ago

in the code just 3 channels are used, though it will be easy to maintain also an alpha channel set to 0 for non-visible triangles; that should be quite easy to do, however I do not have the time right now

TimTreurniet commented 5 years ago

What is the color code for black?

0 seems to be black for me, not white

john-davies commented 4 years ago

Thanks for this information, it was very useful. The other alternative if you want to change the default colour is to edit the texture file directly. This is quicker than running texturemesh each time especially if you want to experiment with a few different colours. I used the Color Exchange feature in Gimp but most image processing tools should be able to do it.