Commit Graph

496 Commits

Author SHA1 Message Date
kovacsv
0ec5e8d814 Environment map background option when embedding the engine. 2022-01-22 16:28:31 +01:00
kovacsv
ba22d4d510 Feature Request - Ability to load/toggle environment texture instead of solid color #144 2022-01-22 16:03:11 +01:00
kovacsv
d4d488ad46 Add the possibility to switch between environment maps #161 2022-01-22 14:39:34 +01:00
kovacsv
f1361eed43 Update environment maps. 2022-01-22 11:37:18 +01:00
kovacsv
04120897ac Reorganize settings panel into sections. 2022-01-22 09:04:56 +01:00
kovacsv
c3f75a23b4 Fix deepscan error. 2022-01-21 18:50:58 +01:00
kovacsv
528541cfd4 Store main file name in error if it's present. 2022-01-21 18:46:54 +01:00
kovacsv
0fbebe7893 Use inverse transpose matrix for normal vector calculation. 2022-01-21 17:13:05 +01:00
kovacsv
22124a9992 Simplify cuboid generator. 2022-01-19 17:59:06 +01:00
kovacsv
603d7c8699 Add cone generator. 2022-01-18 23:19:21 +01:00
kovacsv
a68902f33b Update engine main. 2022-01-18 19:55:30 +01:00
kovacsv
968f336a98 Move camera to a separate file. 2022-01-18 19:51:07 +01:00
kovacsv
962a45c5e1 Fix an lgtm alert. 2022-01-18 18:50:49 +01:00
kovacsv
ce9176a58e Fix some DeepScan analysis errors. 2022-01-17 21:07:00 +01:00
kovacsv
7146bc0e2a Fix some DeepScan analysis errors. 2022-01-17 21:01:51 +01:00
kovacsv
aef3994e5c Fix some LGTM issues. 2022-01-17 18:12:17 +01:00
kovacsv
4d9362eb85 Minor modification. 2022-01-16 09:48:43 +01:00
kovacsv
d6c72821de Fix crash when drag&dropping non-file object. 2022-01-15 13:00:49 +01:00
kovacsv
646ca67e7e Create quaternion from x, y, z rotation values. 2022-01-15 12:11:52 +01:00
kovacsv
d4d4c1fad4 Better error reporting. 2022-01-14 18:20:36 +01:00
kovacsv
7dd1b0a201 Event handler shouldn't be a class. 2022-01-14 17:52:50 +01:00
kovacsv
052ef29ac5 Import vertex colors from obj files #201 2022-01-13 22:26:03 +01:00
kovacsv
576cdab3ba Fix typo. 2022-01-13 21:35:00 +01:00
kovacsv
b7b4cca10f Minor modification. 2022-01-12 20:09:18 +01:00
kovacsv
41c459897f Use substring instead of substr since it's deprecated. 2022-01-12 18:27:38 +01:00
kovacsv
211646c874 Remember the last used export file format #208 2022-01-12 17:13:31 +01:00
kovacsv
f21c5b74d0 CookieHandler shouldn't be a class. 2022-01-12 17:06:02 +01:00
kovacsv
1c6423b807 Remove unused class and function exports. 2022-01-10 18:34:31 +01:00
kovacsv
a4d386c521 Use ES modules. 2022-01-10 18:10:51 +01:00
kovacsv
3115e77648 Name clarification in obj importer. 2022-01-08 10:35:37 +01:00
kovacsv
e94cf8e5e5 Fix select menu appearance on firefox and safari. 2022-01-08 10:22:07 +01:00
kovacsv
31f622dede Add utility function for color conversion. 2022-01-07 22:45:43 +01:00
kovacsv
dbf1865c46 Set vertex color for materials only if they have vertex color in all appearances. 2022-01-05 19:10:12 +01:00
kovacsv
671a0cac85 Add the possibility to rotate the model during export #196 2022-01-04 20:32:53 +01:00
kovacsv
a13f82f687 Remove material parameter from mesh. 2022-01-04 19:49:13 +01:00
kovacsv
88f928beae Minor modifications. 2022-01-04 19:37:53 +01:00
kovacsv
b526bea0bb Add mesh material which is inherited to triangles during finalization. 2022-01-03 19:34:08 +01:00
kovacsv
2969050880 Move mesh clone function to the mesh class. 2022-01-03 18:46:16 +01:00
kovacsv
6f8893befc Move client coordinate calculation to dom utils. 2022-01-02 10:03:48 +01:00
kovacsv
d4b3a2e009 Use set or map instead of pure object. 2022-01-02 10:00:13 +01:00
kovacsv
862677bbf7 Move color class to a separate file. 2022-01-01 10:59:36 +01:00
kovacsv
3795b5cacd Get mesh type instead of checking triangle count. 2021-12-31 10:37:16 +01:00
kovacsv
6dc21ae06b Provide only material color for importer. 2021-12-30 16:20:03 +01:00
kovacsv
630f85145b Create model finalizer class. 2021-12-30 14:40:54 +01:00
kovacsv
2d8acfe7da Move mesh utils to a separate file. 2021-12-30 10:16:49 +01:00
kovacsv
3b6e784081 Check vertex color indices in tests. 2021-12-29 17:28:46 +01:00
kovacsv
6b953b790c Change asset order in glTF exporter. 2021-12-29 13:53:53 +01:00
kovacsv
36c3cd5405 Don't try to read vertex colors from draco compressed models. 2021-12-29 12:18:43 +01:00
kovacsv
7000368040 Fix glTF component type handling for vertex colors. 2021-12-29 12:00:15 +01:00
kovacsv
6a022775a4 Prevent material modification if vertex colors are present. 2021-12-29 09:50:31 +01:00
kovacsv
df5ad1e6be Hack in case of invalid color component range. 2021-12-29 09:40:09 +01:00
kovacsv
c6b2dbb95a Do not show default material popup when there are vertex colors. 2021-12-29 09:39:50 +01:00
kovacsv
f57d31eca8 Add test for exporting vertex colors to glTF. 2021-12-29 08:41:36 +01:00
kovacsv
10f7df63bc Export vertex colors to glTF. 2021-12-28 21:55:53 +01:00
kovacsv
0eee801446 Store vertex colors for triangles. 2021-12-28 21:15:33 +01:00
kovacsv
53d30d0b64 Add helper function for color conversion. 2021-12-28 17:25:25 +01:00
kovacsv
5c40815a7d Add helper function for color conversion. 2021-12-28 17:22:38 +01:00
kovacsv
1213bbee22 Add helper function for color conversion. 2021-12-28 17:19:26 +01:00
kovacsv
53a7193d4c Import vertex colors with three.js importers. 2021-12-28 17:12:20 +01:00
kovacsv
e5a2839c18 Minor modification. 2021-12-28 17:00:27 +01:00
kovacsv
28b1edbfad Function to convert between gltf and internal colors. 2021-12-28 16:51:38 +01:00
kovacsv
3a5c65bdc8 Store vertex colors in mesh. 2021-12-28 16:44:00 +01:00
kovacsv
f46ae4b88b Add transformation option for exporter model. 2021-12-28 09:18:29 +01:00
kovacsv
0a1f158e01 Separate file for exporter model tests. 2021-12-28 08:23:25 +01:00
kovacsv
3143fb0c09 Remove unnecessary log. 2021-12-27 20:37:02 +01:00
kovacsv
9237262ebd Process model on the loader callback, but wait while all files are loaded. 2021-12-27 20:26:52 +01:00
kovacsv
93358e2cd0 Export only the visible meshes #169 2021-12-26 14:08:58 +01:00
kovacsv
4e7d10b3b7 Use model filter from export dialog. 2021-12-26 01:11:19 +01:00
kovacsv
5eca9dade5 Add model filter to exporter model. 2021-12-26 00:59:57 +01:00
kovacsv
fe8012e657 Use a separate model class for export. 2021-12-26 00:40:06 +01:00
kovacsv
233cc2c2d7 Store instance id in mesh instances. 2021-12-25 10:49:59 +01:00
kovacsv
b4f10e2ca1 Use full file format names in export dialog. 2021-12-25 10:21:23 +01:00
kovacsv
69a97d6bd0 Move viewer geometry objects to a separate file. 2021-12-23 18:47:23 +01:00
kovacsv
759e9e7efe Store grid next to the geometry. 2021-12-23 17:48:40 +01:00
kovacsv
e611e50e2f Minor modifications. 2021-12-23 16:24:17 +01:00
kovacsv
aaf6a242c0 Feature toggle for grid display. 2021-12-23 15:18:47 +01:00
kovacsv
876cfc399b Always orbit around the center point of the camera. 2021-12-23 09:12:03 +01:00
kovacsv
3a2b344bc5 Simplify orbit center handling. 2021-12-22 23:35:59 +01:00
kovacsv
bee095ba74 Remove orbit center modifier code. 2021-12-22 23:05:27 +01:00
kovacsv
7891817b3e Fix crash when material type doesn't match with the preferred shading type. 2021-12-22 22:58:23 +01:00
kovacsv
1a0b473345 Rename axis to grid. 2021-12-22 20:36:48 +01:00
kovacsv
9e4aa58de2 Adjust orbit center after panning #194 2021-12-21 20:47:25 +01:00
kovacsv
27c308e308 Update external libraries. 2021-12-20 23:14:23 +01:00
kovacsv
e9f989ffea Clear previous model before loading the next one. 2021-12-20 22:58:32 +01:00
kovacsv
18e35701be Access the core viewer instance from the embedded viewer. 2021-12-20 16:31:26 +01:00
kovacsv
9c3e6fa3ec Object oriented embedding. 2021-12-20 16:10:45 +01:00
kovacsv
1cf59b750f Remove solidity check from volume calculation. 2021-12-18 10:31:40 +01:00
kovacsv
d5976ec8db Do url transformations in the loading code instead of the dialog #188 2021-12-18 10:09:30 +01:00
kovacsv
aec0d4adc7 Remove unused functions. 2021-12-17 17:03:55 +01:00
kovacsv
b59f52ae77 Add toggle button for edge settings and dark mode. 2021-12-15 18:15:48 +01:00
kovacsv
b42f8a3ec3 Slider for edge threshold. 2021-12-15 15:22:56 +01:00
kovacsv
295ac89a5d Fix error message. 2021-12-13 11:30:22 +01:00
kovacsv
c698117302 Better error message in case of the file is found, but failed to load. 2021-12-13 11:09:33 +01:00
kovacsv
6fd498d4a8 Minor modification. 2021-12-13 08:41:48 +01:00
kovacsv
6e9eea126a Detect single tap on mobile as mouse click. 2021-12-13 00:01:08 +01:00
kovacsv
712b75e208 End event should handled for iOS. 2021-12-12 21:36:41 +01:00
kovacsv
ce57dff028 Handle touchcancel, because touchend doesn't work on android. 2021-12-12 21:24:42 +01:00
kovacsv
bcf0c588fe No need to handle mouse button in click detector. 2021-12-12 21:24:08 +01:00
kovacsv
a003210666 No need to handle end event, because on touchend no relevant information arrives in the event. 2021-12-12 21:10:17 +01:00
kovacsv
a0ef9de5cb Rename functions in navigation. 2021-12-12 20:28:12 +01:00