.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT > Campaigns, Scenarios & Maps
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old December 25th, 2015, 03:20 PM

dmnt dmnt is offline
Sergeant
 
Join Date: Jan 2010
Location: Espoo, Finland
Posts: 359
Thanks: 56
Thanked 136 Times in 104 Posts
dmnt is on a distinguished road
Default Re: Height Maps

Quote:
Originally Posted by wulfir View Post
Quote:
Originally Posted by dmnt View Post
It's now reworked so that it will use Google API for terrain data but Google limits the amount of requests so please don't use it too much.
What is 'too much'?
Google has the following limit enforced: https://developers.google.com/maps/d...n/usage-limits

2500 elevation API requests per day, 512 locations per request (we're using 480 per request) and 10 requests per second.

Every map has 31284 hexes to fill and it needs 66 requests per map. Therefore, my site can give you 37 map downloads per day, no more, unless I start paying google for the service. If you need more (like you created 40 maps a day... ) you can always download the code yourself from https://github.com/tvenhola/SPMBT-maps - it's free as in beer - and try it out. You need to apply your own Google developer API key, free of charge.

The new version that uses Google API isn't yet documented in the README (so it's not mentioned on the github page) but it's a completely new approach: no downloading of satellite data files, no need to install image magick and no west-east constraint, but you need the Google api key. And still Linux or some way to make it work under Windows.

Requires: Perl, some Perl libraries such as libcurl-perl.

Map output will do some automagic stuff which should be mentioned in the user manual:
  • The lowest point on map will be made "level 0"
  • If anything is over 150 meters high from the lowest point, it's clipped
  • Resolution may be poor, Google API gives lowest resolutions of "152 meters" for my neighborhood: that means that the distance between points of interpolation may be up to 3 hexes away and the result is lacking detail.
  • At some points it may be overspecific, giving resolution between 2-8 meters. Then the point selected on map may affect too much the hex by picking some random rooftop or excavation and not the general terrain. If this happens, I'll give your money back.
Reply With Quote
The Following User Says Thank You to dmnt For This Useful Post:
  #2  
Old February 25th, 2016, 08:18 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,408
Thanks: 103
Thanked 641 Times in 427 Posts
MarkSheppard is on a distinguished road
Default Re: Height Maps

So if it takes 66 requests to build a map...

The Google Maps Elevation API has the following limits in place:

(snip)

$0.50 USD / 1000 additional requests, up to 100,000 daily.


I certainly can transfer a few bucks a month for this tool.
Reply With Quote
  #3  
Old March 3rd, 2016, 03:18 AM

dmnt dmnt is offline
Sergeant
 
Join Date: Jan 2010
Location: Espoo, Finland
Posts: 359
Thanks: 56
Thanked 136 Times in 104 Posts
dmnt is on a distinguished road
Default Re: Height Maps

Quote:
Originally Posted by MarkSheppard View Post
So if it takes 66 requests to build a map...

The Google Maps Elevation API has the following limits in place:

(snip)

$0.50 USD / 1000 additional requests, up to 100,000 daily.


I certainly can transfer a few bucks a month for this tool.
Well, the problem is that it'd be a hassle to handle everything. Chipping in $5 a month is no problem, handling the payments etc. is. Currently there is no such traffic that there would be any problem with this free service.
Reply With Quote
The Following User Says Thank You to dmnt For This Useful Post:
  #4  
Old March 16th, 2016, 11:54 AM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,408
Thanks: 103
Thanked 641 Times in 427 Posts
MarkSheppard is on a distinguished road
Default Re: Height Maps

Tried making a map with this location; got a uniform flat map.

http://www.venhola.com/maps/geo.php?...89355469&rot=0

This was something I had problems too with making maps via MicroDEM too -- the difference between a near sea level map and one at 400m above sea level; meaning I had to keep a set of MicroDEM terrain level tables for each altitude.
Reply With Quote
  #5  
Old March 17th, 2016, 04:33 PM

dmnt dmnt is offline
Sergeant
 
Join Date: Jan 2010
Location: Espoo, Finland
Posts: 359
Thanks: 56
Thanked 136 Times in 104 Posts
dmnt is on a distinguished road
Default Re: Height Maps

Quote:
Originally Posted by MarkSheppard View Post
Tried making a map with this location; got a uniform flat map.

http://www.venhola.com/maps/geo.php?...89355469&rot=0

This was something I had problems too with making maps via MicroDEM too -- the difference between a near sea level map and one at 400m above sea level; meaning I had to keep a set of MicroDEM terrain level tables for each altitude.
I'll take a look at it.
Reply With Quote
  #6  
Old April 12th, 2016, 12:34 PM

dmnt dmnt is offline
Sergeant
 
Join Date: Jan 2010
Location: Espoo, Finland
Posts: 359
Thanks: 56
Thanked 136 Times in 104 Posts
dmnt is on a distinguished road
Default Re: Height Maps

Quote:
Originally Posted by MarkSheppard View Post
Tried making a map with this location; got a uniform flat map.

http://www.venhola.com/maps/geo.php?...89355469&rot=0

This was something I had problems too with making maps via MicroDEM too -- the difference between a near sea level map and one at 400m above sea level; meaning I had to keep a set of MicroDEM terrain level tables for each altitude.
This feature is now improved:

if the terrain contains height differences more than 150 meters they are proportionally mapped from 0 to 150 meter range. Your downloaded map should now be better suited for map building.
Reply With Quote
The Following 2 Users Say Thank You to dmnt For This Useful Post:
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.