Closed klaussilveira closed 3 months ago
Hi, thanks for the detailed report! Whenever this happens (which it will in some cases), it clamps the results, so it shouldn't be the cause of any issues.
I am seeing that it's misinterpreting the colorspace of some of your images, though. Have you tried exporting the textures as linear? The thumbnails should ideally match what you see in the default photo viewer.
They are originally DDS textures, so I've used Imagick's convert example.dds -set colorspace RGB example.png
. I still have the errors, but if I do convert result.png -alpha off no_alpha.png
, the albedo and normal look almost correct:
I wonder if this could be an issue with vtex2
? I'm using it to convert the VTF back to a PNG.
ps: Yes, definitely vtex2
played a part in here. Added -na
as an option and it looks good now. Thank you for the attention on this!
The alpha is used to store phong and envmap information, so the semitransparent output is actually correct. Why convert it back to a png? The vtfs should be readily usable via the generated vmt. (If they aren't, that's a bug.)
Here's how the configuration is set:
Output:
Exported maps are all off:
These are the source textures I've used: https://user.fm/files/v2-06db7d2cb6769612004c156dddf6316c/material.zip