Add screenshots of demos

This commit is contained in:
shrekshao
2019-05-14 17:25:46 -07:00
parent c4cc4e4e2b
commit 86b9fa53ed
4 changed files with 7 additions and 0 deletions

View File

@@ -63,6 +63,9 @@ The "WebGL" directory contains two very simple WebGL demos that use the transcod
See more details [here](webgl/README.md).
![](texture-demo.png)
![](model-demo.png)
### Transcoder details
The transcoder unpacks .basis files to various GPU texture formats, almost always without needing to decompress entire images at the pixel level (i.e. it only deals with arrays of blocks). The one exception is PVRTC1, where the transcoder needs to recompute the per-pixel selector ("modulation") values, but it does so using simple scalar operations.

View File

@@ -8,6 +8,8 @@
On browsers that don't support BC1 (Firefox is one), there's a low-quality fallback code path for opaque textures (but no fallback for BC3 yet). Note that the fallback path only converts to 16-bit RGB images at the moment, so the quality isn't as good as it should be.
![](texture-demo.png)
### glTF 3D Model Demo
`gltf-demo/index.html` renders a glTF 3D model with `.basis` texture files, transcoded into one of the following compressed texture formats:
* DTX (BC1)
@@ -20,6 +22,8 @@ On browsers that don't support BC1 (Firefox is one), there's a low-quality fallb
The glTF model in this demo uses a hypothetical `GOOGLE_texture_basis` extension. That extension is defined for the sake of example only – the glTF format will officially embed Basis files within a KTX2 wrapper, through a new
extension that is currently in development.
![](model-demo.png)
Both demos requires WebAssembly and WebGL support.
## Testing locally

BIN
webgl/model-demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

BIN
webgl/texture-demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB