Commit Graph

496 Commits

Author SHA1 Message Date
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
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
c14da66704 Merge branch 'dev' into three_importer 2021-08-07 22:14:58 +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
f365fc4fbd Build fix. 2021-08-06 22:34:53 +02:00
kovacsv
c042fa26b6 Merge branch 'dev' into three_importer 2021-08-06 22:33:24 +02:00
kovacsv
53b9218cc5 Dispose three objects after reading. 2021-08-06 22:31:43 +02:00
kovacsv
c60fe3bd1f Build fix. 2021-08-06 22:20:03 +02:00
kovacsv
4d0e4a0bd6 Merge branch 'dev' into three_importer 2021-08-06 22:18:18 +02:00
kovacsv
0f02be43dd Add utility functions for extension detection. 2021-08-06 22:18:02 +02:00
kovacsv
a5561c6f1a Embedded texture handling. 2021-08-06 22:17:33 +02:00
kovacsv
d03c67ce1f Merge branch 'dev' into three_importer 2021-08-06 19:02:01 +02:00
kovacsv
5130717732 Always return file extension in lower case. 2021-08-06 19:01:43 +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
6dad95b310 Add rhino exporter in the exporter constructor. 2021-08-06 15:10:38 +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
9901ba1f4c Add sphere to function names where a sphere is expected. 2021-07-27 08:14:31 +02:00
kovacsv
743c4dcf1b Remove unused variable. 2021-07-25 16:44:11 +02:00
kovacsv
9405aff3dd Make mesh visibility options available from context menu #102 2021-07-24 13:49:22 +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
79e344187d Use arrow callback instead of function. 2021-07-22 21:20:50 +02:00
kovacsv
d992b42541 Use arrow callback instead of function. 2021-07-22 21:11:58 +02:00
kovacsv
e49bd60561 Add the possibility to add environment map to self-hosted viewer. 2021-07-20 21:08:02 +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
7d013878fc Use the same values that are coming from the texture. 2021-07-19 19:33:10 +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
682976075d Add more self-host examples. 2021-07-17 21:49:29 +02:00
kovacsv
a24c3bea05 Skip url parameters when determining file name or extension. 2021-07-17 09:57:55 +02:00
kovacsv
239a4df91c Add possibility to init only one viewer manually. 2021-07-17 09:50:23 +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
009925c4b6 Rename result to output. 2021-07-13 07:30:22 +02:00
kovacsv
ec4bc495a2 Add reset to defaults button to settings panel. 2021-07-13 06:42:30 +02:00
kovacsv
fec23eb236 Add more eslint rules. 2021-07-12 18:41:38 +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
b063321a5b Rename url parameters for default and background color. 2021-07-11 15:44:22 +02:00
kovacsv
d32dc8485a Replace default material without reloading the model. 2021-07-11 11:15:52 +02:00
kovacsv
f85eebfb3f Init sidebar panels from the website code. 2021-07-10 18:48:59 +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
59635a6291 Minor modification. 2021-07-02 12:04:59 +02:00
kovacsv
4001ba2e2e Property handling. 2021-07-02 12:02:53 +02:00
kovacsv
626591698a Decode ifc strings. 2021-06-29 09:18:24 +02:00
kovacsv
482caec6a0 Add property types. 2021-06-27 00:22:33 +02:00
kovacsv
ee035c130e Add property types. 2021-06-27 00:19:56 +02:00
kovacsv
d07c9eba2e Use boolean property type. 2021-06-27 00:02:06 +02:00
kovacsv
8669e1301f Merge branch 'dev' into ifcimporter 2021-06-27 00:00:48 +02:00
kovacsv
a0e84d016c Add boolean property type. 2021-06-27 00:00:31 +02:00
kovacsv
183f752d7f Use property groups. 2021-06-26 23:57:10 +02:00
kovacsv
5d76010284 Merge branch 'dev' into ifcimporter 2021-06-26 23:54:09 +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
14d11a0c41 Set background color when using the viewer on your website #92 2021-06-24 19:36:15 +02:00
kovacsv
f4b8ca18c6 Callback instead of return value because of async loading. 2021-06-24 18:24:12 +02:00
kovacsv
5a027f193f Return the created viewer elements so later modifications are possible. 2021-06-24 18:20:33 +02:00
kovacsv
32bac5ddc1 Build fix. 2021-06-22 16:41:28 +02:00
kovacsv
43694b89c2 Property import tryout. 2021-06-22 16:38:37 +02:00
kovacsv
0524a0cbb1 Remove todo. 2021-06-22 15:42:18 +02:00
kovacsv
8d59266c50 Close model after import. 2021-06-22 15:11:09 +02:00
kovacsv
477dcbe1cd Merge branch 'dev' into ifcimporter 2021-06-22 12:01:39 +02:00
kovacsv
8d8fbc4447 Import user strings for meshes, and add a todo for the whole model. 2021-06-20 20:07:11 +02:00
kovacsv
89796d2971 Read meta data from glTF. 2021-06-20 18:40:50 +02:00
kovacsv
c7f0d128a7 Add properties to model and mesh. 2021-06-20 17:23:17 +02:00
kovacsv
ea77b98642 Add basic information to the sidebar. 2021-06-20 11:31:39 +02:00
kovacsv
c1bdfde874 Rhino material doesn't work when it's imported from layer 0 #87 2021-06-17 10:08:01 +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
b9db7fd9e2 Use cross vector calculation when calculating triangle normal. 2021-06-16 09:04:23 +02:00
kovacsv
3761fee986 Merge branch 'dev' into ifcimporter 2021-06-15 08:51:28 +02:00
kovacsv
67a249f528 Fix batch task running in case of zero count. 2021-06-14 14:25:23 +02:00
kovacsv
f2c5bffa9b Merge branch 'dev' into ifcimporter 2021-06-13 18:31:23 +02:00
kovacsv
1cdf592c4f Visualization is slow in case of large number of meshes #82 2021-06-13 18:25:44 +02:00
kovacsv
e416aae4bc Transparency handling. 2021-06-13 07:37:11 +02:00
kovacsv
855ba95d66 Merge branch 'dev' into ifcimporter 2021-06-13 07:30:35 +02:00
kovacsv
8fbe59d656 Add public IntegerToHexString function. 2021-06-13 07:30:11 +02:00
kovacsv
64cad6383a Fix JSHint errors. 2021-06-12 19:51:23 +02:00
kovacsv
4df8d25236 Add experimental importer for ifc. 2021-06-12 19:49:26 +02:00
kovacsv
dde3e08687 Load external libraries only once. 2021-06-12 18:04:21 +02:00
kovacsv
094189ce4f Delay load rhino3dm so it will be loaded only if it's needed. 2021-06-12 17:58:58 +02:00
Viktor Kovacs
edd2245915 Comment to explain checker code. 2021-06-05 09:15:12 +02:00
Viktor Kovacs
c7ef690933 All materials render black on some mobile devices #69
Let's detect the wrong devices, and set precision to mediump only if needed.
2021-06-05 09:01:24 +02:00
Viktor Kovacs
ff46ecc7d2 Rename files. 2021-06-03 21:53:40 +02:00
Viktor Kovacs
756c6376c2 Visual glitches on mobile #75 2021-06-03 08:29:12 +02:00
Viktor Kovacs
377ab38e6c All materials render black on some mobile devices #69 2021-05-29 14:07:41 +02:00
Viktor Kovacs
a3d283f613 Add o3dv file format for testing purposes. 2021-05-27 20:20:00 +02:00
Viktor Kovacs
d971350443 Minor modification. 2021-05-24 20:51:27 +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
6613cd96cd Add todo. 2021-05-24 20:19:01 +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
aff5740fba Add todo. 2021-05-21 19:20:00 +02:00
Viktor Kovacs
5184fe9346 Move material and triangle to a separate file. 2021-05-21 09:38:09 +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
9a8e54a804 Minor modification. 2021-05-17 16:55:54 +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
39ecb7af61 Add bounding box calculator. 2021-05-15 12:04:48 +02:00
Viktor Kovacs
4ee5eb6040 Bounding box calculation test. 2021-05-15 11:57:00 +02:00
Viktor Kovacs
e7c42dd067 Build fix. 2021-05-15 11:49:00 +02:00
Viktor Kovacs
371044bf67 Move exporter utils content to model utils. 2021-05-15 11:47:43 +02:00
Viktor Kovacs
8937cafdfd Add minimal octree implementation. 2021-05-14 16:58:28 +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
e9509d1696 Use wheel event instead of deprecated DOMMouseScroll and mousewheel. 2021-05-09 15:38:32 +02:00
Viktor Kovacs
31635229af Remove dead code (also contained a typo). 2021-05-09 15:21:59 +02:00
Viktor Kovacs
7b7a989b1e Fix object detection under mouse. 2021-05-05 08:09:08 +02:00
Viktor Kovacs
72e45a8030 Separate class to store geometry. 2021-04-30 07:49:36 +02:00
Viktor Kovacs
482a6958a7 Flip triangles when the model should be mirrored. 2021-04-25 19:52:33 +02:00
Viktor Kovacs
a9aebe77f4 Export mesh names to rhino. 2021-04-25 18:48:10 +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
b47d6b0ce4 Maintain device pixel ratio during resize, so the render won't be blurry when the users set the scale for the whole webpage. 2021-04-25 15:33:36 +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
e6452eb39f Modify error message when there are no 3D meshes in the rhino file. 2021-04-22 08:28:17 +02:00
Viktor Kovacs
8c6029d52d Hi-DPI aware #60
Take device pixel ration in consideration when initializing renderer and when saving to a fixed size png.
2021-04-22 08:10:43 +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
2740de7098 Handle invalid camera when moving. 2021-04-20 15:20:11 +02:00
Viktor Kovacs
615bab3c4d Do not call camera move when the new camera is invalid. 2021-04-20 15:17:05 +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
Viktor Kovacs
0372bf81c9 Minor modification. 2021-04-20 08:45:11 +02:00
Viktor Kovacs
c4a0d68a37 Detailed error messages. 2021-04-19 08:32:52 +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
cf65d1f204 Override diffuse color only it it is completely black. 2021-04-17 12:16:01 +02:00
Viktor Kovacs
fc0aafb4dc Allow fully transparent objects. 2021-04-17 10:34:04 +02:00
Viktor Kovacs
4104197f31 Error handling in case of wrong file. 2021-04-16 18:39:30 +02:00
Viktor Kovacs
1cb267a2b8 Handle SubD objects. 2021-04-16 17:26:04 +02:00
Viktor Kovacs
5956c9f131 Handle different material types. 2021-04-16 17:13:31 +02:00
Viktor Kovacs
3f5d29f9fc Handle instances in rhino importer. 2021-04-16 14:47:18 +02:00
Viktor Kovacs
a5900585f4 Fix up direction for rhino importer. 2021-04-15 21:19:19 +02:00
Viktor Kovacs
33d4d5ac50 Do not use hash mark in material names. 2021-04-15 21:16:56 +02:00
Viktor Kovacs
489269b17f Make material color win over display color. 2021-04-15 20:47:30 +02:00
Viktor Kovacs
a2aaedbbae Rhino import experiment. 2021-04-15 20:23:08 +02:00
Viktor Kovacs
79207aa413 Minor modification. 2021-04-15 14:54:47 +02:00