Skip to content

v2.4.0

Choose a tag to compare

@gotoeasy gotoeasy released this 28 Dec 14:43
· 82 commits to main since this release
  • Added support for large-scene rendering using preset LOD.

Demo:
https://reall3d.com/reall3dviewer/index.html?url=https://reall3d.com/demo-models/lod-v1/hgd/hgd-lod.scene.json&debug=true
https://reall3d.com/reall3dviewer/index.html?url=https://reall3d.com/demo-models/lod-metas/hgd/hgd-lod-meta.scene.json&debug=true

This feature allows you to define the desired Level of Detail (LOD) behavior by configuring parameters in the *.scene.json file. You can specify the URL to the pre-processed LOD data file (*.lod.json or lod-meta.json), LOD levels, switching distances, cache limits, and maximum render counts. Separate configurations for desktop (PC) and mobile platforms are supported.

Example *.scene.json configuration:

{
  "name": "preset-lod rendering",
  "version": "1.0",
  "debugMode": true,
  "autoRotate": false,
  "enableEnvironment": false,  // Enable or disable the skybox environment
  "pcLodTargets": [0, 4, 6], // Select specific LOD levels (e.g., 0~6) for use
  "pcLodDistances": [50, 100], // Distance thresholds for LOD switching
  "pcLodCacheCount": 50000000, // Maximum cache size
  "maxRenderCountOfPc": 3200000, // Maximum number of primitives to render
  "mobileLodTargets": [2, 5, 6], // Configuration for mobile
  "mobileLodDistances": [40, 100], // Configuration for mobile
  "mobileLodCacheCount": 6000000, // Configuration for mobile
  "maxRenderCountOfMobile": 2180000, // Configuration for mobile
  "url": "https://the/url/to/lod-meta.json", // URL to the pre-processed LOD meta file
  "cameraInfo": {
    "position": [-100, -200, 100],
    "lookUp": [0, 0, 1],
    "lookAt": [0, 0, 0]
  }
}