minorua / Qgis2threejs

3D map visualization and web export plugin for QGIS
http://minorua.github.io/Qgis2threejs/docs/
GNU General Public License v2.0
512 stars 91 forks source link

Image File not displaying / appearing on output HTML file #30

Open paulgeorgie opened 10 years ago

paulgeorgie commented 10 years ago

Hello Minoru,

I am currently endeavouring to use qgis2threejs to create a 3D visual using DSM and orthomosaic data captured using my unmanned aircraft system (UAS). Originally the plug-in seemed to work perfectly, as you can see by my results here: http://paulgeorgie.com/culzean.html

Having now updated the plug-in via the QGIS repository to version 0.7.2, I can no longer seem to get it to work. The output HTML file still shows a 3D DSM however the orthomosaic is now just entirely black. Has anyone else encountered this problem? Is it related to the amount of data I'm trying to process perhaps? Or the plug-in? Or my hardware?

As for hardware, my desktop is currently running Windows 8.1 on an i7-5820k (Haswell-e) CPU with 32Gb DDR4 RAM and Powercolor Radeon R9 290X 4096MB GDDR5 Graphics Card. My Asus Zenbook also encountered the same issue.

See screenshot below:

qgis2threejs-error

Please let me know what you think! :) Many thanks in advance,

Paul

Also flagged here: https://gis.stackexchange.com/questions/119874/error-with-qgis2threejs-plug-in

paulgeorgie commented 10 years ago

please note: having un-installed / re-installed previous versions (0.7.0), this problem still persists on my system.

minorua commented 10 years ago

Hi @paulgeorgie, Which browser are you using?

paulgeorgie commented 10 years ago

Normally Chrome, but have also used Firefox and IE to test...all same results. Just for some more info: the corresponding orthomosaic (.tif) I'm using (in the screenshot) is roughly 13k*13k pixels which works out as just over 100Mb in size.

paulgeorgie commented 10 years ago

I've also now tried warping the orthomosaic in QGIS [Raster-->Projections-->Warp] to a far lower resolution (closer to the DSM resampling of around 1k * 1k) however frustratingly, the problem seems to persist.

minorua commented 10 years ago

It may be because of the image format. Tested with some image formats: png, jpg, gif and bmp are OK. But the model gets black with tif, which is not supported by the web browser. http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support

paulgeorgie commented 10 years ago

Usingf QGIS [RASTER] --> [CONVERSION] --> [TRANSLATE]; I was ablt to convert the orthomosaic (.tif) file to both .png and .jpg using the same SRS as the DSM.

Although this helped the orthomosaic to display, it now no longer aligns with the 3D DSM (see screenshot below).

qgis2threejs-error2