Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCRender::setCamera

Chapter 06.49 / 07Manual version v0.6.4English

Updates the camera used for rendering.

Supports both THREE.PerspectiveCamera and THREE.OrthographicCamera camera types.

Version Requirement

SDK v0.5.3+

Engine Support

Three.js

API

LCCRender::setCamera(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera): void

Parameters

ParameterTypeRequiredDefaultDescription
cameraTHREE.PerspectiveCamera / THREE.OrthographicCameraYes-The new camera object.

Return Value

void

Usage Example

const newCamera = new THREE.OrthographicCamera(-10, 10, 10, -10, 1, 1000);
LCCRender.setCamera(newCamera);

Notes

  • Can be used to switch between perspective and orthographic cameras.
  • LCCRender::load() — Loads LCC data.
  • LCCRender::update() — Updates LCCRender.

This chapter is from the official XGRIDS user manual. Official source (opens in a new tab) · Updated:

XGRIDS Türkiye

We're With You During Setup and in the Field

Atlıhan Harita provides training and technical support for device setup, firmware updates, software use, and field applications. Send us your question and our specialist will get back to you.

+90 216 546 0804