Commit Graph

46 Commits

Author SHA1 Message Date
Viktor Kovacs
feb4b81deb Remove o3dv importer. 2022-11-18 21:42:13 +01:00
kovacsv
5bf4f11d5d Minor modification. 2022-07-03 21:20:23 +02:00
kovacsv
c168f944f6 Rename Color to RGBColor. 2022-06-25 10:20:58 +02:00
kovacsv
f133ced651 Bundle three.js together with the library. 2022-05-20 18:52:37 +02:00
kovacsv
afe6cce6da Remove url from texture, since it's not a core data, and needed only for three.js conversion. 2022-04-27 18:19:55 +02:00
kovacsv
a4d386c521 Use ES modules. 2022-01-10 18:10:51 +01:00
kovacsv
6dc21ae06b Provide only material color for importer. 2021-12-30 16:20:03 +01:00
kovacsv
7603537142 Tests for vertex color count. 2021-12-28 22:16:54 +01:00
kovacsv
282d4ba604 Simplify FileObject for test. 2021-12-07 12:58:21 +01:00
kovacsv
d7a33d27e2 Rewrite export-import test. 2021-12-07 12:43:55 +01:00
kovacsv
65ab4aa9f5 Create separate material classes for phong and physical materials. 2021-12-04 18:26:58 +01:00
kovacsv
583ab14e34 Create mesh nodes during o3dv import. 2021-11-22 14:25:56 +01:00
kovacsv
5e078b2e66 Rename EnumerateTransformedMeshInstances to EnumerateTransformedMeshes. 2021-11-19 08:05:13 +01:00
kovacsv
8fa45a8b95 Rename ImportBuffers to ImporterFileAccessor. 2021-11-19 08:00:32 +01:00
kovacsv
3423baa2b2 Hierarchical glTF import. 2021-11-02 08:40:27 +01:00
kovacsv
addc8dfbac Remove o3dv test files without nodes. 2021-10-27 10:05:04 +02:00
kovacsv
fc2dd12aa0 Always return arraybuffer during export. 2021-10-27 09:55:01 +02:00
kovacsv
7abc6efc93 Import all models as hierarchical model, but put all the meshes under the root node. 2021-10-27 08:25:47 +02:00
kovacsv
fb3cdbe83c Pass original file name and extension to importers. 2021-09-24 08:16:18 +02:00
kovacsv
b89a3429ba Feature Request- Ability to auto detect and load models from .zip or .rar #136 2021-09-13 16:32:50 +02:00
kovacsv
ec9766ae81 Access all files as arraybuffer, and convert to text if needed. 2021-08-27 08:11:35 +02:00
kovacsv
fb81e4ff5a Rename importer to engine. 2021-07-22 21:18:37 +02:00
kovacsv
46644d47c3 Use Physically Based Rendering when possible #99 2021-07-19 17:44:43 +02:00
kovacsv
ab0d0172e7 Add support for GLB Draco Mesh Compression #97 2021-07-15 23:37:07 +02:00
kovacsv
46ef2c7a93 Fix tests. 2021-07-11 11:29:52 +02:00
Viktor Kovacs
a3d283f613 Add o3dv file format for testing purposes. 2021-05-27 20:20:00 +02:00
Viktor Kovacs
38cde4b11f Use cuboid generator in tests. 2021-05-24 13:15:33 +02:00
Viktor Kovacs
265464fb60 Fix closed model detection when meshes are connected in an edge. 2021-05-22 09:40:43 +02:00
Viktor Kovacs
67a4754ec9 Add test where two cubes are connecting in one vertex. 2021-05-21 19:36:13 +02:00
Viktor Kovacs
7dbfa862c8 Add test for topology calulation for two cubes connecting in one edge. 2021-05-21 19:31:03 +02:00
Viktor Kovacs
55072f6d6d Base class for model and mesh so they can be handled similarly. 2021-05-21 09:29:44 +02:00
Viktor Kovacs
bdef08756a Code for surface area and volume calculation. 2021-05-17 16:05:52 +02:00
Viktor Kovacs
f02b660b23 Add topology calculator. 2021-05-15 19:23:14 +02:00
Viktor Kovacs
ee271cb06b Move cube model generation to test utils. 2021-05-15 12:52:55 +02:00
Viktor Kovacs
4ee5eb6040 Bounding box calculation test. 2021-05-15 11:57:00 +02:00
Viktor Kovacs
ddec4bd898 Clear importer data after import. 2021-04-20 11:48:08 +02:00
Viktor Kovacs
9f9851a2ec Async importers. 2021-04-15 14:52:16 +02:00
Viktor Kovacs
6fbbdf4b69 Make a parameter from default color instead of the a member in importer. 2021-04-07 15:07:12 +02:00
Viktor Kovacs
c770b84e26 Replace tabs with spaces everywhere. 2021-03-31 18:02:14 +02:00
Viktor Kovacs
0c03fb3bca Revoking urls is now the responsibility of the main importer object. 2021-03-31 08:14:35 +02:00
Viktor Kovacs
11d2f04580 Move buffer cache to the main importer class. 2021-03-30 19:22:38 +02:00
Viktor Kovacs
6bc1b33e8a Use rewire to import non-module files, and use nyc for test coverage. 2021-03-30 18:34:00 +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
c15e7ff3b4 Store the original file buffer in textures. 2021-03-28 14:06:55 +02:00
Viktor Kovacs
9264c1dd6d Add code for new version. 2021-03-27 08:29:19 +01:00