mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-03 15:45:25 +00:00
Add screenshots of demos
This commit is contained in:
@@ -63,6 +63,9 @@ The "WebGL" directory contains two very simple WebGL demos that use the transcod
|
||||
|
||||
See more details [here](webgl/README.md).
|
||||
|
||||

|
||||

|
||||
|
||||
### 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.
|
||||
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
### 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.
|
||||
|
||||

|
||||
|
||||
Both demos requires WebAssembly and WebGL support.
|
||||
|
||||
## Testing locally
|
||||
|
||||
BIN
webgl/model-demo.png
Normal file
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
BIN
webgl/texture-demo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Reference in New Issue
Block a user