Thursday, March 7, 2019

State of TouchTerrain as of version 1.21

State of TouchTerrain 

Chris Harding, Sep. 18, 2018


Tell us about your project

Despite its relative simplicity TouchTerrain continues to grow in popularity since it went live in March 2017. At least that's what Google Analytics tells me. Besides that, we've heard from a number of people using it for cool projects ... but we only find out about those projects when something is broken :)

While that feedback is vital to improve (or fix) things, we would be delighted to hear from any cool project you're running, just so we can feel better (and also to have some material for justifying the ongoing development, slow it may be ...). So, if you're using the 3D models for say academic research, or teaching visually impaired students or presentations in a museum, and you feel inclined to say thanks to us, drop us a note.

Development summary (up to v.1.21)

Here's a quick summary of what I fixed/added since version 1.14
  1. Added region from kml file: The Web app has a Set Box from polygon in KML file button. Digitize an area as a polygon (some sort of box) in Google Earth and save it as a kml file (not kmz). Use the button to upload your kml file and the app will fill the top right and bottom left coordinates with a rectangle surrounding your polygon and fly you to this area.
  2.  Fixed aliasing artifacts (web and stand-alone): At least two users brought this issue to my attention, which manifested as subtle line patterns across the terrain. Even when noticeable in a 3D viewer,  usually they would not show up in the print (due to the 3D printing process). I guessed (correctly, as it turned out) that it was a resampling artifact but was initially not sure where in the process it was introduced. After some poking around I found that Google Earth Engine, which I tell to downsample and project the raster before downloading it for processing, is using nearest-neightbor resampling by default, which leads to these artifacts. Luckily, it's easy to tell it to use a better algorithm, either bi-cubic or bi-linear (which I'm using now). With this, the artifacts seem to have gone.
     
  3. Use full resolution (printres = -1) (stand-alone version with local raster files only): Unlike the web version, using local raster files with the stand-alone version does not yet have an easy way to use bi-linear interpolation. The current method,  uses some numpy trickery to performs the equivalent to nearest-neightbor resampling, again with the potential for aliasing artifacts. Until I find time to add better resampling I've added a way to create 3D models from the resolution of the raster file, i.e. with no down-sampling. This won't show any artifacts but may result in very large meshes.
  4. Added DEM to zipped folder: The geotiff I downlaod from Google Earth Engine is now included in the zipped folder you download from TouchTerrain, it's always called DEM.tif.


Finally a FYI:  you may encounter a dialog box with Google telling you "This page can't load Google Maps correctly". This happens because our server has been visited by too many users and Google recently (July 2018), requires that we pay them for usage over this limit. To be clear, this will only happen if we've exceeded the allowed free quota for the day (I think) and I've encountered it only once, late a night. If you get this dialog, press OK and move on. For our app, even the "ugly" version of the streetmap is usable for finding the region you want to print. The hillshade map is not affected by this.

16 comments:

  1. Google Maps appears to be broken now.

    ReplyDelete
  2. Hi,
    it seems to be impossible to download a terrain of our choice.
    I tried seceral options but after downloading the only thing that's showing is your default example.
    Regards,

    ReplyDelete
  3. DEM_name = USGS/GMTED2010
    trlat = 46.1042040743
    trlon = 10.3309589546
    bllat = 45.9206069869
    bllon = 9.99930917434
    printres = 1.5
    ntilesx = 3.0
    ntilesy = 2.0
    tilewidth = 200.0
    basethick = 1.0
    zscale = 1.0
    fileformat = obj
    [Errno 28] No space left on device: '/var/www/html/touchterrain/server/tmp/607704640092_dem.tif'

    I'm trying to print this valley and the surrounding mountains and I'd like to print it about 0,5mx0,5m. my printer is 300mmx300mm so i wanted to go with multytile. everything I try ends up with this error or saying the file is too big. what can I do?

    ReplyDelete
  4. What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. cnc router files

    ReplyDelete
  5. Friend, this web site might be fabolous, i just like it. Markforged 3D Printers

    ReplyDelete
  6. Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. 3dmodelmania.com/product-category/bed/

    ReplyDelete
  7. Admiring the time and effort you put into your blog and detailed information you offer!.. spur gears

    ReplyDelete
  8. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. 3D STL models

    ReplyDelete
  9. Such sites are important because they provide a large dose of useful information ... Design consultancy

    ReplyDelete
  10. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. ugears treasure box

    ReplyDelete
  11. Home of the weekend rental, our team is fast, efficient, courteous and passionate about having fun.​i thought about this

    ReplyDelete
  12. If you are passionate about what you do, you will have endless energy to devote.Where women outperform men

    ReplyDelete
  13. From traditional limos to classic rides, all our cars are of first-class quality with certified drivers for our client's safety.yourlimoride.com

    ReplyDelete