barryg613 / uqm-hd

Automatically exported from code.google.com/p/uqm-hd
0 stars 0 forks source link

Planet surfaces from .png images need colormaps (= separate .ct files) #161

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If we want to be able to use the planet surface .pngs properly (like deimos, 
phobos, luna etc.) there should be corresponding .ct (=colortable) files for 
them.

When landing on Mars (the only landable planet currently using planet surface 
.png), the contours of the surface are drawn correctly - they're the same as on 
the minimap. But the colors are wrong. This is because the enlarged version of 
the map for the lander window is drawn with the help of marsmask-001 (the 
8-bit/channel black'n'white version of the mars surface .png) AND a colortable 
file (which I believe currently is planets/dust.ct for Mars as it is originally 
a "dust world").

One should make a proper colortable file for Mars (e.g. Mars.ct) which would 
then be loaded exclusively for the Mars planet. The same for the other planets 
with surface .pngs. 

I have modded these .ct files a couple of years ago 
(http://forum.uqm.stack.nl/index.php?topic=4654.0), but it was quite a laborous 
process, had to do it with a hex editor. Damon, would you have a proper tool 
for editing these .ct files?? Some graphics program might be able to edit them.

There's an explanation of a .ct file's file format in doc/devel/strtab.

Original issue reported on code.google.com by Jaakko.M...@gmail.com on 14 Jan 2013 at 11:10

GoogleCodeExporter commented 8 years ago
I found a way to procure these very easily so now we just need the proper 
surface .pngs...

Original comment by Jaakko.M...@gmail.com on 11 Feb 2013 at 8:01

GoogleCodeExporter commented 8 years ago
Verified.

Original comment by Jaakko.M...@gmail.com on 1 Apr 2013 at 4:56