diff --git a/examples/3dtiles_basic.html b/examples/3dtiles_basic.html index c03c003dd7..947d48f412 100644 --- a/examples/3dtiles_basic.html +++ b/examples/3dtiles_basic.html @@ -32,7 +32,8 @@ var viewerDiv = document.getElementById('viewerDiv'); var view = new itowns.GlobeView(viewerDiv, placement); - view.camera.camera3D.near = 5; + var camera3D = view.getThreeJsCamera(); + camera3D.near = 5; setupLoadingScreen(viewerDiv, view); var menuGlobe = new GuiTools('menuDiv', view, 300); @@ -84,9 +85,9 @@ debug.create3dTilesDebugUI(menuGlobe.gui, view, $3dTilesLayerDiscreteLOD, d); debug.create3dTilesDebugUI(menuGlobe.gui, view, $3dTilesLayerRequestVolume, d); d.zoom = function() { - view.camera.camera3D.position.set(1215013.9, -4736315.5, 4081597.5); - view.camera.camera3D.quaternion.set(0.9108514448729665, 0.13456816437801225, 0.1107206134840362, 0.3741416847378546); - view.notifyChange(view.camera.camera3D); + camera3D.position.set(1215013.9, -4736315.5, 4081597.5); + camera3D.quaternion.set(0.9108514448729665, 0.13456816437801225, 0.1107206134840362, 0.3741416847378546); + view.notifyChange(camera3D); } menuGlobe.gui.add(d, 'zoom').name('Go to point cloud'); diff --git a/examples/3dtiles_pointcloud.html b/examples/3dtiles_pointcloud.html index 72d61ecf84..2225f90a60 100644 --- a/examples/3dtiles_pointcloud.html +++ b/examples/3dtiles_pointcloud.html @@ -15,7 +15,7 @@