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

This Month's Specials

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

   







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


Reply
 
Thread Tools Display Modes
  #1  
Old May 27th, 2018, 07:20 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

Just checked the source code, unfortunately the clipping is not the default but compression. I'll probably modify that when I can make sure the level parameters work properly.
Reply With Quote
The Following User Says Thank You to dmnt For This Useful Post:
  #2  
Old May 28th, 2018, 03:11 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

Updated the code; fixed the bug where the level setting actually had no effect to the produced map terrain. The map that is produced is still always compressed, so highest peaks should be level 15 unless the terrain hasn't that much height difference (< 96 m total). I will include that change in the next version because the absolute level height is something the map makers can easily set themselves.
Reply With Quote
The Following 3 Users Say Thank You to dmnt For This Useful Post:
  #3  
Old May 28th, 2018, 06:57 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,493
Thanks: 3,965
Thanked 5,702 Times in 2,814 Posts
DRG will become famous soon enough
Default Re: Height Maps

It may just be my server ATM but it seems very slow resizing and showing the map area now. Zooming the map out takes much longer now to redraw all the areas
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
  #4  
Old May 29th, 2018, 04:49 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

The map tiles are cached but in case of cache miss they're loaded from the source which unfortunately seems very slow at the moment.
Reply With Quote
The Following User Says Thank You to dmnt For This Useful Post:
  #5  
Old July 25th, 2018, 12:40 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,493
Thanks: 3,965
Thanked 5,702 Times in 2,814 Posts
DRG will become famous soon enough
Default Re: Height Maps

We will be looking for a way to allow water to be added to maps that will only fill in the level zero area with water with the press of a button that leaves all terrain >0 untouched. This will allow maps with island and/or coastline to add water without it being nearly so much the chore it can be now...it's "on the list" and it seems doable but we will see, hopefully, we can get it to work.

Don

Example This is what is generated for Latitude 45.41 Longitude -80.33



This is what the code change we are looking into would do






Also there seems to be a new problem. I tried to use the info generated in the txt file

https://www.venhola.com/maps/geo.php#45.41,-80.33,0

but all I get when I try to use it is a spot on Antarctica not 45.41,-80.33

This is what it should be....at least according to the info the map shows when I get the area I want

https://www.venhola.com/maps/geo.php#-80.33,45.41,0

so lat and long are being reverse in the txt file info or the generated info
Attached Thumbnails
Click image for larger version

Name:	Image1b.png
Views:	501
Size:	7.3 KB
ID:	15490   Click image for larger version

Name:	Image2b.png
Views:	513
Size:	5.8 KB
ID:	15491  
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc

Last edited by DRG; July 25th, 2018 at 04:20 PM..
Reply With Quote
The Following 4 Users Say Thank You to DRG For This Useful Post:
  #6  
Old February 17th, 2019, 03:54 PM
shahadi's Avatar

shahadi shahadi is offline
Captain
 
Join Date: Nov 2010
Location: I ain't in Kansas anymore, just north of where Dorothy clicked her heels is where you'll find me.
Posts: 878
Thanks: 584
Thanked 277 Times in 191 Posts
shahadi is on a distinguished road
Post Re: Height Maps

Quote:
Originally Posted by DRG View Post
We will be looking for a way to allow water to be added to maps that will only fill in the level zero area with water with the press of a button that leaves all terrain >0 untouched. This will allow maps with island and/or coastline to add water without it being nearly so much the chore it can be now...it's "on the list" and it seems doable but we will see, hopefully, we can get it to work.

Don
Are you guys close to adding water to the maps?

https://www.venhola.com/maps/geo.php...159999999999,0

Here is the result after loading in the map editor after pressing "strip map,"



I have started to draw the map in Extended Map Editor, it is a painstaking process indeed.

If anyone is interested, the Dinh Tuong zip has relevant files.


Attached Images
File Type: jpg Extend_Map_681x357.JPG (51.0 KB, 378 views)
Attached Files
File Type: zip Dinh_Tuong_1056x517.zip (198.3 KB, 173 views)
Reply With Quote
  #7  
Old July 30th, 2018, 02:37 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

I'll fix the incorrect order when I have a little bit of idle time at hand...
Reply With Quote
The Following 2 Users Say Thank You to dmnt For This Useful Post:
  #8  
Old November 28th, 2018, 12:58 PM
zovs66's Avatar

zovs66 zovs66 is offline
First Lieutenant
 
Join Date: Mar 2011
Location: Ohio
Posts: 788
Thanks: 1,258
Thanked 576 Times in 313 Posts
zovs66 is on a distinguished road
Default Re: Height Maps

I was trying to use height maps to create a general map of Chicagof Harbor, Alaska for a scenario. When I clicked download I got this:

Quote:
Something went wrong, return value 25. Process returned:
coords => 52.96321283412573,-186.8328929199117,52.97528448282716,-186.71612236361415,52.899041862082925,-186.69402909927055,52.886948927830815,-186.81079965556805
level => 10.000000
dx = (52.97528448282716 - 52.96321283412573)/158, -186.71612236361415 - -186.8328929199117)/158)
dy = (52.886948927830815 - 52.96321283412573)/198, -186.81079965556805 - -186.8328929199117 - .5*0.000734406014450017)/198)
Zero 52.96321283412573, -186.8328929199117
dx 7.59223188769578e-05:0.000734406014450017, dy -0.000383235710024683:0.000109176187620239
Corners: (0,0)=52.96321283412573 -186.8328929199117 (159,0)=52.97528448282716 -186.71612236361415 (0,199)=52.886948927830815 -186.81079965556805

Corners: (1,1)=52.962943481894:-186.831682134702: (159,1)=:52.9749392082766:-186.715645984419: (1,199)=:52.8870628113091:-186.810065249554: (159, 199)=:52.8990585376917:-186.69402909927

Error: INVALID_REQUEST at contour.pl line 305.
Any idea on how to fix?

I am a totally newbie to using this. I have generator a map once or twice with contours but this is a first.
__________________
ASL
Reply With Quote
  #9  
Old November 28th, 2018, 01:06 PM
zovs66's Avatar

zovs66 zovs66 is offline
First Lieutenant
 
Join Date: Mar 2011
Location: Ohio
Posts: 788
Thanks: 1,258
Thanked 576 Times in 313 Posts
zovs66 is on a distinguished road
Default Re: Height Maps

Was zoomed in a lot, so I zoom out and still get similar errors as above post.



This is the place/area:
__________________
ASL
Reply With Quote
  #10  
Old November 28th, 2018, 01:18 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,493
Thanks: 3,965
Thanked 5,702 Times in 2,814 Posts
DRG will become famous soon enough
Default Re: Height Maps

I ran it for that location and didn't get an error report ....... I didn't get anything so I entered in something "safe" 20 and -50 then zoomed WAY out......found Alaska then zoomed in on Chicagof Harbor........ try that

however the height of the mountains is greater than the 15 levels the game can handle so you need to use something >10 for height level but even at 30 it still gives you flat topped mountains so you might have to do this one the old fashioned way unless you want to stick close to the water and even then that map would be beyond the range of the game. I tried everything from 1 to 50 for the height and didn't get anything that looked worthwhile
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc

Last edited by DRG; November 28th, 2018 at 01:53 PM..
Reply With Quote
The Following User Says Thank You to DRG For This Useful Post:
Reply

Bookmarks


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 05:44 AM.


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