Commit Graph

271 Commits

Author SHA1 Message Date
Carl Woffenden
7d65ba367a ASTC support (and improved demo)
Exposed the ASTC transcoder. Improved the Emscripten example and tested on ASTC and ETC hardware. Workaround for usused functions and consts when disabling various transcode options.
2019-09-25 17:15:49 +02:00
Carl Woffenden
963e892f25 Merge branch 'clang-pedantry-1' into single-file-transcoder 2019-09-25 15:47:02 +02:00
Carl Woffenden
bce834ffba Fixes more -Wunused-parameter warnings
These unused params occur when disabling various transcode options.
2019-09-25 15:27:20 +02:00
Carl Woffenden
85c81f1871 Working demo
Demo transcodes to various formats (tested only PVRTC, S3TC and uncompressed for now). Added docs.
2019-09-24 18:43:15 +02:00
Carl Woffenden
91b8d85473 Work-in-progress
Embedded .basis files with and without alpha. Started adding support to draw both types, as well as ETC. Fixed broken WebGL canvas.
2019-09-20 23:04:03 -04:00
Carl Woffenden
3174fd6764 Added RGBA example 2019-09-21 03:14:49 +02:00
Carl Woffenden
9482b1ba9d Initial commit
Added combine script.  Created initial Emscripten example.
2019-09-20 15:00:02 -04:00
Carl Woffenden
0d611beda0 Minor Clang fixes
Minor fixes so that Clang doesn't trip with `-Werror` and `-Wextra`.
2019-09-20 06:42:13 -04:00
Rich Geldreich
5cae992784 Update README.md 2019-09-19 17:09:51 -07:00
Rich Geldreich
43d35a9d3e Update README.md 2019-09-19 17:04:15 -07:00
Rich Geldreich
2e92f6fee6 Update README.md 2019-09-19 17:02:19 -07:00
Rich Geldreich
642bf0f2d2 Update README.md 2019-09-19 17:01:53 -07:00
Rich Geldreich
b6203084b0 Update README.md 2019-09-19 16:56:43 -07:00
Rich Geldreich
3b7092be7b Update README.md 2019-09-19 16:55:14 -07:00
Rich Geldreich
5041763f02 Update README.md 2019-09-19 16:53:13 -07:00
Rich Geldreich
dd2ef28df8 Update README.md 2019-09-19 16:45:52 -07:00
Rich Geldreich
eb3fee4535 Update README.md 2019-09-19 16:19:13 -07:00
Rich Geldreich
1b6304f746 Update README.md 2019-09-19 16:14:12 -07:00
Rich Geldreich
c7eda68456 Update README.md 2019-09-19 15:32:51 -07:00
Rich Geldreich
3541f1acc5 Update README.md 2019-09-19 15:30:24 -07:00
Rich Geldreich
c892bf959a Update README.md 2019-09-19 15:29:02 -07:00
Rich Geldreich
972bc4aa6f Update README.md 2019-09-19 15:27:55 -07:00
Rich Geldreich
21a277d6a1 Update README.md 2019-09-19 15:24:43 -07:00
Rich Geldreich
c7eb655b27 Update README.md 2019-09-19 15:23:45 -07:00
Rich Geldreich
2a9cb0bdfa Update README.md 2019-09-19 15:17:52 -07:00
richgel999
b316a0571b Rebuilt transcoder in the webgl_videotest directory, also added new texture format enums to index.html 2019-09-19 15:08:35 -07:00
richgel999
8545341b4b Rebuild transcoder in WebAssembly on OSX 2019-09-19 15:03:17 -07:00
richgel999
2cb6bdadc1 Checking in new webgl files. Note that the WebAssembly transcoder has gotten bloated with BC7 support, which I'm working on fixing right now. (The wasm went from ~200k to 900k, because of a transcoder macro configuration issue.) 2019-09-19 14:34:39 -07:00
Rich Geldreich
6bc7418508 Update README.md 2019-09-19 13:46:12 -07:00
Rich Geldreich
78c098be9b Update README.md 2019-09-19 13:45:01 -07:00
richgel999
36676e29eb When BASISD_SUPPORT_BC7 is defined and set to 0, we disable all the BC7 modes so the WebAssembly/Javascript transcoder doesn't get bloated. I'm going to disable BC7 mode 6 by default in the next minor update. 2019-09-19 13:42:51 -07:00
Rich Geldreich
a195fb524f Update README.md 2019-09-19 13:36:07 -07:00
Rich Geldreich
bf3a194b19 Updating readme 2019-09-19 13:26:34 -07:00
richgel999
b67956e5b7 Adding new files 2019-09-19 13:17:57 -07:00
richgel999
3629438d43 Transcoder update: ASTC 4x4 RGB/RGBA, ATC RGB/RGBA, BC7 mode 5 RGBA, PVRTC1 4bpp RGBA, and uncompressed raster formats. 2019-09-19 12:29:44 -07:00
Rich Geldreich
09e71afedf Update README.md 2019-09-09 13:38:18 -07:00
Rich Geldreich
98d9848983 Update README.md 2019-09-09 13:37:33 -07:00
Rich Geldreich
6002320758 Merge pull request #46 from Squareys/iterator-dbg-level
Avoid iterator debug level mismatches for linking as library
2019-08-22 08:50:52 -07:00
richgel999
8b6cfe1115 Adding missing enums for BC7 and PVRTC 32bpp - somehow these got messed up in a reformat. 2019-08-21 21:15:40 -07:00
richgel999
ab3c0e86b3 Fixing basis_enc.h so it doesn't include itself 2019-07-29 14:25:51 -07:00
Rich Geldreich
680ebc80e7 Updating readme 2019-07-28 20:45:11 -07:00
richgel999
f8f87d51f4 Basis Universal doesn't pack blocks to plain ETC1, and it doesn't try to explicitly pack solid color blocks. To reduce the size of the code to maintain, I'm removing this unused/dead code. 2019-07-28 20:29:51 -07:00
Squareys
2df7937bbf Add BASISU_NO_ITERATOR_DEBUG_LEVEL symbol to avoid debug level mismatches
Signed-off-by: Squareys <squareys@googlemail.com>
2019-07-07 22:48:27 +02:00
Rich Geldreich
087198fe26 Merge pull request #26 from prestomation/master
Modularize emscripten build.
2019-06-26 16:58:33 -07:00
richgel999
bbbce07039 Removing unnecessary assert. 2019-06-25 19:32:59 -07:00
richgel999
c9d24115ae Fixing cubemap .KTX files so the proper image_size field is written. Fixes this bug: https://github.com/BinomialLLC/basis_universal/issues/40 2019-06-22 22:09:10 -07:00
Rich Geldreich
f0cb9db95a Merge pull request #36 from jherico/fix/assignment_copy_ctor_disable
Properly disable copy ctor and assignment operator
2019-06-17 19:37:53 -07:00
Brad Davis
fccfdd93ef Properly disable copy ctor and assignment operator 2019-06-15 10:31:21 -07:00
Preston Tamkin
39b5c5bc42 Modularize emscripten build.
By default, emscripten's generated javascript modules lives in the global object "Module'.

This makes it impossible to load multiple emscripten modules on the same page.

In attempt to avoid namespace collision, this change modularizes the emscripten build so the Module is instead called 'BASIS'.

Many target applications for Basis are likely to already be using other emscripten modules.

Testing:

The existing webgl/(texture|gltf) pages have been updated to use the new name and seem to operate as before
2019-06-11 23:42:49 -07:00
Rich Geldreich
f3f7c69f28 Merge pull request #32 from cwoffenden/previewers
Generates Windows thumbnails and preview
2019-06-11 11:02:47 -07:00