Skip to content

Commit

Permalink
Adding PNG-WEBP-KTX information
Browse files Browse the repository at this point in the history
Added information to the readme about the texture format decisions.
  • Loading branch information
echadwick-artist committed Oct 2, 2024
1 parent 8f4fe1e commit 944c566
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Models/SunglassesKhronos/README.body.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ This asset uses only one texture, for the Khronos Group logos on the black earho
![The PNG texture used by the glTF asset](screenshot/SunglassesKhronos.png)
<br/>_The SunglassesKhronos.png texture._

[PNG](http://www.libpng.org/pub/png/spec/1.2/PNG-Contents.html) was chosen as the initial texture format because the image contains mostly larger areas of flat colors, which is ideal for PNG compression. The glTF Sample Assets repository aims to reduce or eliminate compression artifacts in assets, to provide the highest quality content with the widest compatibility.

[WEBP](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_texture_webp/README.md) was chosen for the compressed version because small file sizes are essential for many e-commerce assets, which reduces the download time for consumers. The longer users have to wait for a file to download, the more likely they are to abandon a 3D experience.

[KTX](https://www.khronos.org/ktx/) was not chosen for texture compression because WEBP produces smaller files at comparable quality. KTX works well for applications where video memory is a constraint, for example when multiple models are being loaded together in a room planner and video memory is limited on a mobile device. Another strong use case for KTX is when GPU loading time needs to be optimized, for example when loading/unloading assets dynamically as in a product configurator.


## Iridescence

Expand Down

0 comments on commit 944c566

Please sign in to comment.