arg...dumb heightmap. anybody know why it isen't working?

Forum Archive - from http://theuniversal.net
Locked
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

arg...dumb heightmap. anybody know why it isen't working?

Post by zaroba »

This one works fine, 256x256 pixels, 256color grey scale bmp
http://www.tuwr.net/~tu/zoric18.bmp


This one does not. also a 256x256 pixel 256color grey scale bmp
http://www.tuwr.net/~tu/zoric27.bmp
I used some odd filter that lowered the white in it.
Loaded it in MSPaint and saved it as a 24bit bmp, it loads in-game but is distorted due ot being 24bit.
Converted to 256 color grey scale, also tried 256 color normal.
Both cases the game wont load it and pops up an error

"Error loading data from file : maps/Zoric.bmp !
File is prolly wrong size, kind or whatever..."

loaded in mspaint and saved it, then reconverted again, no change
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

just to make sure it wasn't the file itself, I even opened the picture, hit print screen, then created a new 256color greyscale 256x256 pixel image out of that copy of my screen.
still got the error
User avatar
flametard
Posts: 1245
Joined: Sun Apr 01, 2007 2:05 am
Location: Join NR! faction name: 'NR new recruits' password: 'Truth'
Contact:

Post by flametard »

is it in index mode?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

lol, no clue.

But I disabled the RLE compression and now it works
Thanks
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

this thread led me to take a look at the heightmap code for the first time since devi implemented most of it about 11 years ago. Ah those were the days :)

I've redone it now so it can use any of the standard supported image formats (tga,dds,png,bmp,jpg) - you'll need to be careful using some of the compressed formats as they may make your world look a bit funky.

I've also removed the restriction on image size.. it'll work with whatever its given now (though theres not much point in using anything other than 256x256 as thats the actual size of the tile grid that the image is used to generate).

Oh except that.. just recently i did some wee experiments with a 512x512 tile map (which'd allow for more detail or bigger landscapes.. within the limits of the rendering engine).. it worked surprisingly well with very few changes needed.
I will be looking at making that an option for worlds soon.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

the 512x512 tile map option is in 0.63.2 - *settings -> Landscape -> Map size = 1
Using that many tiles on a default landscape scale (115) can make the renderer suffer a bit, so its more suited for worlds with a larger landscape scale.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

note to others,
changing from a 256x256 map to a 512x512 map can result in all the roads you've placed being shifted to the bottom 1/4 of the map.

however, switching back to the 256x256 map will fix them.
Locked