Commit Graph

210 Commits

Author SHA1 Message Date
Fabians 69a10f7f08 feat(frontend): comments in viewer embed + refactored frontend viewer foundations 2022-08-01 12:43:50 +03:00
Kristaps Fabians Geikins 827500c32b fix(frontend): embed viewer bugfixes & speed improvements (#804)
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2022-06-16 12:37:04 +03:00
AlexandruPopovici fbb3701917 Fix for an older issues that was causing bad indices to be used 2022-06-08 17:06:36 +03:00
AlexandruPopovici 56cb11265c Handles three issues: 1) Line weigth is now scaled according to units specified in the lineStyle. 2) Fixed an issue where the circle point computation would scale the origin wrongly, leading to incorrect circle positioning. 3) Fixed an issue where the step size when computing point on a circle was too large, and the circles were very coarse, even squares 2022-06-08 01:41:26 +03:00
AlexandruPopovici 1655a44265 Changed the non camel case variable names to camel case to appease the linter. In my opinion this change has absolutely zero added value. 2022-06-06 23:01:53 +03:00
AlexandruPopovici 57c3804235 Disabled stats by default in the viewer init parameters 2022-06-06 22:56:01 +03:00
Kristaps Fabians Geikins 437e1558ec fix: fixing all builds that broke with the new viewer (#788)
builds fix + viewer logic fixes
2022-06-02 18:13:32 +03:00
Alexandru Popovici 9b81618f58 Manged to bundle a default hdri with the viewer. The clients can eith… (#779)
* Manged to bundle a default hdri with the viewer. The clients can either use the default one, or specify their own

* Added a comment describing why we're hiding the .exr behind a .png. Fixed some lint errors/warnings
2022-05-30 12:38:59 +03:00
AlexandruPopovici 0853a5acb2 Fixed an issue with selecting lines which are inside block instances. However that still doesn't work properly because the actual geometry isn't getting tested at pick time due to some issues inside SelectionHelper 2022-05-26 17:41:06 +03:00
Fabians b12d51463d Merge branch 'alex/viewer-redux' of github.com:specklesystems/speckle-server into alex/viewer-redux 2022-05-26 16:55:58 +03:00
Fabians be87f88ff6 viewer asset support 2022-05-26 16:55:09 +03:00
AlexandruPopovici e43f7136b8 #746 Fixed some issues regarding selecting lines and the visual response looks 2022-05-26 16:03:52 +03:00
AlexandruPopovici 482862d896 Fixes regarding block instances and selecting stuff 2022-05-26 14:56:26 +03:00
AlexandruPopovici c55f73185f Merged with main. Fixed an issue with geometry baking 2022-05-26 11:46:19 +03:00
AlexandruPopovici 448ae95d8b Added a sample hdr to the assets 2022-05-26 11:01:11 +03:00
AlexandruPopovici abf636c946 #746. Used vector buffers in the speckle materials to avoid pointless nursery pressure. Some lint-related fixes 2022-05-26 10:20:44 +03:00
AlexandruPopovici 168838b059 Fixed lint errors 2022-05-25 17:34:14 +03:00
Alexandru Popovici 12d3a216b6 Fixed transformation order for arcs. Fixed origin not being scaled accordingly (#769) 2022-05-25 16:31:10 +03:00
AlexandruPopovici f2fdf545b7 Added automatic loader selection based on file extension. Changed the default environment in the sandbox 2022-05-25 12:29:39 +03:00
Alexandru Popovici 40f7487cfd Acos fix (#766)
* Fixed an issue where floating point precision would lead to acos returning NaN

* Wrong paranthesis close
2022-05-24 16:46:45 +03:00
AlexandruPopovici 71ce007a08 #746. Added remaining material extensions and replaced them where required. 2022-05-24 12:08:28 +03:00
AlexandruPopovici 81a4de69b2 #746. Figured out how to clamp the world space thick lines to any pixel value when they're screen size width becomes less than 1 pixel and they start to basically dissapear. 2022-05-20 15:57:57 +03:00
AlexandruPopovici 1599970f22 #746 Made the new thick lines work with RTE 2022-05-19 13:05:34 +03:00
AlexandruPopovici 1eb44d00d9 Updated three.js version to 140. Thick lin raycasting now properly works in world space and also the threshold in world space is now accurate. 2022-05-18 11:53:50 +03:00
AlexandruPopovici e574623a43 #746 Fixed an issue with RTE and basic line geometry. Group transforms were not baked into the high and low attributes. Now they work correctly 2022-05-17 22:42:06 +03:00
AlexandruPopovici a3c7dcf408 #746 Implemented RTE for basic line materials (non thick) 2022-05-17 17:53:49 +03:00
AlexandruPopovici 742d83296e #746 Added real time switching between thick and regular lines 2022-05-17 17:12:02 +03:00
AlexandruPopovici 832f537dc7 Added realtime switching between RTE and non-RTE rendering. The speckle materials now have conditional compiling regarding RTE implementation 2022-05-17 15:56:32 +03:00
AlexandruPopovici e3cd5ae1f0 #746 A lot of changes to Geometry. Started integrating RTE with the viewer 2022-05-17 14:52:38 +03:00
AlexandruPopovici b0a138fa6e #746 Delete original geometry data after merging 2022-05-13 11:37:37 +03:00
AlexandruPopovici 27a5814d52 #746. More or less finished with refactoring the converter. There is now an intermediary layer between the speckle data parsing and actual three.js geometry. There is also an intermediary data type being passed around the converter and the geometry handler 2022-05-12 19:41:02 +03:00
AlexandruPopovici 8877720c5a #746. Continued working on the converter. Added an intermediary layer between the converted and the scene object loader. Added the concept of GeometryData, and implemented it for some of the speckle types. 2022-05-11 18:12:04 +03:00
AlexandruPopovici a8a0a0de38 #746. Converter is not typescript'd. Also added a few smaller changes. Next we need an intermediary layer between the converter and the viewer object loader 2022-05-10 18:46:14 +03:00
AlexandruPopovici 0074a784e6 Restored IViewer 2022-05-10 14:18:53 +03:00
Fabians d765489d37 Merge branch 'alex/viewer-redux' of github.com:specklesystems/speckle-server into alex/viewer-redux 2022-05-10 11:54:33 +03:00
Fabians a47e226a0c Fixing TS config for viewer 2022-05-10 11:51:12 +03:00
AlexandruPopovici 5c639e595d Reverted to old formatting. 2022-05-10 11:41:33 +03:00
AlexandruPopovici 060f7e5304 Worked on #746. Added members to the public API (still based on the original viewer). Added sample hdri and enabled proper (well, as proper as three can do it...) IBL. Added controls to the sandbox UI 2022-05-09 23:01:20 +03:00
AlexandruPopovici 2eb7545129 Merged line-thickness 2022-05-09 14:19:07 +03:00
AlexandruPopovici 0f1fafa8bc Started working on moving towards typescript inside the viewer. Made rollup compile a mix of ts and js files (will need to be reviewd soon). Added a public interface for the Viewer and also the Viewer is now typescript and implements the public API 2022-05-09 14:00:41 +03:00
AlexandruPopovici bba9516c68 Implemented correct mouse picking for the new lines 2022-05-03 15:12:16 +03:00
AlexandruPopovici dbe5941ae6 Fixed conflicts 2022-05-02 17:53:29 +03:00
Alexandru Popovici 753b38abb4 Alex/#723#711 patch (#737)
* Handled #711. New arc converter for viewer. Original issues fixed, still needs more testing

* #711. Added some documenting comments

* Working on parsing the displayValue when no direct conversion exists. Seems to working now. Justs need some additional info

* Worked on #723

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Prioritized 'displayValue' over 'displayMesh' properties when fetching displayValue data as per Claire's suggestion. Removed the builint lineWidth assignment since it will only add confusion and it's also incorrect

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-02 17:50:42 +03:00
Alexandru Popovici 47fadee3c3 Alex/#723#711 (#733)
* Handled #711. New arc converter for viewer. Original issues fixed, still needs more testing

* #711. Added some documenting comments

* Working on parsing the displayValue when no direct conversion exists. Seems to working now. Justs need some additional info

* Worked on #723

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-02 17:40:22 +03:00
AlexandruPopovici 8e647b056b Finished first draft of the new line rendering approach which supports variable line thickness. 2022-05-02 17:26:34 +03:00
AlexandruPopovici 180c0f0062 WIP on variable line thickness. The method included in three.js for thick lines has some issues, but it;s relatively easy to use. Will need to extend the thick lines;s material and see if I can fix the current issues withing it;s shaders 2022-04-30 17:42:35 +03:00
Alexandru Popovici 02eb9a8c41 Alex/lines #443 (#721)
* Fixed some issues with npm scripts on Windows systems

* Made the example script run the dev build with wtch in parralel with running a http server. Handled #443

* #443. Added lineweigth to the rendered lines. However this will not work on most systems. More information about this in the issue

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Reverted the changes to the npm scripts

* Restored package.lock files from packages outside of viewer to their original state

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-27 17:24:37 +03:00
luz paz 1e28b368fd Fix source typo (bug?) 2022-04-15 13:50:30 -04:00
Fabians c91f0a4bba feat: fixed viewer & objectloader build configs 2022-04-08 12:46:34 +03:00
Fabians 4699e6794c reformatting again for 88 width 2022-04-04 19:21:28 +03:00