# UASTC compression on Metallic/Roughness changes the colours

**URL:** <https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346>\
**Category:** 🌵 Needle Engine\
**Tags:** question\
**Created:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346 "2023-02-06T00:00:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/1 "2023-02-06T00:00:00Z")

</div>

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

 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/b3ed8cec0d6f1f468ca1873568210c2f6966a895.png)

[Original Post on Discord](https://discord.com/channels/717429793926283276/1072100109300539402)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/2 "2023-02-06T00:00:00Z")

</div>

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

 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/91a06d36cefad6ec8ea6af60f62530286cf9e19f.png)  
 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/94e2378a99fa7a7a834470612a582ef53b108baf.png)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/3 "2023-02-06T00:00:00Z")

</div>

Could it be caused by the resizing?

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/4 "2023-02-06T00:00:00Z")

</div>

Resized to 2048 from 4096 in photoshop and no difference there

 ![2048.jpg](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/4bf5688813ff3caf6854634e310dccbab35aaeec.jpeg)  
 ![4096.jpg](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/ad26e267f6ef1cebdb55628e0b626e9ec078fece.jpeg)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/5 "2023-02-06T00:00:00Z")

</div>

Original texture file [https://drive.google.com/file/d/1vuXe0gcWud3DWxMCS1xnCfjdRynA4Qq9/view?usp=share\_link](https://drive.google.com/file/d/1vuXe0gcWud3DWxMCS1xnCfjdRynA4Qq9/view?usp=share_link)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/6 "2023-02-06T00:00:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 6, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/7 "2023-02-06T00:00:00Z")

</div>

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

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/8 "2023-02-08T00:00:00Z")

</div>

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

 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/da65c71614cf4c3b1559a41250575eeeafdd60ab.jpeg)  
 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/d3bec53e383fb50ac9a39aef97af46fc0df297fd.jpeg)  
 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/289552313a34107f594fa3fa807827b2c1ef6a17.jpeg)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/9 "2023-02-08T00:00:00Z")

</div>

Repro model is here [https://discord.com/channels/717429793926283276/1072557890948309115/1072557890948309115](https://discord.com/channels/717429793926283276/1072557890948309115/1072557890948309115)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![hybridherbst](https://forum.needle.tools/user_avatar/forum.needle.tools/hybridherbst/32/3416_2.png) [@hybridherbst](https://forum.needle.tools/u/hybridherbst)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/10 "2023-02-08T00:00:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/11 "2023-02-08T00:00:00Z")

</div>

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

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/12 "2023-02-08T00:00:00Z")

</div>

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

 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/e14282833ca14cd573863dc5e33cff2847448577.jpeg)  
 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/66dbceea40478c1a2e81a1eae674874751c39675.jpeg)  
 ![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/865c8d63a6f4930585e24fda28e0cc1cc832ddd3.jpeg)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/13 "2023-02-08T00:00:00Z")

</div>

Both models loaded using DropListener in a model viewer here [https://demo.epm.digital/modelpreview/](https://demo.epm.digital/modelpreview/) , model is repositioned at 0,0,0 too in both imports

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![hybridherbst](https://forum.needle.tools/user_avatar/forum.needle.tools/hybridherbst/32/3416_2.png) [@hybridherbst](https://forum.needle.tools/u/hybridherbst)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/14 "2023-02-08T00:00:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/15 "2023-02-08T00:00:00Z")

</div>

The screenshots are from me having two tabs open of [https://demo.epm.digital/modelpreview/](https://demo.epm.digital/modelpreview/) so the skybox and scene is identical it’s just the model loaded that is different.  
I am seeing the same over at the model-viewer here when testing the models [https://modelviewer.dev/editor/](https://modelviewer.dev/editor/)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/16 "2023-02-08T00:00:00Z")

</div>

![image.png](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/1X/04b91ff085bc13618563206fb52ff0974ee47b3d.jpeg)

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/17 "2023-02-08T00:00:00Z")

</div>

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

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![hybridherbst](https://forum.needle.tools/user_avatar/forum.needle.tools/hybridherbst/32/3416_2.png) [@hybridherbst](https://forum.needle.tools/u/hybridherbst)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/18 "2023-02-08T00:00:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/19 "2023-02-08T00:00:00Z")

</div>

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

_by user 103054507105067008_

---

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [February 8, 2023, 12:00am UTC](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346/20 "2023-02-08T00:00:00Z")

</div>

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

_by user 103054507105067008_

[Next page](https://forum.needle.tools/t/uastc-compression-on-metallic-roughness-changes-the-colours/346.md?page=2)
