Auteur Sujet: Elevation on maps  (Lu 34077 fois)

Hors ligne brucepos

  • Caporal
  • Messages: 16
Re : Elevation on maps
« Réponse #60 le: 23 mars 2010, 11:53:35 am »
I think Hook's right and there's something gone wrong with the calculcations of the indexes.

The point by Tirailleur is something I didn't realise could be done - I've only ever downloaded the sub files and didn't know that the file for the whole grid could be accessed.


Hors ligne Tirailleur

  • Lieutenant
  • **
  • Messages: 57
Re : Elevation on maps
« Réponse #61 le: 23 mars 2010, 12:31:48 pm »
Yes brucepos,

it's possible. When you click on the green data file symbol, you get an info window, where you can download the whole data of the big file.

I had the same problem with the same error, so it could be possible that it's the same problem.

But i don't know, Broadsword has to try out.

Hors ligne TC237

  • Sergent
  • *
  • Messages: 24
Re : Re : Elevation on maps
« Réponse #62 le: 23 mars 2010, 14:44:06 pm »
Please keep working at this guys, it's going to be a huge help to the game.
....All went well after i used the sub data files.
Did you get the data to load in the map editor?

Another idea, there are a few free digital elevation programs available (MicroDEM) that can load these SRTM .asc files.
 I'm wondering if they can be useful. You can load the .asc file into MicroDEM, then via mouse drag, select the precise area you need for a map.
I haven't been able to export the resulting data into a file type that the game can use.
Mainly because I don't know exactly what all these different elevation data files are (.dem, .asc, .hgt, .prj) and how they are related or need to be converted.

Hors ligne Tirailleur

  • Lieutenant
  • **
  • Messages: 57
Re : Re : Re : Elevation on maps
« Réponse #63 le: 23 mars 2010, 15:51:46 pm »
Did you get the data to load in the map editor?

No, the download is available as mentioned in the guide from brucepos. There appears a pop up window in Google Earth (if you click the sub data file) where you can download the file.

Hors ligne Broadsword

  • Capitaine
  • **
  • Messages: 110
Re : Elevation on maps
« Réponse #64 le: 25 mars 2010, 22:13:59 pm »
Thanks again, Brucepos!

I started over with my attempt at making my campaign map using the heightmaps and SciLab, etc., and it works like a charm. My Google map usermap aligns perfectly with the HighV4.hgh terrain image in LG. This is astounding, and it lets us re-create precise virtual Napoleonic battlefields from anywhere, in a fairly short time! I found the math part fairly daunting, and painstaking, but well worth the effort -- it's still much faster and results in a far superior map than trying to manipulate elevations in the LG map editor by hand.

What threw me the first time was that I downloaded the entire large-scale tile, rather than the two side-by-side smaller tiles I really needed. As they say, "garbage in, garbage out..." And I had to reread Brucepos' guide several times to grasp the nature of the "stacked" matrices and how to extract a smaller battlefield area from them.

But now the fun begins, and it will be fairly simple to draw my map features. I'll start with a river, then streams. I've learned the hard way to place towns before roads, so you can draw the roads to join precisely with where they enter the towns...My campaign map is the area north of the Landshut crossing from the 1809 campaign. I'll post it as soon as it's done and I know it works.

Hors ligne glaude1955

  • Major
  • ***
  • Messages: 616
Re : Elevation on maps
« Réponse #65 le: 10 avril 2010, 21:36:08 pm »
Merci Brucepos,

Merci de nous avoir fait découvrir Scilab. Ca fonctionne   (sans la macro qui elle pose des problèmes ausssi ne l'utilisons pas)

Yves

Thank you Brucepos, 
 
Thank you to have made us discover Scilab. That functions (without the macro that puts problems as don't use it) 

Hors ligne bibouba

  • Officier d'HistWar : Grognard de la Vieille Garde
  • Général de Brigade
  • ****
  • Messages: 1532
  • Henri Gratien Comte BERTRAND
Re : Elevation on maps
« Réponse #66 le: 03 octobre 2010, 09:31:06 am »
Ho Hook,

I ve done a test and it works perfectly.

But I ve seen that in a post previously you put a factor (3.5) for the elevation.

How do you do that in scilab ?

Don't see any factor line in the tuttorial. In fact i want to increase the elevation a beat for all mount that ive have in my map.
« Modifié: 03 octobre 2010, 09:37:12 am par bibouba »

Hors ligne Alfiere

  • Général de Brigade
  • ****
  • Messages: 1403
Re : Elevation on maps
« Réponse #67 le: 03 octobre 2010, 10:15:38 am »
I do not tried, but perhaps you can increase at point 17 of manual:
when scilab calculate the offset of high:

remap-=remap-min(remap); put the min elevation at 0 e calculate offset other high in matrix.

You can add after
remap=remap*1.05 ;   should be increase of 5% all elevation and 0 remain 0 because 0*1.05=0



Danube camp - 3rd Coaltion camp

Hors ligne Alfiere

  • Général de Brigade
  • ****
  • Messages: 1403
Re : Elevation on maps
« Réponse #68 le: 03 octobre 2010, 10:42:32 am »
Now i have tried.
Seems to work.
I have tried with Auerstadt sat normal version higher point in a aerea zone 170 mt
after increase 5% with scilab , higher in same zone 179 mt with new HighV4
Scilab no errors.
Now the relative high is not real,perhaps there is a way to increase the step with a factor with the same high in HWLG.
But this is possible way.

In the images i have found another poit higher at 175 mt
« Modifié: 03 octobre 2010, 11:13:12 am par Alfiere »
Danube camp - 3rd Coaltion camp

Hors ligne bibouba

  • Officier d'HistWar : Grognard de la Vieille Garde
  • Général de Brigade
  • ****
  • Messages: 1532
  • Henri Gratien Comte BERTRAND
Re : Elevation on maps
« Réponse #69 le: 03 octobre 2010, 11:34:18 am »
I m gonna try it. thx

Hors ligne Alfiere

  • Général de Brigade
  • ****
  • Messages: 1403
Re : Elevation on maps
« Réponse #70 le: 03 octobre 2010, 11:38:10 am »
In scilab the lowest point is set to 0 and highest point is set to 50.Is all relative.
If you have a 10 mt relative this became 10.5 mt relative.
It is only method to increase the steepness of  climb.
I had undestood that you wanted this.
Danube camp - 3rd Coaltion camp

Hors ligne bibouba

  • Officier d'HistWar : Grognard de la Vieille Garde
  • Général de Brigade
  • ****
  • Messages: 1532
  • Henri Gratien Comte BERTRAND
Re : Elevation on maps
« Réponse #71 le: 03 octobre 2010, 11:44:40 am »
when you write remap-=remap-min(remap);  are you sur that it goes to O ?

Hors ligne Alfiere

  • Général de Brigade
  • ****
  • Messages: 1403
Re : Elevation on maps
« Réponse #72 le: 03 octobre 2010, 11:48:21 am »
yes if i understood well brucepos manual.
I read
"The first is to set the lowest altitude as zero an to offset other altitudes.This sounds complicated, but is really easy to do:
remap=remap-min(remap);"
Danube camp - 3rd Coaltion camp

Hors ligne bibouba

  • Officier d'HistWar : Grognard de la Vieille Garde
  • Général de Brigade
  • ****
  • Messages: 1532
  • Henri Gratien Comte BERTRAND
Re : Elevation on maps
« Réponse #73 le: 03 octobre 2010, 11:50:43 am »
look strange because when I do the methood that you explain me I should have point at 0. But in fact don't find any one. the remap*x apply even at 0 meters.

Hors ligne Alfiere

  • Général de Brigade
  • ****
  • Messages: 1403
Re : Elevation on maps
« Réponse #74 le: 03 octobre 2010, 12:07:42 pm »
I have not controlled this.
Strange that 0*x is not zero.

If is so is not possible , perhaps ,but i do not know after

remap=remap-min(remap);
remap=remap*1.05;
(again)
remap=remap-min(remap);
example my map auerstadt  before 175-> 184 mt  and you tell that 0 is not zezo but perhaps 0.05 mt  ?
0.05 mt is put to 0 and 184 mt is put to 183.05 mt.

The manual seems to me clear.You find 0 meters without remap=remap*1.05; ?

Now take a look on my standard map.
« Modifié: 03 octobre 2010, 12:19:09 pm par Alfiere »
Danube camp - 3rd Coaltion camp