How to Change "View Mode" and Configure Mouse Actions in Speckle Viewer

Hi @RafaelMayer

We’ve updated the docs with the new additions regarding the rendering pipeline API of the viewer.

There are two options when it comes to controlling the rendering pipeline:

You can work with pipelines directly, which can be as simple as:

const renderer = viewer.getRenderer()
/** Say if you want to disable edges/outlines */
const pipelineOptions = { edges: false } 
renderer.pipeline = new DefaultPipeline(renderer, pipelineOptions)

Alternatively you can use the ViewModes extension which simplifies the interfacing a bit and it’s also used by our web app

Some examples of working with the viewer rendering pipelines can be seen in the sandbox here where we also define a custom ad-hoc rendering pipeline

Cheers