openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

Texture Size and Quality Transform Scene

Open perkmn98 opened this issue 1 year ago • 2 comments

TextureMesh creates generally good results. But for some models it would be preferrable to have custom, already unwrapped UVs. Since TextureMesh disregards existing UV's, they could be transferred using TransformScene, since it is very fast (depending on face-count).

But there are some issues:

  1. The transferred texture is only able to read one of the source textures. On meshes with multiple textures, the first texture is always used instead of the correct one. This can be avoided by using --max-texture-size 0 during texturing, but might create problems for large scenes due to ultra-large texture sizes.
  2. The transferred texture has a fixed resolution of 4096x4096 px. --max-resolution seems to be bypassed or erroneous, since it has no effect.
  3. UDIM is not supported. But each UDIM-tile can be transferred separately as a workaround if UDIMs would be needed.

The biggest downside is the texture size of the transferred texture. Is there a parameter which can change this?

perkmn98 avatar Jun 03 '24 10:06 perkmn98

thx for this feedback, it sounds like there are some bugs, which is very possible as this code was not extensively tested; I'll have a look at this, but not sure when; pls feel free to create a PR with a fix

cdcseacave avatar Jun 05 '24 09:06 cdcseacave

Hi, I just want to use this repo to extract texture, but I got failed when building the main branch. Can you give a right branch?

ansj11 avatar Jun 24 '24 09:06 ansj11