Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::setMaxDistance

Chapter 06.28 / 07Manual version v0.6.4English

Sets the maximum rendering view distance.

A larger view distance provides better rendering results but increases performance overhead. Use this method to control rendering performance.

Version Requirement

SDK v0.4.0+

Engine Support

Three.js / CesiumJS

API

LCCObject::setMaxDistance(value: number): void

Parameters

ParameterTypeRequiredDefaultDescription
valuenumberYes200 (PC) / 100 (Mobile)View distance, in meters.

Return Value

void

Usage Example

lccObject.setMaxDistance(100);

Notes

  • This method can be called synchronously immediately after LCCRender.load().
  • This method only applies to LCC format; it is ignored when loading LCC2 format.
  • Starting from SDK v0.5.0, maxDistance automatically increases with the camera's altitude above the LCC model.
  • Typically used in conjunction with setMaxSplats().
  • LCCObject::setMaxSplats()
  • LCCObject::setMaxNodeSplats()

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