#UASTC compression on Metallic/Roughness changes the colours

1 messages · Page 1 of 1 (latest)

shrewd rivet
#

Same as title, see screenshot, I sent Herbst the repro file too, should this be happening?

#

Is it by default always performing an sRGB color space conversion?

elder pine
#

Could it be caused by the resizing?

shrewd rivet
#

Resized to 2048 from 4096 in photoshop and no difference there

elder pine
#

Not in Photoshop but with the max size set to 4k (or 8k - something at least the size of the original texture) I think we noticed color changes in the resize algo last week too so im wondering if thats the cause here too

shrewd rivet
#

It's only really happening with UASTC, just tested WebP it was fine, testing ETC1S now but won't use that for rough/metal anyway so I'll opt to either not compress for now or see if the UASTC colour issue can be fixed

shrewd rivet
#

I'm also noticing this colour change with albedo textures when using WebP/ETC1S, UASTC produces accurate or close enough colour for albedo textures it seems but UASTC definitely changed the colour of the metallic maps identified earlier in this issue

#

Repro model is here <#1072557890948309115 message>

lucid jasper
#

Can you make sure resizing is off? If there's a bug with color spaces in that then it does not matter what format you're outputting.

shrewd rivet
#

It may well just be that, I am resizing - will test at native res

shrewd rivet
#

So I went and tried all the compression modes at Needle import 4k native res + unity import set to 4k native res. I found that the colours of the albedo itself still changed through compression without the textures being resized

lucid jasper
#

Do you have a cubemap/skybox in that scene that is part of the file you load? There's also differences on other parts that don't look textured, wonder if it's just external lighting that's different.
Do you see the same difference between the glb files in e.g. model-viewer?

shrewd rivet
#

Original model is on the left in these model-viewer screenshots, tested in this screenshot ^ using ETC1S at 4k native res textures in Unity + Needle Texture import settings, the colour change is happening still with the albedo

lucid jasper
# shrewd rivet

tbh this small color difference is kind of expected for a compressed format, certainly doesn't look as strong a difference as in your pictures above

shrewd rivet
#

I know but.. 3D team are pointing pitchforks at me currently for product viz

#

The colour change on metallic textures at the start of this thread is enough to drastically change the material at least, the albedo isn't as bad

lucid jasper
#

I agree but thats not what I'm seeing from the modelviewer screenshots there, right?

#

Anyways, will look into it

shrewd rivet
#

It is less noticeable on this more recent model as its Metallic texture is very different to the texture at the top of this thread which was becoming too dark when exported

shrewd rivet
#

I have another model this happens with I can send for a repro, a GLB file that looks perfect if exported with the GLTF Object Component. If exported with that component removed, the metallic/roughness is significantly different

lucid jasper
#

I have a fix locally that I'll release later today (tbd testing)