Commit Graph

72 Commits

Author SHA1 Message Date
kovacsv
46a8d580f4 Remove importers from file list object. 2021-09-01 10:27:17 +02:00
kovacsv
ec9766ae81 Access all files as arraybuffer, and convert to text if needed. 2021-08-27 08:11:35 +02:00
kovacsv
daa6d34bbc Minor modification. 2021-08-16 19:04:45 +02:00
kovacsv
b65964565f "Invalid header information" when loading a PLY file #118 2021-08-16 19:01:48 +02:00
kovacsv
721a748198 Refactor ply material handling. 2021-08-16 18:48:42 +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
d244cd458a Use common function in rhino importer. 2021-08-08 13:50:24 +02:00
kovacsv
ad7a1f9e89 Support Rhino PBR materials #107 2021-08-07 22:08:16 +02:00
kovacsv
751b09ffda Add material comparator function. 2021-08-07 21:24:44 +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
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
669ab1f8b4 Show Rhino document-level text strings #90 2021-08-05 14:05:36 +02:00
kovacsv
7022255491 Handle logical properties. 2021-08-01 11:58:33 +02:00
kovacsv
0b22e22161 Add solid generators. 2021-08-01 10:51:46 +02:00
kovacsv
55aafe8d88 Texture resizing to power-of-two sides is slow #105 2021-07-28 20:25:55 +02:00
kovacsv
8f4151fce5 Use promise for external library loading. 2021-07-28 09:03:38 +02:00
kovacsv
2757d9ecb5 Use promises for file loading. 2021-07-28 08:51:32 +02:00
kovacsv
c1a9cae13f Add sphere generator. 2021-07-24 09:58:21 +02:00
kovacsv
6169e39450 Store file format (text or binary) in file object. 2021-07-23 17:50:49 +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
265da7548d Modify source structure. 2021-07-15 20:58:50 +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
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
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
kovacsv
8fbe59d656 Add public IntegerToHexString function. 2021-06-13 07:30:11 +02:00
Viktor Kovacs
a3d283f613 Add o3dv file format for testing purposes. 2021-05-27 20:20:00 +02:00
Viktor Kovacs
0394d60581 Add quaternion class. 2021-05-24 09:19:44 +02:00
Viktor Kovacs
51f42f8505 Revert PNG Transparency #21
It breaks other models, so keep it as it is until a better solution.
2021-05-11 20:47:21 +02:00
Viktor Kovacs
3842e1afcf PNG Transparency #21
Treat materials with png texture automatically as transparent.
2021-05-11 20:43:57 +02:00
Viktor Kovacs
482a6958a7 Flip triangles when the model should be mirrored. 2021-04-25 19:52:33 +02:00
Viktor Kovacs
ba0d642512
Revert "Add optional edge displaying and settings" 2021-04-25 15:19:17 +02:00
X-Ryl669
8a5782b8ec Add optional edge displaying and settings 2021-04-23 17:55:35 +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
ddec4bd898 Clear importer data after import. 2021-04-20 11:48:08 +02:00
Viktor Kovacs
2e85bf20b5 Minor modification. 2021-04-20 10:56:57 +02:00
Viktor Kovacs
edeb864576 Free importer resources after import. 2021-04-20 10:55:03 +02:00