Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, All is OK, now.It was my local webbrowser test plugin, that conflicted with your. :) Now, QGis2threejs works perfettly Thank you Roberto 2014/1/19 Geodrinx geodr...@gmail.com Inviato da iPhone Il giorno 19/gen/2014, alle ore 10:06, Minoru Akagi akagi...@gmail.com ha scritto: Hi Roberto, Is your python webbrowser module overlapped by something? For example, you have a plugin named webbrowser ? : ) Yes, I created a plugin named webbrowser ... :( So, this is the problem ! Otherwise, please try to set browser path in the setting dialog. Ok, thank you. I will inform you. Regards Roberto Regards, Minoru 2014/1/18 Geo DrinX geodr...@gmail.com: Hi Minoru , I taken QGis2threejs now from repository and I am testing on MacOSX. I had this: Traceback (most recent call last): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejsdialog.py, line 334, in run if not tools.openHTMLFile(htmlfilename): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejstools.py, line 128, in openHTMLFile webbrowser.open(htmlfilename, new=2)# new=2: new tab if possible AttributeError: 'module' object has no attribute 'open' Versione Python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] Also on Windows 7 I have the same… :( Tell me if you need more info to debug. Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, I have some other suggestion :) I am testing with more than one image and DTM files. I find that, in this case, it would be useful to have an automatic selector of the DTM or DSM layer (I don't know how, but, for example, it could be the layer that starts with DTM_) Other problem is: if there are more than one DTM_ layers, it could be possible to have together clipped in the output ? Or, only one is possible to have ? Thank you Ciao Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, with last master version I had this: Traceback (most recent call last): File C:\Users\rrr/.qgis2/python/plugins\Qgis2threejs\qgis2threejsdialog.py, line 324, in run htmlfilename = runSimple(htmlfilename, context, self.progress) File C:\Users\rrr/.qgis2/python/plugins\Qgis2threejs\qgis2threejsmain.py, line 211, in runSimple writeVectors(writer) File C:\Users\rrr/.qgis2/python/plugins\Qgis2threejs\qgis2threejsmain.py, line 445, in writeVectors geom_type = layer.geometryType() AttributeError: 'NoneType' object has no attribute 'geometryType' I have only a dtm tif in the layer list. Perhaps a vector is also needed ? Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Roberto, 2014/1/20 Geo DrinX geodr...@gmail.com: I have some other suggestion :) I am testing with more than one image and DTM files. I find that, in this case, it would be useful to have an automatic selector of the DTM or DSM layer (I don't know how, but, for example, it could be the layer that starts with DTM_) Sounds good. Other problem is: if there are more than one DTM_ layers, it could be possible to have together clipped in the output ? Or, only one is possible to have ? Only one. You should merge DTM files into one in advance or make use of vrt file. Thanks, Minoru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
if there are more than one DTM_ layers, it could be possible to have together clipped in the output ? Or, only one is possible to have ? Only one. You should merge DTM files into one in advance or make use of vrt file. If I well understand from documentation, a .vrt file is an xml index of many raster files. It is correct ? And QGis supports it, true ? I will try it as soon as possible :) Thank you for the great suggestion Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi, 2014/1/21 Geodrinx geodr...@gmail.com: if there are more than one DTM_ layers, it could be possible to have together clipped in the output ? Or, only one is possible to have ? Only one. You should merge DTM files into one in advance or make use of vrt file. If I well understand from documentation, a .vrt file is an xml index of many raster files. It is correct ? And QGis supports it, true ? I will try it as soon as possible :) Yes, works fine. Cheers, Minoru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Roberto, Is your python webbrowser module overlapped by something? For example, you have a plugin named webbrowser ? : ) Otherwise, please try to set browser path in the setting dialog. Regards, Minoru 2014/1/18 Geo DrinX geodr...@gmail.com: Hi Minoru , I taken QGis2threejs now from repository and I am testing on MacOSX. I had this: Traceback (most recent call last): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejsdialog.py, line 334, in run if not tools.openHTMLFile(htmlfilename): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejstools.py, line 128, in openHTMLFile webbrowser.open(htmlfilename, new=2)# new=2: new tab if possible AttributeError: 'module' object has no attribute 'open' Versione Python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] Also on Windows 7 I have the same… :( Tell me if you need more info to debug. Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Inviato da iPhone Il giorno 19/gen/2014, alle ore 10:06, Minoru Akagi akagi...@gmail.com ha scritto: Hi Roberto, Is your python webbrowser module overlapped by something? For example, you have a plugin named webbrowser ? : ) Yes, I created a plugin named webbrowser ... :( So, this is the problem ! Otherwise, please try to set browser path in the setting dialog. Ok, thank you. I will inform you. Regards Roberto Regards, Minoru 2014/1/18 Geo DrinX geodr...@gmail.com: Hi Minoru , I taken QGis2threejs now from repository and I am testing on MacOSX. I had this: Traceback (most recent call last): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejsdialog.py, line 334, in run if not tools.openHTMLFile(htmlfilename): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejstools.py, line 128, in openHTMLFile webbrowser.open(htmlfilename, new=2)# new=2: new tab if possible AttributeError: 'module' object has no attribute 'open' Versione Python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] Also on Windows 7 I have the same… :( Tell me if you need more info to debug. Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Do you know other/better solutions then raycasting? Maybe through shaders? I don't know... Minoru 2014/1/17 G. Allegri gioha...@gmail.com: Hi Minoru, I have another question for you :) I'm dong some tests to apply vector draping on top of the PlanarGeometry, i.e. positioning vector vertices on the terrain when they don't have z values. I've done a test with ray casting. Here a result which seems a caterpillar walking along our mountains :) https://dl.dropboxusercontent.com/u/13861666/2014-01-17%2011_27_15-firenze.png Do you know other/better solutions then raycasting? Maybe through shaders? giovanni 2014/1/17 Geodrinx geodr...@gmail.com Hi Minoru, Using QGIS API (QgsRasterDataProvider) in addition to GDAL API to support more data sources (1 band rasters) may be a good idea. Great ! :) Roberto Minoru 2014/1/16 Geo DrinX geodr...@gmail.com: Hi Minoru, You can do it with latest code on GitHub. https://github.com/minorua/Qgis2threejs I tested it :) I have an idea and a suggestion: if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be possible to use it to create 3D with your plugin? This would be a very useful feature :) Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giovanni Allegri http://about.me/giovanniallegri blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
2014/1/18 Minoru Akagi akagi...@gmail.com Do you know other/better solutions then raycasting? Maybe through shaders? I don't know... Ok, thanks. Next days I will fork your github repo to do some additions and push some pull requestes. giovanni ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru , I taken QGis2threejs now from repository and I am testing on MacOSX. I had this: Traceback (most recent call last): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejsdialog.py, line 334, in run if not tools.openHTMLFile(htmlfilename): File /Users/rrr/.qgis2/python/plugins/Qgis2threejs/qgis2threejstools.py, line 128, in openHTMLFile webbrowser.open(htmlfilename, new=2)# new=2: new tab if possible AttributeError: 'module' object has no attribute 'open' Versione Python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] Also on Windows 7 I have the same… :( Tell me if you need more info to debug. Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, I have another question for you :) I'm dong some tests to apply vector draping on top of the PlanarGeometry, i.e. positioning vector vertices on the terrain when they don't have z values. I've done a test with ray casting. Here a result which seems a caterpillar walking along our mountains :) https://dl.dropboxusercontent.com/u/13861666/2014-01-17%2011_27_15-firenze.png Do you know other/better solutions then raycasting? Maybe through shaders? giovanni 2014/1/17 Geodrinx geodr...@gmail.com Hi Minoru, Using QGIS API (QgsRasterDataProvider) in addition to GDAL API to support more data sources (1 band rasters) may be a good idea. Great ! :) Roberto Minoru 2014/1/16 Geo DrinX geodr...@gmail.com: Hi Minoru, You can do it with latest code on GitHub. https://github.com/minorua/Qgis2threejs I tested it :) I have an idea and a suggestion: if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be possible to use it to create 3D with your plugin? This would be a very useful feature :) Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giovanni Allegri http://about.me/giovanniallegri blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, You can do it with latest code on GitHub. https://github.com/minorua/Qgis2threejs I tested it :) I have an idea and a suggestion: if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be possible to use it to create 3D with your plugin? This would be a very useful feature :) Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Roberto, The way of getting elevation values from 3 or 4 bands image data seems a little strange. AFAIK, at least it is not common, and WCS is a more ordinary way to get elevation data through internet access. Using QGIS API (QgsRasterDataProvider) in addition to GDAL API to support more data sources (1 band rasters) may be a good idea. Minoru 2014/1/16 Geo DrinX geodr...@gmail.com: Hi Minoru, You can do it with latest code on GitHub. https://github.com/minorua/Qgis2threejs I tested it :) I have an idea and a suggestion: if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be possible to use it to create 3D with your plugin? This would be a very useful feature :) Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, Using QGIS API (QgsRasterDataProvider) in addition to GDAL API to support more data sources (1 band rasters) may be a good idea. Great ! :) Roberto Minoru 2014/1/16 Geo DrinX geodr...@gmail.com: Hi Minoru, You can do it with latest code on GitHub. https://github.com/minorua/Qgis2threejs I tested it :) I have an idea and a suggestion: if a level was a WMS PNG24 or PNG32 of a DTM, do you think it would be possible to use it to create 3D with your plugin? This would be a very useful feature :) Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
I've no time now to to test plugin, but my recent experience creating a complex plugin [1] where are interacting qgis-python plugin-QtWebView(based on QWebKit or other rendering engine), let me say that should be a great improvement if 3d is displayed in a QWebView allowing interaction (signal and data exchange) with qgis and the 3d view. my plugin was inspired by a secret work that a friend did in Brighton hackfest... a really simple plugin to show data in D3... but he never published it :(... that ideas are applied in my plugin, but mine is something really complex and without didactic purpose. ciao ginetto [1] still in development but already stable: rt_geosisma_offline in faunalia repo or https://github.com/faunalia/rt_geosisma_offline On 7 January 2014 23:18, G. Allegri gioha...@gmail.com wrote: Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. I tested now, but I had: Sorry, your browser doesn't seem to support WebGL :( I've been following the evolution of WebGL support by Webkit since a lot of time. Yet it's supported on few platforms, while it would require a custom build to enable it in many others (with high chance to not succeed!). For the moment it doesn't seem to be an option for a wide adoption... A positive note is the growing support on mobile browsers. Here a screenshot on my Nexus with Firefox: https://www.dropbox.com/s/couti1041gx2f5m/13891324843560.jpg Touch navigation workd smoothly. Thanks Minoru for this plugin. I had planned to develop something similar. Now I will move to your code and (hopefully) I will try to contribute to it ;) giovanni ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
2014/1/2 Minoru Akagi akagi...@gmail.com: It seems that 3D html model has exagerated height. True ? Yes, it is exaggerated (x 1.5) currently. Can we set the value in the form ? For me, it's not enough :) ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. I tested now, but I had: Sorry, your browser doesn't seem to support WebGL :( I've been following the evolution of WebGL support by Webkit since a lot of time. Yet it's supported on few platforms, while it would require a custom build to enable it in many others (with high chance to not succeed!). For the moment it doesn't seem to be an option for a wide adoption... A positive note is the growing support on mobile browsers. Here a screenshot on my Nexus with Firefox: https://www.dropbox.com/s/couti1041gx2f5m/13891324843560.jpg Touch navigation workd smoothly. Thanks Minoru for this plugin. I had planned to develop something similar. Now I will move to your code and (hopefully) I will try to contribute to it ;) giovanni ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
2014/1/8 Etienne Trimaille etienne.trimai...@gmail.com: 2014/1/2 Minoru Akagi akagi...@gmail.com: It seems that 3D html model has exagerated height. True ? Yes, it is exaggerated (x 1.5) currently. Can we set the value in the form ? For me, it's not enough :) You can do it with latest code on GitHub. https://github.com/minorua/Qgis2threejs Minoru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, First of all, many thanks for your plugin. As I use Mac OS X and the QGIS version of Kyngchaos, the path of gdalwarp is /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp but this QGIS version does not recognize the PATHs defined in the UNIX environment of MAC OS X ie: export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH which gdalwarp /Library/Frameworks/GDAL.framework/Programs/gdalwarp So I had to make some changes in your qgis2threejs.py script to run on Mac OS X with this version of QGIS. I know that you can not change your script for a specific case but I hope that this will help Mac users who want to use your plugin. General: -- The os.system() works but it is marked as deprecated in the doc , so I use the Python module subprocess to make the job (as in Processing or the old Sextante) and it works: original line 185 os.system(cmd.encode(fsenc)) my solution: proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT) proc.stdout.read() (subprocess.check_call(cmd,shell=True) does not work ) Specific to Mac OS X: - - I change the line 182 cmd = gdalwarp + u .join(options) in cmd = /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp + u .join(options) - and I have removed the conditional statement #if not os.path.exists(demfilename): # - the same with line 160 which becomes: #options.append(--config GDAL_FILENAME_IS_UTF8 NO) - a final command which works is, for example: /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp -r bilinear -te 201132.706856 87080.384980 206579.284551 91865.013464 -ts 214 188 -t_srs EPSG:31370 /Users/Shared/Dropbox/my.asc /var/folders/vu/vu099NovH-KZpE5TEa83BU+++TI/-Tmp-/dem20140101164100.tif Cosmetic --- As I still use Snow Leopard version (witch uses Python 2.6, I know, I know, it is old, but...), the line 48 locale= localePath = os.path.join(plugin_dir, 'i18n', 'qgis2threejs_{}.qm' becomes localePath = os.path.join(self.plugin_dir, 'i18n', 'qgis2threejs_{0}.qm'.format(locale)) (working with Python 2.6.x and 2.7.x versions) -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Qgis2threejs-suggestions-tp5095871p5096206.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi gene, I'm sorry for the inconvenience, and thank you for your concrete report. I've changed the plugin code to do DEM warp with gdal.ReprojectImage instead of gdalwarp program to store warped DEM data in memory raster, so it may work in also Mac OS X, I guess. I will also fix the other issue. Feel free to comment about the plugin. Thanks, Minoru 2014/1/3 gene martin.lal...@gmail.com: Hi Minoru, First of all, many thanks for your plugin. As I use Mac OS X and the QGIS version of Kyngchaos, the path of gdalwarp is /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp but this QGIS version does not recognize the PATHs defined in the UNIX environment of MAC OS X ie: export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH which gdalwarp /Library/Frameworks/GDAL.framework/Programs/gdalwarp So I had to make some changes in your qgis2threejs.py script to run on Mac OS X with this version of QGIS. I know that you can not change your script for a specific case but I hope that this will help Mac users who want to use your plugin. General: -- The os.system() works but it is marked as deprecated in the doc , so I use the Python module subprocess to make the job (as in Processing or the old Sextante) and it works: original line 185 os.system(cmd.encode(fsenc)) my solution: proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT) proc.stdout.read() (subprocess.check_call(cmd,shell=True) does not work ) Specific to Mac OS X: - - I change the line 182 cmd = gdalwarp + u .join(options) in cmd = /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp + u .join(options) - and I have removed the conditional statement #if not os.path.exists(demfilename): # - the same with line 160 which becomes: #options.append(--config GDAL_FILENAME_IS_UTF8 NO) - a final command which works is, for example: /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdalwarp -r bilinear -te 201132.706856 87080.384980 206579.284551 91865.013464 -ts 214 188 -t_srs EPSG:31370 /Users/Shared/Dropbox/my.asc /var/folders/vu/vu099NovH-KZpE5TEa83BU+++TI/-Tmp-/dem20140101164100.tif Cosmetic --- As I still use Snow Leopard version (witch uses Python 2.6, I know, I know, it is old, but...), the line 48 locale= localePath = os.path.join(plugin_dir, 'i18n', 'qgis2threejs_{}.qm' becomes localePath = os.path.join(self.plugin_dir, 'i18n', 'qgis2threejs_{0}.qm'.format(locale)) (working with Python 2.6.x and 2.7.x versions) ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Minoru, before all, happy new year :) Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Regards Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Minoru, Other argument: in this image, on the left you can see GoogleEarth, and on the right the threejs.html : https://drive.google.com/file/d/0Bwg_m86uaXY1QVVGVnJmMlBfOEk/edit?usp=sharing It seems that 3D html model has exagerated height. True ? Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
2014/1/2 Geo DrinX geodr...@gmail.com: Minoru, Other argument: in this image, on the left you can see GoogleEarth, and on the right the threejs.html : https://drive.google.com/file/d/0Bwg_m86uaXY1QVVGVnJmMlBfOEk/edit?usp=sharing It seems that 3D html model has exagerated height. True ? Yes, it is exaggerated (x 1.5) currently. Minoru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Roberto, Happy new year to you, too. : ) 2014/1/2 Geo DrinX geodr...@gmail.com: before all, happy new year :) Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. Regards, Minoru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. I tested now, but I had: Sorry, your browser doesn't seem to support WebGL :( But, test it yourself, also. Who knows if you have some magical settings on your machine... Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Minoru, this is my ( experimental starting ) test plugin for webbrowser: https://drive.google.com/file/d/0Bwg_m86uaXY1ZWstOWZ3aER2cDQ/edit?usp=sharing Simply, drag and drop a url link inside the web view. For example: http://opensciencemap.org/map/#scale=12,rot=0,tilt=65,lat=42.3502,lon=13.3988 and you will have the message: Sorry, your browser doesn't seem to support WebGL How to discover what browser is used by Qt ? I will investigate ... Roberto 2014/1/2 Geo DrinX geodr...@gmail.com Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. I tested now, but I had: Sorry, your browser doesn't seem to support WebGL :( But, test it yourself, also. Who knows if you have some magical settings on your machine... Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
... it seems to be WebKit.Who knows if it loads WebGL on other platforms, different from Windows ? 2014/1/2 Geo DrinX geodr...@gmail.com Minoru, this is my ( experimental starting ) test plugin for webbrowser: https://drive.google.com/file/d/0Bwg_m86uaXY1ZWstOWZ3aER2cDQ/edit?usp=sharing Simply, drag and drop a url link inside the web view. For example: http://opensciencemap.org/map/#scale=12,rot=0,tilt=65,lat=42.3502,lon=13.3988 and you will have the message: Sorry, your browser doesn't seem to support WebGL How to discover what browser is used by Qt ? I will investigate ... Roberto 2014/1/2 Geo DrinX geodr...@gmail.com Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. I tested now, but I had: Sorry, your browser doesn't seem to support WebGL :( But, test it yourself, also. Who knows if you have some magical settings on your machine... Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
perhaps, this can be useful: http://trac.webkit.org/wiki/QtWebKitWebGL 2014/1/2 Geo DrinX geodr...@gmail.com ... it seems to be WebKit.Who knows if it loads WebGL on other platforms, different from Windows ? 2014/1/2 Geo DrinX geodr...@gmail.com Minoru, this is my ( experimental starting ) test plugin for webbrowser: https://drive.google.com/file/d/0Bwg_m86uaXY1ZWstOWZ3aER2cDQ/edit?usp=sharing Simply, drag and drop a url link inside the web view. For example: http://opensciencemap.org/map/#scale=12,rot=0,tilt=65,lat=42.3502,lon=13.3988 and you will have the message: Sorry, your browser doesn't seem to support WebGL How to discover what browser is used by Qt ? I will investigate ... Roberto 2014/1/2 Geo DrinX geodr...@gmail.com Then, with the new year, I had an idea: what do you think of a QT window inside QGIS, which displays the 3D html page ? Could it be doable ? Do you have just tested ? Interesting, but I have not tested it yet. I tested now, but I had: Sorry, your browser doesn't seem to support WebGL :( But, test it yourself, also. Who knows if you have some magical settings on your machine... Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Il 31/12/2013 09:52, Geo DrinX ha scritto: Hello Minoru, Your Qgis2threejs is great ! Hi, a quick test on Debian showed a blank page on Iceweasel, and a couple of (movable) grey polygons on a blue background on Chromium. Possibly a missing lib, or missing webgl support? Any hint? All the best. -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Roberto, Thank you for your suggestions. 2013/12/31 Geo DrinX geodr...@gmail.com: The only thing that I find to be improved is the fact that it opens a new web page, and that is opened in QGis an information panel on which (if any) choose the DEM layer. For me, the panel should be confined in a panel on Settings, and instead the function must be called directly (and using the same web page) Sure, with this, everything would be (even more) immediate and amazing. I will increase the number of items in the dialog. I have already implemented multiple resolution output that has both detailed close view and rough distant view, and would like to challenge vector data output. I think it is good to provide an option to output simple one by 1-click from the toolbar button so that user can preview easily. I will also consider an option to open page in existing tab. Also I suggest to use a temporary directory inside the plugin directory, as in my GEarthView plugin. I'll consider it. If you have some reasons that temporary directory inside the plugin directory is better than system temporary directory, please tell me. Regards, Minoru ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Hi Paolo, Can you view a sample page linked from README [1]? WebGL support is required. A list of browsers that support WebGL is on Wikipedia page [2]. Regards, Minoru [1] https://dl.dropboxusercontent.com/u/21526091/qgis-plugins/samples/threejs/mt_fuji.html [2] http://en.wikipedia.org/wiki/WebGL 2013/12/31 Paolo Cavallini cavall...@faunalia.it: Il 31/12/2013 09:52, Geo DrinX ha scritto: Hello Minoru, Your Qgis2threejs is great ! Hi, a quick test on Debian showed a blank page on Iceweasel, and a couple of (movable) grey polygons on a blue background on Chromium. Possibly a missing lib, or missing webgl support? Any hint? All the best. -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
I will increase the number of items in the dialog. I have already implemented multiple resolution output that has both detailed close view and rough distant view, and would like to challenge vector data output. I think it is good to provide an option to output simple one by 1-click from the toolbar button so that user can preview easily. I will also consider an option to open page in existing tab. Great! :) Also I suggest to use a temporary directory inside the plugin directory, as in my GEarthView plugin. I'll consider it. If you have some reasons that temporary directory inside the plugin directory is better than system temporary directory, please tell me. Simply, I know where it is :) Thank you for the immediate answer Roberto ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis2threejs suggestions...
Il 31/12/2013 11:39, Minoru Akagi ha scritto: Can you view a sample page linked from README [1]? not in fact WebGL support is required. A list of browsers that support WebGL is on Wikipedia page [2]. ok - perhaps better warn the user at some stage? all the best. -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer