qgis-midvatten-plugin
qgis-midvatten-plugin copied to clipboard
Visualisation in QGIS 3D view?
Dear Sir/Madam,
I have a question regarding your plans for the future. Do you seek to integrate the data visualization using the 3D view in QGIS 3 instead Qgis2threejs ? Would it be possible? Thank you and kind regards, Klaus
Hi!
We have started to convert the plugin to QGIS3 and will probably be done during fall 2018. After that we will have a look at the 3D-features in QGIS3 and if its better than Qgis2threejs for our needs we will adjust the Midvatten plugin for it. If it's worse than Qgis2threejs for our needs, then it will be a low priority feature most probably.
Regards, Henrik
2018-06-18 9:13 GMT+02:00 kmithof [email protected]:
Dear Sir/Madam,
I have a question regarding your plans for the future. Do you seek to integrate the data visualization using the 3D view in QGIS 3 instead Qgis2threejs ? Would it be possible? Thank you and kind regards, Klaus
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jkall/qgis-midvatten-plugin/issues/270, or mute the thread https://github.com/notifications/unsubscribe-auth/AQzJIeqGrfDvhGMs6hd9iwWRLlL3qvWfks5t91MUgaJpZM4UrQRg .
-- Henrik Spångmyr Midvatten AB Borganäsvägen 46 784 33 Borlänge Mobil: 070-5607879 Växel: 0243-87620
Hi HenrikSpa,
Wondered how things were going with the QGIS3 migration and review in inbuilt 3D capability?
Kind regards,
Edd
The migration in branch qgis3 is almost in beta state now! There are only some minor things left to fix before it can be used for the daily work. Some bugs will certainly appear when all the features are tested but I dont't know of any game breaking bugs at the moment. I have't started to look at how the 3D features of QGIS yet.
Some thoughts on QGIS 3D:
- It looks like it's not that much work to adjust to the QGIS 3d view using most of the code from Prepare for Threejs.
- We can only use one DEM from what I can see. Due to this, we would have to choose between ground surface or bedrock. Threejs support more than one (and with transparency this is really nice!).
Some thoughts:
- Setting data defined (attribute based) height and extrusion doesn't seem to be available for points, but is available for polygons.
- This means that the current point based views we use not for Threejs doesn't work with the 3d-view and we would have to make buffer polygons around the points instead.
- In a Spatialite view we have to use an existing geometry (I think) so we can't create buffers on the fly in the view. We have to create a new table with polygon geometry and fill that using the same select that creates the current strat_* views.
- However, creating buffers in views works for PostGIS so PostGIS is almost plug and play for this (except that I haven't converted the Prepare for Threejs function for PostGIS yet).
- I haven't yet found the QGIS API to set the 3d-symbology (height and extrusion) yet but using QML-styles like we do today might be the best way anyway.
- One big advantage for the 3d view is that it's MUCH easier for the user to use it. One button and it's on!
Aha!
- One way to do it might be to make the strat_obs_p_for_qgsi2threejs view into a table with polygon geometry.
- We could add triggers to obs_points tha keep the strat_obs* table updated.
- Whenever an obsid is inserted/updated/deleted the same request would be sent to strat_obs* but with the geometry turned into a buffer polygon.
- All other strat_* would be views like they are today, but using geometry from strat_obs* .
Will it still be possible to have a look on the sub-terrain? That is a critical, and since long requested, feature of qgis2threejs: http://osgeo-org.1560.x6.nabble.com/Updating-qgis2threejs-td5129113.html#a5129223
As a result of discussions, under-ground exploration was enabled by an option in qgis2threejs: https://github.com/minorua/Qgis2threejs/issues/12
Den fre 22 mars 2019 08:49HenrikSpa [email protected] skrev:
Aha!
- One way to do it might be to make the strat_obs_p_for_qgsi2threejs view into a table with polygon geometry.
- We could add triggers to obs_points tha keep the strat_obs* table updated.
- Whenever an obsid is inserted/updated/deleted the same request would be sent to strat_obs* but with the geometry turned into a buffer polygon.
- All other strat_* would be views like they are today, but using geometry from strat_obs* .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jkall/qgis-midvatten-plugin/issues/270#issuecomment-475524404, or mute the thread https://github.com/notifications/unsubscribe-auth/AF6xbHD8ro7cS1dpRQaW6P_5KbkxZYRtks5vZIsWgaJpZM4UrQRg .
From what I can see using the 3D-view, the camera center is always located at the dem (it climbs hills and follow the dem down into depressions). I haven't found any mechanism to move the camera center below ground.
It does seem to allow transparency for the dem layers though, so one could probably look at the stratigraphy from an angle.
From above (no transparency):
From below (no transparency):
So one can look below ground, but always towards the dem.
An update on this issue:
The Qgis2threejs-plugin is really, really excellent now! If features a preview-window much like the QGIS 3D-view. It even redraws automatically when using zoom and pan in the QGIS window!
Supporting QGIS native 3D-view is a very low priority at the moment because of Qgis2threejs.