Commit Graph

443 Commits

Author SHA1 Message Date
AlexandruPopovici 632ad53152 Added World to the API. Can be used to check world dimensions and offsets. Cleaned up and added some comment in Viewer. After removing the reference to a lot of issues arose. The frontend and preview-service seems to use it extensively. Changed the calls referencing the interactions to the ones in the API where it was aplicable, and commented out with a note added for the ones that were not aplicable. We proably need to expose a generic way to manipulate the camera from the API 2022-08-24 18:24:43 +03:00
AlexandruPopovici 25c74556d0 Sandbox uses official viewer API exclusively. Added ViewerEvent for any events that the viewer emits and updated the references everywhere 2022-08-24 16:42:11 +03:00
AlexandruPopovici 7a09ee7dfa Integration updates 2022-08-23 16:49:57 +03:00
AlexandruPopovici 0e00cb67bf Fixed conflicts 2022-08-23 15:57:22 +03:00
AlexandruPopovici c4202291c6 Added IViewer complete API. Starting working on sandbox to make use of it exclusively 2022-08-23 15:29:07 +03:00
AlexandruPopovici 1a0fc5556b Added dynamic line threshold calculation based on an emipirical model. Extened three's Raycaster class so we can have more controls on raycasting 2022-08-23 13:58:12 +03:00
Dimitrie Stefanescu f224fb8376 feat(viewer/frontend): object(s) highlights from the model explorer 2022-08-23 11:45:14 +03:00
Dimitrie Stefanescu 2cd2be113c feat(viewer): cleanups 2022-08-23 10:53:20 +03:00
Dimitrie Stefanescu ec606003f9 feat(viewer): more... integration work 2022-08-23 10:52:11 +03:00
Dimitrie Stefanescu 422a80eaf3 feat(viewer): integration 2022-08-23 10:18:57 +03:00
Dimitrie Stefanescu f49d86046a feat(viewer): integration 2022-08-23 09:28:28 +03:00
Dimitrie Stefanescu e5fe470044 feat(viewer): proper filter resetting for colors 2022-08-23 08:20:49 +03:00
Dimitrie Stefanescu 6e7c55c2d5 feat(viewer): WIP filtering refactor & type-ification 2022-08-22 22:03:37 +03:00
Dimitrie Stefanescu 46985c1e81 Merge branch 'viewer-redux-integration' into dim/viewer-redux 2022-08-22 18:46:54 +03:00
Dimitrie Stefanescu e5a790b02b feat(viewer): WIP filtering cleanup 2022-08-22 18:44:12 +03:00
AlexandruPopovici 5eb4f2e2e6 Implemented DataTree and associated types for exposure in the viewer API 2022-08-22 15:38:08 +03:00
AlexandruPopovici ad780eeb07 Fixed typo 2022-08-22 11:56:01 +03:00
AlexandruPopovici fa86b92a16 All mesh filter materials respect wether the original material is transparent and keep it transparent 2022-08-19 22:44:19 +03:00
AlexandruPopovici f62db64674 Added SpeckleGhostMaterial which is a simplified version. No IBL and no shadowmap sampling since it's not needed. Also no direct lighting 2022-08-19 19:04:28 +03:00
AlexandruPopovici 076014ed6d Fixed an issue with RTL and world matrix. We were concatenating the mul incorrectly with the world matrix on the CPU in the update loop. The shadow matrix has a transformation which rescales the range from -1,1 to 0,1 and this transformation was messing the world transform. Added the world transform multiplication inside the shader before multiplying with the shadow view matrix 2022-08-18 20:44:11 +03:00
AlexandruPopovici d029c3dd32 Added message showing how much time it took to load the objects. LOAD, not DOWNLOAD 2022-08-18 18:21:42 +03:00
AlexandruPopovici 0dd8c58529 Added the possibility to set the default sun light properties at runtime via LightConfiguration. Added a working example into sandbox 2022-08-18 18:17:14 +03:00
AlexandruPopovici d3163bff2f Fixed the issue where you could select objects clipped by thesection planes 2022-08-17 15:32:54 +03:00
AlexandruPopovici 0f5a95e80d Fixed an issue with transparent materials and 0 opacity. Added roughnss and metalness as legit material properties 2022-08-17 15:06:51 +03:00
AlexandruPopovici a892643a4a Merge branch 'dim/viewer-redux' into viewer-redux-integration 2022-08-17 14:43:39 +03:00
AlexandruPopovici 05e73d9c17 Fixed the issue with selected objects going invisible 2022-08-17 13:11:49 +03:00
Dimitrie Stefanescu eccf0a9186 chore(frontend/viewer): fixes some eslint errors 2022-08-17 09:51:46 +03:00
Dimitrie Stefanescu c64fc2cd4c feat(viewer): filtering manager types (wip) 2022-08-17 09:38:38 +03:00
Dimitrie Stefanescu 00a86f9bf3 feat(viewer): new selection implementation 2022-08-17 08:27:32 +03:00
Dimitrie Stefanescu cc16887657 feat(viewer): WIP new selection implementation 2022-08-17 07:51:29 +03:00
AlexandruPopovici eb87ef8509 Another husky test 2022-08-16 17:38:29 +03:00
AlexandruPopovici 17a018559f Test husky 2022-08-16 17:35:27 +03:00
AlexandruPopovici 8a5611434a Forgot to add the RTL uniforms to the colored material 2022-08-16 17:02:05 +03:00
AlexandruPopovici 813cd51788 Fixed conflicts, fixed an issue with updating materials for RTL 2022-08-16 15:49:30 +03:00
Dimitrie Stefanescu d53fe6b930 WIP: debugging commit for fabians 2022-08-16 13:21:00 +03:00
Dimitrie Stefanescu c88488c326 feat(viewer): integration work (very WIP) 2022-08-16 11:36:11 +03:00
Dimitrie Stefanescu ec91f36cfc feat(viewer): integration work (very WIP) 2022-08-16 10:30:54 +03:00
Dimitrie Stefanescu 1badaa9177 feat(viewer): integration work (very WIP) 2022-08-16 09:51:12 +03:00
AlexandruPopovici 8b2559759f Removed log 2022-08-15 17:31:38 +03:00
AlexandruPopovici 023a26c6a0 Fixed conflicts 2022-08-15 17:11:57 +03:00
AlexandruPopovici 52d37a3b83 Merged 2022-08-15 16:13:53 +03:00
AlexandruPopovici d35e321c15 Forgot to muliply with the batch's world transformation in the rte shadow matrix 2022-08-15 16:11:21 +03:00
AlexandruPopovici f43f8d7174 #827 Fixed the issue with shadows and distant objects 2022-08-15 15:17:28 +03:00
Dimitrie Stefanescu e15d53a7c4 hack(viewer): allow for loading assets load with data urls (data:img/png...) 2022-08-15 08:56:44 +03:00
Dimitrie Stefanescu a300ac4385 Merge branch 'alex/viewer-redux' into dim/viewer-redux 2022-08-14 10:55:42 +03:00
Dimitrie Stefanescu ff37cf8e1d Merge branch 'alex/viewer-redux' into dim/viewer-redux 2022-08-14 10:52:35 +03:00
AlexandruPopovici 7ebd96fe44 Fixed an issue where filtered objects were incorrectly ignored by the section planes 2022-08-12 17:15:08 +03:00
AlexandruPopovici 28989a622c #Integration: Added OVERLAY filter material type. Changed the SELECT filter material color to speckle blue. Fixed amn issue where some materal colors weren't linear 2022-08-12 17:07:47 +03:00
AlexandruPopovici 66cd68077d #Integration: Implemented getViews and setViews at viewer API level. They still use the old 'way of working' but changing that will be trivial, since views are now part of the world tree liek everything else. Implemented canonical views, implemented screenshot. All of these are controllable from the sandbox for testing 2022-08-12 16:34:04 +03:00
AlexandruPopovici 3e194deb15 #Integration Added view3D parsing to the world tree and render tree 2022-08-12 15:07:37 +03:00