Loading...
  OR  Zero-K Name:    Password:   

Trying to get height map working

9 posts, 2196 views
Post comment
Filter:    Player:  
sort
13 years ago
Is there like a restriction for how big a heightmap can be? I'm trying to convert a map with the map converter, but somehow no matter how much I put at max height the map remains really flat, except for two mountains that are moderately high. Anyone here know how that works/why that is/made maps before?

Any input appreciated.
+0 / -0
13 years ago
Map height is written in .smd file http://springrts.com/wiki/Map_development
+0 / -0
13 years ago
Also there is limitatation(sorta) because there is only 255 values so if you make map really high even 1 value diference is very clearly vissible and looks very ugly. By the way when you defining height in smd you dont even need to recompile map. Read .smd description in link or something. PS i have made only 1 map(WWF_RAW) so I m not pro.
+0 / -0
13 years ago
Aaaaaaah it's in the SMD, that makes sense, I'll have to try, and maybe compress my mountains a bit so that they fit, thanks for the help.
+0 / -0
13 years ago
Height values has limitations in theory, but basically you can go very wild with it (I think, though never tested the limits.) It's all about how many grayscale levels you use and how you set your levels in relation with each other through smf height values. For 8-bit grayscale its 255 levels. However, spring map format supports 16-bit grayscale images so it means 65,535 levels. This is what you should always use. 8-bit heightmaps looks ugly and limits the height variations. Usually 8-bit maps end up being jagged.

Height values are always written and hardcoded in .smf but you can override them via .smd. It makes the whole process a lot easier as wolas said: you dont need to recompile just to change heightvalues.

If your problems with flatness still exist please post a screenshot from ingame, heightmap and height values (both).
+0 / -0
13 years ago
Nice Sir! I will definitly try 16bit grayscale since it 255 values have stoped me from making one map :)
+0 / -0
13 years ago
The texture seems to be broken or something, anyone any idea what might be causing it?

Screenshot of what happens:
+0 / -0
13 years ago
It breaks when you rename smf or smt files afterwards. They need to be same as when compiling
+0 / -0
13 years ago
Oh hooray, thanks you ( :
+0 / -0