Open LovroLKP opened 2 years ago
app.cameraAction.orbit()
changes target point (See https://github.com/minorua/Qgis2threejs/blob/v2.6/js/Qgis2threejs.js#L1233). Use app.setRotateAnimationMode(true);
instead of app.cameraAction.orbit();
.
THANK YOU! I knew there has to be a call in existing code to do that...:)
Dear contributors, this is more of a question then an issue. I am trying to make the html export Orbit by default. I tried the simplest option of just adding the "app.cameraAction.orbit" call in the script of index.html file. It works alright BUT it "forgets" the chosen export Viewpoint (It starts orbiting around the base, the bottom of the cube, not the surface of the terrain).
Is there a SIMPLE way of calling back the viewpoint (lookAt:) just in the html file, without going too deep into the .js files?
The files were exported with v2.5, I tested it with updated plugin, v2.6 - same issue...
Any help would be much appreciated! Lovro