akderebur wrote: ↑
Mon Mar 09, 2020 9:42 am
I will not bother with cubemaps or shader textures. You can try loading them with QPCT.
QPCT doesn't want to work for me, but I've been able to get most of the textures with Rawtex. Cubemaps are another mess that I haven't figured out yet, but my concern at the moment is getting the correct blue channels for the normal maps. I've managed to rebuild them with ImageMagick and the power of math, but your program is giving completely different results so I'm wondering if I slipped and the blue channel is actually in the PCT somewhere.
For instance, this image is the blue channel for the eye normals I get with this program:
and this is the one I "rebuilt":
This is part of the script I've been using:
Code: Select all
convert "$f" -channel B -fx "sqrt(1-((2r-1)^2+(2g-1)^2))/2+0.5" normals_fixed/$f
I've tested this with other normals and it gives nearly identical results to baked normals, minus a tiny amount of noise at points where the function is discontinuous and the result becomes zero internally.