Map format to support 16 bit heightmap?
Moderator: Moderators
Map format to support 16 bit heightmap?
256 heightlevels is just too less. Is it possible to make more than 256 heightlevels with the current map format?
It is impossible to make high maps with just 256 levels, terrain becomes unpassable and ugly.
It is impossible to make high maps with just 256 levels, terrain becomes unpassable and ugly.
bored, 24 bit doesn't matter. because each channel is coposed of 0-255 colors. Which means we have a 256 color range for black and white. The color system uses the old 8bits per color system.
what trademark is asking for support for 48bit images with 16bits per channel... not happening(find another format like terragen or leveler) btw... but anyway.
what trademark is asking for support for 48bit images with 16bits per channel... not happening(find another format like terragen or leveler) btw... but anyway.
smoth wrote:bored, 24 bit doesn't matter. because each channel is coposed of 0-255 colors. Which means we have a 256 color range for black and white. The color system uses the old 8bits per color system.
what trademark is asking for support for 48bit images with 16bits per channel... not happening(find another format like terragen or leveler) btw... but anyway.
yeah, i realised after posting what was meant :/
Last edited by BoredJoe on 15 Mar 2007, 23:13, edited 1 time in total.
I think we need to use a format that one of the major terrain programs uses like terragen or leveler... hell even a 16bit raw.. I do not care.. but doing funky stuff with extra heightfeilds or even using several channels as was suggested over a year ago are out of the question.
We need to go with a major supported format because we do not need to make maps EVEN HARDER to make...
one of MY pet peves is that we have to scale the heightfield and add 1 onto it.. that is asinine imo...
We need to go with a major supported format because we do not need to make maps EVEN HARDER to make...
one of MY pet peves is that we have to scale the heightfield and add 1 onto it.. that is asinine imo...
Well, nobody is perfect. Specialization generally leads to some missed data. Hence why I decided to not even try to master one section.jcnossen wrote:I would think someone doing a major in CS could figure that out :) Any game uses heightmaps with non-even resolutions like spring.one of MY pet peves is that we have to scale the heightfield and add 1 onto it.. that is asinine imo...
Afaik the map conv of old already supports 24 bits heightmaps. It's just hard to find an image editor that do 24 bits smoothing of a grey picture. Also, possibly, it use red+green+blue, and not red*65536+green*256+blue, which basically mean you don't have 2^24 height levels but less.
As for the +1, it makes perfect sense. Just look at a microsoft window logo: it has four area, but nine nodes. It's the bidimensional version of the good old problem of "If you plant a post every meter, how many do you need for a 5 meters fence?"
As for the +1, it makes perfect sense. Just look at a microsoft window logo: it has four area, but nine nodes. It's the bidimensional version of the good old problem of "If you plant a post every meter, how many do you need for a 5 meters fence?"
I Have yet to write a program the reads in a heightfield and generates a mesh from it. Not something we do at uni, but it seemed odd that the data needed to have the actuall dimensions +1 pixel.jcnossen wrote:I would think someone doing a major in CS could figure that out :) Any game uses heightmaps with non-even resolutions like spring.one of MY pet peves is that we have to scale the heightfield and add 1 onto it.. that is asinine imo...
It's a cornerheightmap, ie. the height is specified at each corner of the quads.
2x2 squares gives 3x3 corners/nodes/whatever.
4x4 squares gives 5x5 corners
etc.
Would it have been a centerheightmap, then the dimensions would be even. But then spring would have to do quite some inter/extrapolation magic to calculate the cornerheightmap from this (because that one's needed to render the quadrilaterals).
2x2 squares gives 3x3 corners/nodes/whatever.
4x4 squares gives 5x5 corners
etc.
Would it have been a centerheightmap, then the dimensions would be even. But then spring would have to do quite some inter/extrapolation magic to calculate the cornerheightmap from this (because that one's needed to render the quadrilaterals).
The height map is stored at 16bit resolution, if you can create a 16bit grey scale raw image then you can compile with it. Normally if you use an 8bit height map it wise to set the lowpass filter as you will avoid some steppiness.
The other source of steppiness is a limitation of the engine. As it renders those corners to the nearest heightmap unit. So if your map is only 300 units high you will only get 300 different height levels. This really only visible when the sun is set very low.
The other source of steppiness is a limitation of the engine. As it renders those corners to the nearest heightmap unit. So if your map is only 300 units high you will only get 300 different height levels. This really only visible when the sun is set very low.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Map format to support 16 bit heightmap?
No it's not. Take a look at 40% of my maps. Look at iron gauntlet. Divided shores dry. Mountain range. Industrial mountain.TradeMark wrote: It is impossible to make high maps with just 256 levels, terrain becomes unpassable and ugly.
I'll give oyu a bit of a hint. Use a program like l3dt to redraw the heightmap for you in 32bit, then save as bmp (loses 32bitness, but that's ok), the run the lowpass filter in the compiler and you're home free

Hmm, you used only 256 height levels in those maps? Looks like there is more than 256 height levels...
But if i want to make some really high maps, which includes deep water, i need even more height levels.
I remember one map called "king of the hill", it had so ugly heightlevels, that i could see them from far away, i took some screenshot:

In that map one height step is 30 degree angle.
But if i want to make some really high maps, which includes deep water, i need even more height levels.
I remember one map called "king of the hill", it had so ugly heightlevels, that i could see them from far away, i took some screenshot:

In that map one height step is 30 degree angle.