OcclusionCullingService

An occlusion culling service that helps to only refine tiles that are visible. This occlusion culling has a cost but allows downloading much less data. For models that have a lot of geometry that is often hidden from the camera by walls, this can greatly improve the frame-rate.

Constructor

new OcclusionCullingService()

Creates an Occlusion Culling service to be passed to OGC3DTile Tilesets

Methods

hasID(id)

check if the given tile ID was visible in the last rendered frame.
Parameters:
NameTypeDescription
idstring | Number
Returns:
true if tile is visible

setSide(side)

Parameters:
NameTypeDescription
sideIntegeruse THREE.FrontSide, THREE.BackSide or THREE.DoubleSide (FrontSide default)

update(scene, renderer, camera)

Update function to be called on every frame in the render loop.
Parameters:
NameTypeDescription
sceneTHREE.scene
rendererTHREE.Renderer
cameraTHREE.camera