Commit Graph

193 Commits

Author SHA1 Message Date
kovacsv
af5a0fef13 Add node to mesh instance instead of transformation. 2021-10-26 08:50:20 +02:00
kovacsv
92eac095e1 Calculate world transformation from node. 2021-10-26 07:53:25 +02:00
kovacsv
034c4079c9 Create quaternion from axis and angle. 2021-10-26 07:37:06 +02:00
kovacsv
44460d0597 Enumerate mesh instances. 2021-10-25 16:22:49 +02:00
kovacsv
0143d29a9d Add multiple instances of the same mesh in tests. 2021-10-25 08:32:11 +02:00
kovacsv
4250ab3b58 Add mesh instance object that represents a mesh with transformation. 2021-10-24 16:46:49 +02:00
kovacsv
24e53e242a Generate unique id for nodes. 2021-10-23 11:16:32 +02:00
kovacsv
d3c5a1436b Experimental conversion based on node hierarchy. 2021-10-23 10:01:36 +02:00
kovacsv
7875457785 Add is empty function to node. 2021-10-23 09:05:42 +02:00
kovacsv
19ca7a697b Add helper functions for async task running. 2021-10-23 08:36:01 +02:00
kovacsv
cd2adbeab3 Store transformation in node. 2021-10-22 15:55:38 +02:00
kovacsv
055e817097 Minor modification. 2021-10-22 15:13:51 +02:00
kovacsv
dd7a0ed14f Add node hierarchy to model. 2021-10-22 11:17:36 +02:00
kovacsv
ccfe303f93 Add enumerate function for node. 2021-10-21 12:17:26 +02:00
kovacsv
16614d81e1 Enumerate mesh indices recursively. 2021-10-16 16:02:33 +02:00
kovacsv
97312fe080 Enumerate children only. 2021-10-16 11:59:36 +02:00
kovacsv
9dcf49b548 Add node class. 2021-10-16 11:53:19 +02:00
kovacsv
fb3cdbe83c Pass original file name and extension to importers. 2021-09-24 08:16:18 +02:00
kovacsv
30830e8431 Handle multiple zip files. 2021-09-16 07:45:11 +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
be6e69729c Fix typo. 2021-09-13 08:42:48 +02:00
kovacsv
ec9766ae81 Access all files as arraybuffer, and convert to text if needed. 2021-08-27 08:11:35 +02:00
kovacsv
5130717732 Always return file extension in lower case. 2021-08-06 19:01:43 +02:00
kovacsv
2a71f7d6b5 PBR materials for o3dv format. 2021-08-05 15:38:07 +02:00
kovacsv
0b22e22161 Add solid generators. 2021-08-01 10:51:46 +02:00
kovacsv
e90d318baf Add sphere import test. 2021-07-24 10:04:48 +02:00
kovacsv
c1a9cae13f Add sphere generator. 2021-07-24 09:58:21 +02:00
kovacsv
fb81e4ff5a Rename importer to engine. 2021-07-22 21:18:37 +02:00
kovacsv
3f30909b2e Use Physically Based Rendering when possible #99 2021-07-19 19:31:12 +02:00
kovacsv
46644d47c3 Use Physically Based Rendering when possible #99 2021-07-19 17:44:43 +02:00
kovacsv
a24c3bea05 Skip url parameters when determining file name or extension. 2021-07-17 09:57:55 +02:00
kovacsv
ab0d0172e7 Add support for GLB Draco Mesh Compression #97 2021-07-15 23:37:07 +02:00
kovacsv
b063321a5b Rename url parameters for default and background color. 2021-07-11 15:44:22 +02:00
kovacsv
46ef2c7a93 Fix tests. 2021-07-11 11:29:52 +02:00
kovacsv
e8ed3fe9b9 Test fix. 2021-07-08 18:33:48 +02:00
kovacsv
61e09c78f3 Add default value to segment count. 2021-07-08 18:27:12 +02:00
kovacsv
2a53e933ea Add cylinder generator. 2021-07-08 18:20:43 +02:00
kovacsv
f407f8f61e Add cylinder generator. 2021-07-04 20:14:45 +02:00
kovacsv
93f85738cb Organize properties in groups. 2021-06-26 23:53:08 +02:00
kovacsv
2b38556eff Change canvas background color #85 2021-06-25 08:41:34 +02:00
kovacsv
c7f0d128a7 Add properties to model and mesh. 2021-06-20 17:23:17 +02:00
kovacsv
67a249f528 Fix batch task running in case of zero count. 2021-06-14 14:25:23 +02:00
kovacsv
1cdf592c4f Visualization is slow in case of large number of meshes #82 2021-06-13 18:25:44 +02:00
Viktor Kovacs
0000c59fcd Fix duplicated test case names. 2021-06-07 21:53:30 +02:00
Viktor Kovacs
a3d283f613 Add o3dv file format for testing purposes. 2021-05-27 20:20:00 +02:00
Viktor Kovacs
251b42ad06 Do not calculate same normal multiple times so triangulation won't effect curved normal calculation. 2021-05-24 20:40:34 +02:00
Viktor Kovacs
38cde4b11f Use cuboid generator in tests. 2021-05-24 13:15:33 +02:00
Viktor Kovacs
0394d60581 Add quaternion class. 2021-05-24 09:19:44 +02:00
Viktor Kovacs
2815c27a32 Add cuboid generator. 2021-05-23 18:05:53 +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
d72e8ad79d Add solidity check tests. 2021-05-21 19:33:02 +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
a39de09715 Add base enumerator class so meshes and models can be handled in the same way for calculations. 2021-05-20 10:07:37 +02:00
Viktor Kovacs
4bceb5b2b2 Fix solid body detection: an edge should appear with different directions in the neighbour triangles. 2021-05-18 17:21:37 +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
bdfa2d2b85 A cube bounding box calculator test. 2021-05-15 12:56:53 +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
8937cafdfd Add minimal octree implementation. 2021-05-14 16:58:28 +02:00
Viktor Kovacs
dd3a56c003 Surface and volume calculation example. 2021-04-29 21:23:28 +02:00
Viktor Kovacs
1bc47cfa08 Aynchronous export. 2021-04-25 16:03:17 +02:00
Viktor Kovacs
ddec4bd898 Clear importer data after import. 2021-04-20 11:48:08 +02:00
Viktor Kovacs
b746023187 Fix test after code modification. 2021-04-15 21:20:19 +02:00
Viktor Kovacs
9f9851a2ec Async importers. 2021-04-15 14:52:16 +02:00
Viktor Kovacs
89aaca6081 Write header in obj and mtl files. 2021-04-11 10:24:43 +02:00
Viktor Kovacs
3607ab3649 Always use texture buffer instead of url in case of export. 2021-04-09 08:25:00 +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
8a29a6c682 Default color handling (switched off). 2021-04-05 12:22:59 +02:00
Viktor Kovacs
ca4e0ef1d4 Default color handling during embedding and engine usage. 2021-04-05 10:20:26 +02:00
Viktor Kovacs
e5e59f3e5d Get default color from importer. 2021-04-05 09:49:55 +02:00
Viktor Kovacs
69b15ff559 Add separator parameter for parameter builder and parser. 2021-04-02 11:03:45 +02:00
Viktor Kovacs
8853c00e14 Rename test cases. 2021-04-02 10:51:13 +02:00
Viktor Kovacs
c7eb2f2cb8 Rename urlutils_test to parameterlist_test. 2021-04-02 10:50:34 +02:00
Viktor Kovacs
cafb7171f9 Add parameter handling utilities. 2021-04-02 10:49:01 +02:00
Viktor Kovacs
b60305dd19 Possibility to set the default material color for importer in case of no-material surfaces. 2021-04-02 09:25:41 +02:00
Viktor Kovacs
d8aa2feac3 Separate entities for url parameter handling. 2021-04-01 15:04:17 +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
f65ae54b2b Reformat exporter test. 2021-03-29 20:02:28 +02:00
Viktor Kovacs
b0a47c8173 Remove package.json from test folder. 2021-03-29 16:13:19 +02:00
Viktor Kovacs
41d1d58eb9 Write utf-8 encoded json in binary gltf. 2021-03-29 15:23:09 +02:00
Viktor Kovacs
d80b97cf85 Minor modification. 2021-03-29 09:55:53 +02:00
Viktor Kovacs
77edb8520d Add textured rectangle test object. 2021-03-29 08:23:48 +02:00
Viktor Kovacs
4a3649e8f1 Remove callbacks from exporter. 2021-03-28 14:10:42 +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