GithubHelp home page GithubHelp logo

Comments (5)

minorua avatar minorua commented on May 2, 2024

[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.

jodeutmann avatar jodeutmann commented on May 2, 2024

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.

minorua avatar minorua commented on May 2, 2024

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.

koric2 avatar koric2 commented on May 2, 2024

@jodeutmann

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.

jodeutmann avatar jodeutmann commented on May 2, 2024

@koric2

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.