ThreeRenderManager

ThreeRenderManager

The three render manager is a view-side service with the public name "ThreeRenderManager". It creates a Three.js renderer, plus a default scene and camera. If you want to use the three render manager, add it as a service to your root view. Defining a pawn with the PM_ThreeVisible mixin will automatically be inserted the pawn's render object into the scene when the pawn is created. A pawn with the PM_ThreeCamera mixin will drive the camera using its location.

You can also add render objects to the scene directly (for example, lights), or change the settings of the renderer or camera.

Note: If you want the three render manager to automically resize the viewport, you must include the inputManager as well.

class MyViewRoot extends ViewRoot {
  static viewServices() { return [InputManager, ThreeRenderManager];}
}

Extends

  • ViewService