Skip to main content

LCC for Web Manual · v0.6.3 · Page 37 of 68

LCCObject::setMaxDistance

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()

XGRIDS documentation, reproduced as published and captured on October 27, 2026. Read this page on docs.xgrids.com

Stuck on a Step?

QRC supports every scanner and software seat it sells. Send us the page you are on and we will walk you through it.

Contact Us
Request a Quote