Open fnorf opened 8 years ago
What I find more problematic than zooming in is zooming out. Consider this example: https://oc.bgc.mpg.de/public.php?service=files&t=7c58a90ecd4b705d0514a51e2a9e5159 Open test.html and zoom out quite far (also helps if initially the model is not in the picture) and enable autorotation by pressing 'R'. There is a lot of noise in the forest areas because the three.js version used by Qgis2threejs v.1.4.2 just uses the nearest neighbour method for texture filtering.
This can be improved simply by switching to the latest version of three.js. To try it yourself, do the following:
It would be great if the current version of three.js would be used by the next release of Qgis2threejs.
@tadaa3x , what build of Three.js did you update to? I just tried throwing the current version into my source files (r84) and hit errors upon building my DEM.
I did some testing and discovered that the problem manifests with DEM layers that are clipped to a polygon.
r74 throws these errors when run with a clipped DEM.
The current, r84, build runs fine so long as the DEM is not clipped.
I looked around but could not find an option to set the filtering of the textures, is there such feature? If not, I would like to hereby request it. ;)
It would allow close zooming to look less pixelated if that is desired.
http://threejs.org/examples/webgl_materials_texture_filters.html