Height map problem

Height map problem

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
crimson12
Posts: 22
Joined: 24 Oct 2006, 23:18

Height map problem

Post by crimson12 »

My maps always seem to have very very altitudes. Nomatter how I make my height map, it always ends up having a very simlar low and high point. I use about 100 as my low and 400 as my high, any advice?
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Hurm... well, can you put up an image of your heightmap?
crimson12
Posts: 22
Joined: 24 Oct 2006, 23:18

Post by crimson12 »

Image

I also get these very wierd contour lines.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

The contour lines may result from Compression, though I'm not an expert.

Mainly I believe you're letting the gradients darken too fast - Nearly all of that map is in the darker range - I mean, 75% of is virtually black. If you're gradually moving from the black at the rate your height map shows I expect you won't see real difference save for in about a quarter sized area at the very middle.

Try 40 to 380, and possibly make some sectors of the height map lighter. As for the contours, I believe blurring might help there, but at the cost of appearance.
Last edited by Neddie on 15 Jun 2007, 19:47, edited 1 time in total.
crimson12
Posts: 22
Joined: 24 Oct 2006, 23:18

Post by crimson12 »

i used about a 3 pixel gausian blur and still the lines appear, i'll try to brighten the heightmap and see what heppens.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

a 0.8MB grayscale png at 600x600? whats the world coming too.
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Post by hunterw »

make your sun position higher in the sky, this will help your problem

just take the sun position out of tangerine or tropical
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

I'm not sure the Sun Position has any bearing on the height of the terrain, unless, of course, you're referring to the contour issues.
muzzybear
Posts: 6
Joined: 10 Jun 2007, 05:09

Post by muzzybear »

Changing sun position is an ugly fix, it doesn't solve the problem. The issue is that the heightmap is actually 16bit and the bmp is only 8bit, so every step is 256 units worth in height. It could be smoother, and there's a parameter to mapconv to run low-pass filter on the data to blur it a little...

My solution is to use imagemagick and a simple filter to add some noise and blur. Here's a snippet from my Makefile:

HMAPFILTER=( -size $(HEIGHTMAPW)x$(HEIGHTMAPH) xc:gray +noise poisson -blur 0x2 -blur 0x7 ) +swap -compose overlay -composite -blur 0x1

"$(WORKDIR)\$(HEIGHTMAP).raw": "$(WORKDIR)\$(HEIGHTMAP)"
$(CONVERT) "$(WORKDIR)\$(HEIGHTMAP)" -depth 16 $(HMAPFILTER) -endian LSB gray:"$(WORKDIR)\$(HEIGHTMAP).raw"

I suppose I should release the whole thing so you can take a look at it... And I just did. It's probably not too useful for you, but someone might find inspiration from it.

There's sources and an nmake Makefile for building my map "Dready Lakes", but I can't post the damn URL due to forum restrictions. Go figure.

[mod edit] URL = http://spring.unknown-files.net/file/30 ... ady_Lakes/
crimson12
Posts: 22
Joined: 24 Oct 2006, 23:18

Post by crimson12 »

It just seems no matter how different I make the heights in the height map, there is little to no difference in Height. The previews I get in L3DT are far from what i get in the end. I'm almost positive I am compiling it right too.
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Post by hunterw »

just use smfed
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

Post the line of code your using to compile your map?
crimson12
Posts: 22
Joined: 24 Oct 2006, 23:18

Post by crimson12 »

mapconv -c 0.5 -x 600 -n 350 -o High_and_Low.smf -t texture.bmp -m metal.bmp -a height.bmp -i
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Hurm... something doesn't look right there. I can't put my finger on it, I've been awake for a long time, but... are x and n transposed?
crimson12
Posts: 22
Joined: 24 Oct 2006, 23:18

Post by crimson12 »

I used smfed and everything is fine, but there are these very annoying contour lines. It makes the map look very ugly, how can i smooth these out(i already tried a 6 pixel gasusien blur.)
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

screen grab perhaps?

:::EDIT:: by the way... -i? isn't it -l for low pass?

aGorm
User avatar
Weaver
Posts: 644
Joined: 07 Jul 2005, 21:15

Post by Weaver »

I think -i is for invert, depending on how your heightmap is saved it may need to be flipped.
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

Yah, I is for invert. Try using -l (lowpass) to filter out those contour lines your getting.
Post Reply

Return to “Map Creation”