8000 GitHub - wass08/r3f-ktx2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wass08/r3f-ktx2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimize GLB models and textures

video thumbnail

Video tutorial

Diagnose

Use gltf-report to diagnose your GLB models and textures.

Convert GLB model textures to KTX2

Install gltf-transform

npm install --global @gltf-transform/cli

Transform textures found in a GLB model to KTX2 format wit 5EA3 h gltf-transform:

gltf-transform uastc [INPUT] [OUTPUT]

Optimize the whole GLB and transform textures to KTX2 format with gltf-transform:

gltf-transform optimize [INPUT] [OUTPUT] --texture-compress ktx2

Transform images to KTX2 texture

Install KTX-Software.

KTX Creation with toktx:

toktx --t2 --genmipmap --upper_left_maps_to_s0t0 public/images/cards_atlas.ktx2 public/images/cards_atlas.jpg

Encode and compress KTX2 texture to UASTC with ktxsc:

ktxsc --encode uastc  --zcmp 19 -o public/images/cards_atlas_uastc.ktx2  public/images/cards_atlas.ktx2

GLB Optimizer

Use GLB Optimizer, an online tool leveraging glt-transform CLI to optimize GLB models without using the command line.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0