Comments (5)
[zmin - zrange * 0.1, zmax + zrange * 0.1]
might be better than [zmin - 500, zmax + 1000]
.
https://github.com/minorua/Qgis2threejs/blob/master/js/dat-gui_panel.js#L93
from qgis2threejs.
Dear Akagi Minoru,
yes, I think that would be a good solution. Do you change it in the next release of Qgis2threejs? In addition, it would be nice if there was a parameter, with which you could specify the increment of the slider. For example, in a flat terrain in decimetres instead of meters.
Thank you very much!
Best regards
Joachim
from qgis2threejs.
Do you change it in the next release of Qgis2threejs?
Yes. I will change it.
In addition, it would be nice if there was a parameter, with which you could specify the increment of the slider. For example, in a flat terrain in decimetres instead of meters.
It would be preferable to create a new template that has menu bar, layer panel and properties dialogs (like WebGISLab app).
from qgis2threejs.
if you need those changes fast, you could do a dirty hack, like I did:
you have to open the created "dat-gui_panel.js" and jump to the line:
// Plane height
folder.add(parameters.cp, 'd').min(zMin).max(zMax)......
here you can simply insert your own values for zMin and zMax (which would be 30 for zMin and 32 for zMax in your case)
for setting the increment you can add step(value)
. to get centimeters you would set the value to 0.01.
the last part is updating the displayed numbers to float, this is done by adding listen()
and changing the value d
to a float value like 0.01
. this is a workaround because of a bug in dat.gui
so your dirty hacked line should look like the following:
d: 0.01,
(can be found at the top of the file)
folder.add(parameters.cp, 'd').min(30).max(32).step(0.01).listen()......
this will allow you to set the height of the plane from 30 to 32m by 0.01 (=centimeters) increments and get the correct value displayed
I made a backup, so I can copy the line whenever I create new models with qgis3three.js
I hope this helps you and isn't considered spam, because this is my first post lol
greetz and sorry for my bad english
from qgis2threejs.
thank you for your help. Yes, i try it and it works! :-) Since it take part in a new release of Qgis2threejs, i will use your simple workaround for my projects.
best regards
Joachim
from qgis2threejs.
Related Issues (20)
- Point Cloud Export does not work HOT 1
- wish for a more elaborate label size
- animation of opacity gui bug HOT 1
- scale bar
- Clipping/cut plane tool
- QGIS crashes when rendering 3D Shape
- Geological Surface tries to get back to 0 feet DEM HOT 3
- AR View in iOS 16.x
- need of ellipsoid for tree crowns
- Add Attributes for DEM
- At what height will be Z-Polygon be rendered on the surface?
- The problem of polygon not being able to use specified height in the setting page.
- Python Exception: 'Q3DWebPage' object has no attribute 'wnd' HOT 2
- Export Group Frames to a GIF
- Plans to update exp_stereo
- iPad OS16
- My QGIS2threejs does not have a vertical exaggeration HOT 3
- Is there any possibility to group layers not just by their type?
- Animation issue or not? HOT 3
- Access a certain point of view (viewpoint) with greater precision HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis2threejs.