Commit Graph

32 Commits

Author SHA1 Message Date
kovacsv
ec9766ae81 Access all files as arraybuffer, and convert to text if needed. 2021-08-27 08:11:35 +02:00
kovacsv
b65964565f "Invalid header information" when loading a PLY file #118 2021-08-16 19:01:48 +02:00
kovacsv
d3a362dc7f Fix glTF metalness import. 2021-08-12 13:06:51 +02:00
kovacsv
1e6e6b65af Restructure libs. 2021-08-10 19:24:59 +02:00
kovacsv
c60fe3bd1f Build fix. 2021-08-06 22:20:03 +02:00
kovacsv
0f02be43dd Add utility functions for extension detection. 2021-08-06 22:18:02 +02:00
kovacsv
8f4151fce5 Use promise for external library loading. 2021-07-28 09:03:38 +02:00
kovacsv
108448fe85 Export metallic and roughness factor only if no metallic roughness texture is present. 2021-07-19 20:17:05 +02:00
kovacsv
46644d47c3 Use Physically Based Rendering when possible #99 2021-07-19 17:44:43 +02:00
kovacsv
b24dd5cd9b Separate function for model import. 2021-07-16 08:45:28 +02:00
kovacsv
04da400129 Handle as error when it fails to load draco decoder. 2021-07-15 23:44:59 +02:00
kovacsv
ab0d0172e7 Add support for GLB Draco Mesh Compression #97 2021-07-15 23:37:07 +02:00
kovacsv
14833e40a9 Uncaught TypeError when using .glb #96 2021-07-12 17:39:20 +02:00
kovacsv
5851aedb1d Use arrow callbacks everywhere. 2021-07-12 08:49:12 +02:00
kovacsv
f2589dc2a1 Use eslint instead of jshint. 2021-07-12 07:32:53 +02:00
kovacsv
93f85738cb Organize properties in groups. 2021-06-26 23:53:08 +02:00
kovacsv
89796d2971 Read meta data from glTF. 2021-06-20 18:40:50 +02:00
kovacsv
d402b7f531 Remove unnecessary log. 2021-06-16 21:56:24 +02:00
kovacsv
3bbae2cf68 There is a problem with the mesh name #84 2021-06-16 21:55:17 +02:00
Viktor Kovacs
0394d60581 Add quaternion class. 2021-05-24 09:19:44 +02:00
Viktor Kovacs
78460fe743 Do not take byte stride into account when it is zero. Although it is not valid according to the specification, it seems it can be handled as if byte stride was not specified. 2021-04-20 18:55:32 +02:00
Viktor Kovacs
edeb864576 Free importer resources after import. 2021-04-20 10:55:03 +02:00
Viktor Kovacs
bc74ed9b04 Replace tabs with spaces. 2021-04-15 14:53:33 +02:00
Viktor Kovacs
9f9851a2ec Async importers. 2021-04-15 14:52:16 +02:00
Viktor Kovacs
11d2f04580 Move buffer cache to the main importer class. 2021-03-30 19:22:38 +02:00
Viktor Kovacs
0c394f9aa8 Handle buffer cache by importers instead of the main importer object. 2021-03-30 12:21:46 +02:00
Viktor Kovacs
becbe31a9e Store object urls only for textures so they can safely revoked when the model is disposed. 2021-03-30 01:53:24 +02:00
Viktor Kovacs
3a02cb8f8e Revoke object urls from file list and model when they are no longer needed. 2021-03-30 00:45:43 +02:00
Viktor Kovacs
5d45d9eb57 Minor modification. 2021-03-29 15:25:37 +02:00
Viktor Kovacs
c15e7ff3b4 Store the original file buffer in textures. 2021-03-28 14:06:55 +02:00
Viktor Kovacs
a1210d2129 Fix lgtm issues. 2021-03-28 09:59:51 +02:00
Viktor Kovacs
9264c1dd6d Add code for new version. 2021-03-27 08:29:19 +01:00