Black bars on map export
Posted: Wed Dec 05, 2012 12:33 pm
I'm trying to make a full u7 map, and I noticed the images that are generated when you use the command "exult --fov --buildmap 0" happen to have a 172 pixel black bar at the top.
At first I assumed it was just some sort of padding and removed it, but when I assembled the images, I noticed data was missing, so it's actually where map data should be, its just being rendered solid black.
Here's a low-res example of an assembled map:
http://www.the-coming.com/images/blackBars.jpg
and a normal-res example of a single image:
http://www.the-coming.com/images/u7map00.png
I took a look at the code, in exult.cc at line 2342 there's a function called BuildGameMap, which just steps through every tile in every chunk, draws it to a buffer, and takes a screen shot. The only thing I can think is maybe the buffer isn't big enough or the screenshot function has an issue where it doesn't copy all the data, but I'm not familiar enough with the code to find out where it all is.
It might even be a configuration issue that I've overlooked... but I've run out of ideas.
Anyone have any clue as to a resolution for the black bar issue?
[Edit by Dominus: now that the problem is solved the images are linked and not shown]
At first I assumed it was just some sort of padding and removed it, but when I assembled the images, I noticed data was missing, so it's actually where map data should be, its just being rendered solid black.
Here's a low-res example of an assembled map:
http://www.the-coming.com/images/blackBars.jpg
and a normal-res example of a single image:
http://www.the-coming.com/images/u7map00.png
I took a look at the code, in exult.cc at line 2342 there's a function called BuildGameMap, which just steps through every tile in every chunk, draws it to a buffer, and takes a screen shot. The only thing I can think is maybe the buffer isn't big enough or the screenshot function has an issue where it doesn't copy all the data, but I'm not familiar enough with the code to find out where it all is.
It might even be a configuration issue that I've overlooked... but I've run out of ideas.
Anyone have any clue as to a resolution for the black bar issue?
[Edit by Dominus: now that the problem is solved the images are linked and not shown]