Reference
Migration Guide
get clippingVolume
fromSpeckleRenderer
now returns anOBB
set clippingvolume
fromSpeckleRenderer
now accepts bothBox3
andOBB
- all intersection methods from
Intersections
now accept bothBox3
andOBB
as bounds argument expandBoxRelative
fromWorld
now accepts both aBox3
and aOBB
requestUpdate
fromSectionOutlines
extension now takes an optionalforce
argument that forces an update
Loader
’sresourceData
changed fromstring | ArrayBuffer
tounknown
to allow each loader to define it’s own resource data type
SmoothOrbitControls
’s constructor changed. It no longer takes aScene
andIntersections
, but only aSpeckleRenderer
Loader
’sresourceData
changed fromstring | ArrayBuffer
tounknown
to allow each loader to define it’s own resource data typeSmoothOrbitControls
’s constructor changed. It no longer takes aScene
andIntersections
, but only aSpeckleRenderer
- Entire rendering pipeline got a massive update and it now allows for free user customization as well as user defined passes
pipeline
accessors added toSpeckleRenderer
. This allows for user defined rendering pipelinespipelineOptions
accessors removed fromSpeckleRenderer
PipelineOutputType
removed. The pipeline’s result now depends on the pipeline’s pass configurationDynamicAOPassParams
and it’s default removedStaticAoPassParams
and it’s default removed and replaced byProgressiveAOPassOptions
- A series of pre-defined rendering passes as well as entire rendering pipelines have been added
Vector3
andBox3
have been removed from the viewer’s exports. They can now be imported from three.js
- All input mesh vertex colors are now treated as sRGB
NearCameraCalculation
type option added toCameraController
option.UpdateFlags.RENDER
no longer resets pipeline. AddedUpdateFlags.RENDER_RESET
which forces a pipeline reset
- Added
tasOnly
as a parameter in allintersect
variants. - The existing
firstHitOnly
option onRaycaster
now stops on first intersected TAS, asa well as first intersected BAS from that TAS (iftasOnly
is not set)
Vector3Like
replacesVectorLike
in the arguments oftransformTRS
inBatchObject
SpeckleLoader
no longer takes apriority
argument in it’s constructoraddRenderTree
fromSpeckleRenderer
now takes aRenderTree
as an argument instead of aRenderTree
idgetRenderTree
is now overloaded with a version with no arguments that never returns nullintersect
andintersectRay
arguments have been moved around and both are now overloaded
- Asset now has a mandatory
id
field getEnvironment
andgetTexture
fromAssets
now only acceptAsset
as argument- The concept of
Providers
has been removed entirely CameraProvider
has been replaced bySpeckleCamera
CameraControllerEvent
renamed toCameraEvent
updateClippingPlanes
inSpeckleRenderer
does not take an optionalPlane[]
argument anymoresetOptions
fromSelectionExtension
has changed to an accessordisplayOn
anddisplayOff
fromSectionTool
are replaced byvisible
accessor
The introduction of viewer API 2.0 into our stable channel. The changes to the API itself are extensive and there is no point for a step by step guide, as what was previously known as API 2.0 will become the single supported viewer API moving forward.