Commit Graph

40 Commits

Author SHA1 Message Date
kovacsv
65ab4aa9f5 Create separate material classes for phong and physical materials. 2021-12-04 18:26:58 +01:00
kovacsv
9c5f208297 Minor modification. 2021-12-03 15:31:16 +01:00
kovacsv
fc08a25f69 Replace array with map in gltf exporter. 2021-12-03 15:29:50 +01:00
kovacsv
5e078b2e66 Rename EnumerateTransformedMeshInstances to EnumerateTransformedMeshes. 2021-11-19 08:05:13 +01: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
504c38848d Automatically remove trailing whitespaces in Visual Studio Code. 2021-10-25 16:30:25 +02:00
kovacsv
44460d0597 Enumerate mesh instances. 2021-10-25 16:22:49 +02:00
kovacsv
bb9724578d Add mesh enumeration function to model. 2021-10-17 11:42:58 +02:00
kovacsv
ec9766ae81 Access all files as arraybuffer, and convert to text if needed. 2021-08-27 08:11:35 +02:00
kovacsv
24ee8635fc Fix rhino library location. 2021-08-10 20:05:05 +02:00
kovacsv
6dad95b310 Add rhino exporter in the exporter constructor. 2021-08-06 15:10:38 +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
265da7548d Modify source structure. 2021-07-15 20:58:50 +02:00
kovacsv
5851aedb1d Use arrow callbacks everywhere. 2021-07-12 08:49:12 +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
371044bf67 Move exporter utils content to model utils. 2021-05-15 11:47:43 +02:00
Viktor Kovacs
6f1707ae10 Write double-sided triangles during glTF export #63 2021-04-25 18:45:21 +02:00
Viktor Kovacs
0d329ea37b Add Rhino exporter. 2021-04-25 18:01:52 +02:00
Viktor Kovacs
1bc47cfa08 Aynchronous export. 2021-04-25 16:03:17 +02:00
Viktor Kovacs
fa015f7fb5 MeshPhongMaterial's shininess should be between 0.0 and 100.0, so I modified the conversion and all of the importers accordingly. 2021-04-17 12:45:40 +02:00
Viktor Kovacs
bc74ed9b04 Replace tabs with spaces. 2021-04-15 14:53:33 +02:00
Viktor Kovacs
134793d790 Minor modification. 2021-04-11 10:28:29 +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
c958cf549c Write generator tag in asset. 2021-04-06 17:51:45 +02:00
Viktor Kovacs
2b37ad351e Remove unused function. 2021-04-04 13:02:43 +02:00
Viktor Kovacs
30e4fdfcad Minor modification. 2021-04-01 15:39:09 +02:00
Viktor Kovacs
c770b84e26 Replace tabs with spaces everywhere. 2021-03-31 18:02:14 +02:00
Viktor Kovacs
41d1d58eb9 Write utf-8 encoded json in binary gltf. 2021-03-29 15:23:09 +02:00
Viktor Kovacs
28347b9bd8 Do not pretty print json in case of binary gltf export. 2021-03-28 17:00:32 +02:00
Viktor Kovacs
fdb4b00fdc Create texture buffer view only if needed. 2021-03-28 16:45:47 +02:00
Viktor Kovacs
31aa3f24e4 Align main chunks to 4-byte boundary. 2021-03-28 16:39:44 +02:00
Viktor Kovacs
b4832a7cd0 Write position bounds to gltf file. 2021-03-28 16:30:02 +02:00
Viktor Kovacs
a35bceadea Write separate buffer view for all accessors. 2021-03-28 15:48:08 +02:00
Viktor Kovacs
e86486e314 Write all textures in the same buffer during gltf binary export. 2021-03-28 15:01:54 +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