Commit Graph

361 Commits

Author SHA1 Message Date
kovacsv
06a20bffd2 Add grid display experiment. 2021-11-20 17:00:28 +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
33a8464321 Simplify importer interface. 2021-11-17 12:01:21 +01:00
kovacsv
afc741203a Minor modification. 2021-11-16 18:06:46 +01:00
kovacsv
b50abe77ba Minor modification. 2021-11-16 08:34:52 +01:00
kovacsv
19d49f3832 Use materials in svg importer. 2021-11-15 18:16:05 +01:00
kovacsv
2ccc67fe1a Separate file for svg loader. 2021-11-14 15:02:48 +01:00
kovacsv
d2039f97e6 Fix three.js import when a mesh node has children. 2021-11-14 09:37:43 +01:00
kovacsv
608d6b896d Fix glTF import when a mesh node has children. 2021-11-13 21:29:35 +01:00
kovacsv
ca3fd182b0 Introduce node types. GroupNode is a node that contains child nodes and optionally some meshes. MeshNode is a node that contains only one mesh. MeshNodes are not visible in the tree. 2021-11-13 20:56:35 +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
60b13a9572 Add svg loader experiment. 2021-11-13 19:45:34 +01:00
kovacsv
c504d74b5d Add solids example as o3dv file. 2021-11-12 16:30:25 +01:00
kovacsv
57c7c216db Remove unused functions. 2021-11-08 17:54:34 +01:00
kovacsv
1fe87962bb Set node name only if it's not empty in the 3ds file. 2021-11-03 18:42:37 +01:00
kovacsv
1fbd4feea0 Hierarchical 3ds import. 2021-11-03 18:08:36 +01:00
kovacsv
b90425e247 Set texture name based on three map name. 2021-11-03 08:19:44 +01:00
kovacsv
16daacadac Minor modification. 2021-11-02 19:07:47 +01:00
kovacsv
a053ea07b4 Hierarchical three.js import. 2021-11-02 18:00:26 +01:00
kovacsv
3423baa2b2 Hierarchical glTF import. 2021-11-02 08:40:27 +01:00
kovacsv
71cfe70c71 Improve conversion speed in case of high number of nodes. 2021-11-02 08:40:06 +01:00
kovacsv
c1e7deb2c4 Make three.js importers inherit from a three.js importer base class. 2021-11-01 07:47:45 +01:00
kovacsv
1b936f21b2 Replace environment map. 2021-10-31 09:30:37 +01:00
kovacsv
00daf22067 Modify physical lighting model. 2021-10-30 09:31:11 +02:00
kovacsv
69430fd8f2 Update three.js to the latest version #160 2021-10-30 08:43:25 +02: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
494ef4697b Move shading parameters to a separate class. 2021-10-29 18:19:36 +02:00
kovacsv
281d49c750 Move open/close arrow to the left of navigator group items. 2021-10-28 14:08:58 +02:00
kovacsv
94e8f15a24 Check if the model is empty based on the node hierarchy. 2021-10-27 10:04:50 +02:00
kovacsv
fc2dd12aa0 Always return arraybuffer during export. 2021-10-27 09:55:01 +02:00
kovacsv
d78feaceee Remove empty nodes recursively. 2021-10-27 09:54:40 +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
e6eff40543 Remove empty nodes during model finalization. 2021-10-26 19:45:26 +02:00
kovacsv
ad132b2eed Calculate geometric values based on mesh instances. 2021-10-26 18:54:51 +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
c1e3a33107 Mesh instance is not needed in mesh. 2021-10-26 14:47:03 +02:00
kovacsv
6f9801010b Use mesh instance id to identify meshes. 2021-10-26 13:15:56 +02:00
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
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
0143d29a9d Add multiple instances of the same mesh in tests. 2021-10-25 08:32:11 +02:00
kovacsv
f5cedf6842 Add key generator to mesh instance id. 2021-10-24 21:22:14 +02:00
kovacsv
90539cc15d Move MeshInstanceId to a separate file. 2021-10-24 18:08:50 +02:00
kovacsv
0afce83a49 Fix conversion when a node has multiple meshes. 2021-10-24 17:30:48 +02:00
kovacsv
bd6a66a781 Move mesh instance id to model utils. 2021-10-24 16:48:43 +02:00
kovacsv
4250ab3b58 Add mesh instance object that represents a mesh with transformation. 2021-10-24 16:46:49 +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
67ca415a72 Remove unused variable. 2021-10-22 16:02:53 +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
bb9724578d Add mesh enumeration function to model. 2021-10-17 11:42:58 +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
3385816128 Update web-ifc. 2021-10-02 10:41:09 +02:00
kovacsv
fb3cdbe83c Pass original file name and extension to importers. 2021-09-24 08:16:18 +02:00
kovacsv
5bd71dd50c Feature Request - Shift + Mouse left should pan model #141 2021-09-17 13:47:36 +02:00
hey24sheep
39e10560c9 increased zoomRatio to 0.005 2021-09-17 14:07:54 +05:30
kovacsv
f9e8be8ed0 Make ctrl+zoom dependent of mouse movement diff, and clean-up code. 2021-09-17 08:07:26 +02:00
hey24sheep
089f4a0fc9 disable zoom on movement along x-axis 2021-09-16 16:38:53 +05:30
hey24sheep
a2061a7ca6 Merge branch 'dev' into task/ctrl_mouse_zoom 2021-09-16 16:24:14 +05:30
kovacsv
30830e8431 Handle multiple zip files. 2021-09-16 07:45:11 +02:00
hey24sheep
31f58ade96 ctrl zoom feature 2021-09-13 22:17:34 +05:30
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
4e7f5d0445 Move FileList to a separate file. 2021-09-13 11:21:29 +02:00
kovacsv
9c252de657 Minor code formatting. 2021-09-12 15:44:28 +02:00
hey24sheep
d9b80d96de import gltf extra props 2021-09-11 03:13:24 +05:30
kovacsv
419e8775dd Move three importer among other importers. 2021-09-05 08:04:55 +02:00
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
9bdd924b2f Remove mesh isolation by ctrl+click. 2021-08-17 19:28:22 +02:00
kovacsv
471a6cd3fa Minor modification. 2021-08-17 19:20:44 +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
fe2836d632 Do not prevent default event for handlers that registered for the whole document, because in this case selection won't work. 2021-08-15 19:13:41 +02:00
kovacsv
8493391517 Change canvas background color #85
Option to set default material for meshes with no material information #45
2021-08-14 11:12:41 +02:00
kovacsv
d3a362dc7f Fix glTF metalness import. 2021-08-12 13:06:51 +02:00
kovacsv
c92d1b7580 Utilize other texture maps. 2021-08-12 08:17:26 +02:00
kovacsv
24ee8635fc Fix rhino library location. 2021-08-10 20:05:05 +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