Commit Graph

14 Commits

Author SHA1 Message Date
AlexandruPopovici cc8580b8da #828 Eliminated the redundant position attributes for the line geometries. Like for meshes, re-used the original position attributes as the high parts of our encoding 2022-07-27 22:54:45 +03:00
AlexandruPopovici 3ca2d08e18 #828 Implemented the SpeckleMesh which extends three's Mesh and corrects the raycasting implementation to work with the positions encoded as pairs of lows and highs 2022-07-27 21:46:03 +03:00
AlexandruPopovici 9e7c80bb4f #828. Added controlled update and render loops which propagate throught the viewer library 2022-07-27 15:09:46 +03:00
AlexandruPopovici 453e83e515 #827 Implemented the colored material (used when filtering by non-numeric properties) for lines as well. 2022-07-26 23:10:52 +03:00
AlexandruPopovici f706efc875 #828. Removed unused code from Geometry. Corrected the types for the position attribute underlying typed array. Removed duplicate code 2022-07-26 10:46:54 +03:00
AlexandruPopovici a4fa7bb4dd #811 Implemented conveniene method for isolating objets visually, where all other objects are ghosted, like the effect should look like. Fixed an issue with Brep conversion 2022-06-28 11:41:45 +03:00
AlexandruPopovici 51596d81b4 Fixed some remaining issues with the filtering API. Made transparent materials to not write to the depth buffer so we don't get false depth test fails. We will see in the future if we want to treat transparent objects differetly, however for now it's going to be fine 2022-06-27 18:51:52 +03:00
AlexandruPopovici 7840591672 #811 Separated batch aut filling draw ranges as a separate function. This will allow sequential calls to set different draw ranges with different materials sequentially for the filtering API 2022-06-24 16:44:31 +03:00
AlexandruPopovici 923e835c54 #811 Added the the unload functionality, so we can load/unload stuff in the sandbox. It's currently a bit leaky but we'll fix that. Also we currentyl don;t support multiple paralel streams to be loaded in. I first want to make sure things work properly for 1 stream before having multiple at the same time 2022-06-24 14:20:27 +03:00
AlexandruPopovici 499653d983 #811 Started taking the axe on a lot of legacy code which became obsolete after redux Stage 2. Turned ViewerObjectLoader to typescript and started moving a lot of stuff from viewer to a new class, SpeckleRenderer, which will centralize and handle a lot of stuff 2022-06-21 00:58:20 +03:00
AlexandruPopovici 11a429f9ca #783 Implemented Point and PointCloud speckle type support for batching and everything else. 2022-06-20 16:39:51 +03:00
AlexandruPopovici dad9acb3e9 #783 Implemented visibility ranges for line batches 2022-06-18 00:07:56 +03:00
AlexandruPopovici 60536592a4 #783 Implemented visible range for batches. Required when wanting to isolate/hide/don't show stuff. Only implemented it for the mesh batch type for now. Line batch is next 2022-06-17 19:07:10 +03:00
AlexandruPopovici d508eb6d5b #783. Implemented separate materal draw ranges for the line batches. Added the Batch common interface and separate the MeshBatch from the LineBatch, both implementing the Batch interface. Selection now works properly for both meshes and lines 2022-06-16 19:40:32 +03:00