16bit heightmap

16bit heightmap

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

Moderator: Moderators

wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

16bit heightmap

Post by wolas »

I found that someone have made those, but no mention how. I know that there exists some "heightmap painters, or creators" but that dont suit me. I want precision and prefer creating with gimp and it looks like it dont support such 16bit thingies. Maybe there is some convertors or something? I probably want to convert from 8bit -> 16 bit with some smoothing that would be perfect. Now my map looks crappy.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: 16bit heightmap

Post by PicassoCT »

╬®hem.. international Measurment Standard for no Idea...

Photoshoop and Blur?
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: 16bit heightmap

Post by wolas »

I m using Linux, and not a fan of photoshop. Also gimp dont support 16bit channels. Now messing with imagemagick converting from 8 bit to 16bit and bluring 6x6 looks rather good, but not perfect...
Last edited by wolas on 15 Sep 2011, 14:52, edited 1 time in total.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: 16bit heightmap

Post by PicassoCT »

happy for you :D
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: 16bit heightmap

Post by Beherith »

If you compile with mapconv, use -l option for some good lowpass filtering.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: 16bit heightmap

Post by wolas »

Well I use springMapconv which is linux version I guess. Just tried Mothers Mapconv version 2.4 updated by you, and -l does nothing, tried -q and without it and used .tiff as heightmap, + texture got corrupted. I ran it under wine, but once did it in virtualbox and it looked for me as simple blur isint it? Or it is some "clever" blur? If it is some clever blur maybe it will be worth messing with virtualbox.
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: 16bit heightmap

Post by SirArtturi »

Quick google search and I found this plugin: http://ufraw.sourceforge.net/

Any help?

AFAIK -l filter is just a blur, beherith might know better since he is mapconv oriented. However, dunno why you suggest filtering it with -l whatsoever, since it kills all the details and I understood wolas want precision?
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: 16bit heightmap

Post by Pxtl »

It would be nice if you could provide a secondary map to Mapconv to mark areas as non-filtered and the filter would, in turn, give those areas higher weighting to the adjascent terrain so that the filter would be gradually feathering away from these hard spots. Then you could create terrain with hard edges. Of course, you'd have other problems since it would be tricky to get consistent slopes then, so it would still be hard to do inorganic terrain.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: 16bit heightmap

Post by wolas »

I already posted in Imagemagick(you can do pretty neat things with it) forums, maybe will get an answer, well I want accuracy, but simple blur I can do myself thats why I m asking :

It doesnt need very high precision as WWF RAW(weird looking ring, stairs etc) needed, but if it is possible I want as much as possible less blur. But probably using blur is simplest solution.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: 16bit heightmap

Post by Jools »

Gimp doesn't support 16-bit channels and also if you save the map as .raw then there's a problem with the byte order, which I think is inverted between different applications (IBM/Mac). I never got 16-bit raw working, so I used tiff and it works fine.

There was a thread on some other forum about Photoshop not showing the banding that occurs when you scale up a 8-bit image to 16-bit, they recommended fractscape intead, but I didn't manage to get my hands on that app.
User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: 16bit heightmap

Post by tizbac »

linux mapconv can do 16 bit blur , just use -smooth and 8 bit heightmap if you don't have programs to edit 16 bit images
User avatar
Johannes
Posts: 1265
Joined: 17 Sep 2010, 15:49

Re: 16bit heightmap

Post by Johannes »

SirArtturi wrote:However, dunno why you suggest filtering it with -l whatsoever, since it kills all the details and I understood wolas want precision?
It hardly destroys any meaningful detail on most maps.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: 16bit heightmap

Post by smoth »

Johannes wrote:
SirArtturi wrote:However, dunno why you suggest filtering it with -l whatsoever, since it kills all the details and I understood wolas want precision?
It hardly destroys any meaningful detail on most maps.
For something with hard edges it is devastating. But I agree most maps are crap and it doesn't hurt them.

Fwiw I could make what wolas needs for him but I don't like the map concept.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: 16bit heightmap

Post by wolas »

You dont even know what I m working on. And I dont need/wont beg you to make anything. If you talking about WWF RAW it is finished, it is ring it is small, desisigned for com wars, I like it/dont care what anybody thinks about it and it wont be any bigger.

+ I m running linux. And windows version mapconv works crappy under wine. Rebooting to windows/messing with virtualbox is too big pain for me.

Thanks for -smoth dunno why it is hidden in -h , but it looks like weak blur.

Found it. ImageMagick "convert -selective-blur" works almost perfectly.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: 16bit heightmap

Post by smoth »

Cool
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: 16bit heightmap

Post by SirArtturi »

Johannes wrote:
SirArtturi wrote:However, dunno why you suggest filtering it with -l whatsoever, since it kills all the details and I understood wolas want precision?
It hardly destroys any meaningful detail on most maps.
Define meaningful.

If you create high detailed 16-bit heightmap and render a texture for it -l filter really destroys it because the blurred heightmap doesnt match with the original texture anymore. If you design your heightmap with high care and precision from the very beginning, it's just foolish to run blur on it at the end of the process.

-l filter is only good for 8-bit heightmaps because of the jagged edges it tends to leave due 255 levels.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: 16bit heightmap

Post by Forboding Angel »

Interesting question... Would you consider my maps lacking in detail?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: 16bit heightmap

Post by Beherith »

Forb, you dont use high frequency components in your heightmaps, so they wouldnt be affected much by -l.

For example, if you are using worldmachine to bake a lightmap, then you absolutely want to keep the most heightmap detail you can to keep it accurate as Artturi said.
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: 16bit heightmap

Post by SirArtturi »

Yes exactly.

Still I wonder why you use lowpass filter - just out of curiosity?

I know this analogy doesn't speak on behalf of my argument , but I think it clarifies my point: If you take a photo, why would you run immediately in photoshop to blur it?

Also! The more height variation, in other words, more higher the map, and more grayscales it has, more meaningful the details come. With 16-bits you can have 65,536 levels. Basically this means map as high as 65,536 spring elmos, correct me if im wrong. You can put a lot of detail into that.

About meaningfulness: Sure, It probably is not meaningful for basically flat maps. And most of the map, as Johannes said, aint going too deep on the details. So yeah you are correct...

Still why would you blur your map more? Can't see the point...

If you have 8 bit height map, and lets say it is using like 150 levels of gray, blur might be clever to run for it because it most probably will add more levels (hopefully it will use the full-scale 255 levels) to your heightmap and fix the jaggedness.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: 16bit heightmap

Post by Jools »

One question I wonder is whether a 16-bit mode is really useful if you begin with OTA maps, that are of small dimensions and then enlarge them. I know that you can't regain lost information by upscaling the image, but maybe something happens to the 8-but image when it's being processed.

So what is more important? Colour depth or dimension?
Post Reply

Return to “Map Creation”