Commit Graph

54 Commits

Author SHA1 Message Date
kovacsv
07fe1d5509 Send only file names to the file selector callback. 2021-11-30 10:29:01 +01:00
kovacsv
db57efeaf1 Select file to import when there are more importable files #176 2021-11-29 19:48:12 +01:00
kovacsv
33a8464321 Simplify importer interface. 2021-11-17 12:01:21 +01:00
kovacsv
79cd5189dc Revert "Add transformation for mesh objects."
This reverts commit d75ff6464c.
2021-11-13 20:43:54 +01:00
kovacsv
d75ff6464c Add transformation for mesh objects. 2021-11-13 20:06:19 +01:00
kovacsv
71cfe70c71 Improve conversion speed in case of high number of nodes. 2021-11-02 08:40:06 +01:00
kovacsv
a1c77ea263 Set material type and shading model based on the most used material type in the model. 2021-10-29 18:33:46 +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
7eac7dee43 Treat models with no node hierarchy as one flat hierarchy under the root node. 2021-10-26 18:40:20 +02:00
kovacsv
6f9801010b Use mesh instance id to identify meshes. 2021-10-26 13:15:56 +02:00
kovacsv
504c38848d Automatically remove trailing whitespaces in Visual Studio Code. 2021-10-25 16:30:25 +02:00
kovacsv
0afce83a49 Fix conversion when a node has multiple meshes. 2021-10-24 17:30:48 +02:00
kovacsv
f045d214c7 Add mesh instance id to identify a mesh in the node hierarchy. 2021-10-24 09:43:24 +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
654ffd0acc Use one main object in viewer instead of an array of meshes. 2021-10-22 17:25:16 +02:00
kovacsv
419e8775dd Move three importer among other importers. 2021-09-05 08:04:55 +02:00
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
c92d1b7580 Utilize other texture maps. 2021-08-12 08:17:26 +02:00
kovacsv
1e6e6b65af Restructure libs. 2021-08-10 19:24:59 +02:00
kovacsv
294ae6a975 Set texture parameters. 2021-08-10 17:28:10 +02:00
kovacsv
759913d698 Add VRML loader. 2021-08-10 17:18:00 +02:00
kovacsv
1b2b899b48 Move tga loader initialization to loaders. 2021-08-10 08:25:39 +02:00
kovacsv
73bdaae0e1 Add collada importer. 2021-08-09 21:18:31 +02:00
kovacsv
47a6138870 Add tga loader. 2021-08-09 19:39:02 +02:00
kovacsv
0727048cc8 Merge branch 'dev' into three_importer
# Conflicts:
#	source/threejs/threeconverter.js
2021-08-09 18:27:18 +02:00
kovacsv
70324a38b7 Hide progress dialog only when all textures are loaded #108 2021-08-09 18:21:18 +02:00
kovacsv
9625bb721e Remove emissive color settings because it breaks some models. 2021-08-08 22:13:37 +02:00
kovacsv
ad66ea839f Load libraries one after other. 2021-08-08 22:06:14 +02:00
kovacsv
b85c199444 Rename variable, add some todos. 2021-08-08 16:27:08 +02:00
kovacsv
dc0fdbbc5d Handle mesh names. 2021-08-08 16:07:44 +02:00
kovacsv
984c900189 Handle textures from embedded data url, embedded blob, and external files. 2021-08-08 15:49:49 +02:00
kovacsv
9686de8817 Material and texture handling. 2021-08-08 15:11:26 +02:00
kovacsv
9432b5b9de Handle external textures. 2021-08-08 13:50:37 +02:00
kovacsv
d244cd458a Use common function in rhino importer. 2021-08-08 13:50:24 +02:00
kovacsv
8062aec93d Minor modification. 2021-08-08 09:16:55 +02:00
kovacsv
f365fc4fbd Build fix. 2021-08-06 22:34:53 +02:00
kovacsv
53b9218cc5 Dispose three objects after reading. 2021-08-06 22:31:43 +02:00
kovacsv
a5561c6f1a Embedded texture handling. 2021-08-06 22:17:33 +02:00
kovacsv
2a0b7eadf2 Handle loader errors. 2021-08-06 18:54:52 +02:00
kovacsv
395c3d524a Transform meshes. 2021-08-06 18:31:13 +02:00
kovacsv
a8de237a51 Minor modifications. 2021-08-06 17:38:08 +02:00
kovacsv
0a269785da Add experiment to load models using three.js loaders. 2021-08-06 17:00:29 +02:00
kovacsv
c9125c53b2 Typo fix. 2021-08-06 16:55:56 +02:00
kovacsv
55aafe8d88 Texture resizing to power-of-two sides is slow #105 2021-07-28 20:25:55 +02:00
kovacsv
79e344187d Use arrow callback instead of function. 2021-07-22 21:20:50 +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