Display a LOD tree, whose node is a compressed osgjs data group.
-
openg
index.htmlwith chrome to see the model. -
Change the
dataPathin./js/index.jsto use another set of data.
uuid: uuid for this set of lod datadataPath:dataPath+fileName-> tile file path- root tile
fileName
- center longitudee, latitude, altitude
- center x, y, z (for CGCS2000, beijing84 etc.)
orientation: a quaternion vector (x, y, z, w), default (0, 0, 0, 1). After applying this rotation, the up direction is (0, 0, 1), east (1, 0, 0), north (0, 1, 0).position: (x, y, z), default (0, 0, 0). An offset from the obj space, for display.scale: (x, y, z), default (1, 1, 1)
-
In localStorage,
FOREST_CAPACITYdefines the total number of lod nodes in scene. The larger the number, more 3D details will be displayed. -
In localStorage,
CACHE_CAPACITYdefines the number of cached nodes. This number must be larger thanFOREST_CAPACITYto normally display. -
osgInfo::maxLeveldefines the max depth of the lod tree. More depth grants more details, but need to wait longer for downloading.