Capítulo 587 de 859

Chapter 587: Projector

Core Idea

This class can project a given scene in 3D space into a 2D representation used for rendering with a 2D API. Projector is currently used by SVGRenderer and was previously used by the legacy CanvasRenderer.

Code Examples

import { Projector } from 'three/addons/renderers/Projector.js';
  • What it demonstrates: Typical usage of Projector.

Reference Tables

Constructor

Signature
new Projector()

Methods

MethodDescription
.projectScene( scene : Object3D, camera : Camera, sortObjects : boolean, sortElements : boolean ) : ObjectProjects the given scene in 3D space into a 2D representation. The result is an object with renderable items.

Key Takeaways

  1. Key methods: projectScene.

Connects To