The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Angelfish on July 26, 2009, 08:41:03 pm



Title: The .ct and .xlt formats
Post by: Angelfish on July 26, 2009, 08:41:03 pm
I've been experimenting my way a bit into the procedural generation of planet surfaces, and I've been trying to make them look a bit like the planets used in SC2. Therefore it'd be great if I could use the original SC2 colormaps, ofcourse :).

I've been reading a bit into this document:

http://sc2.svn.sourceforge.net/viewvc/sc2/trunk/sc2/doc/devel/planetrender?revision=1367&view=markup
And this example of such a colormap: http://sc2.svn.sourceforge.net/viewvc/sc2/trunk/sc2/doc/devel/blue-gas-giant-pal.png?revision=2621&view=markup

But unfortunately they don't exactly describe how the respective formats are built up. For the colormaps I expected red, green and blue values each sequentially stored with one byte for each color channel.. But unfortunately that doesn't generate the expected results. So if anyone knows how these formats are built up exactly that'd be great :).

Once again, thanks in advance for any help you can provide :).


Title: Re: The .ct and .xlt formats
Post by: meep-eep on July 26, 2009, 10:05:55 pm
I think doc/devel/strtab should be of some help.


Title: Re: The .ct and .xlt formats
Post by: Angelfish on July 26, 2009, 10:39:29 pm
Thanks, i'll go check that one out :).


Title: Re: The .ct and .xlt formats
Post by: Angelfish on July 30, 2009, 03:46:52 am
Just so you know, I'm now able to read these colormaps and height translation files.
I've created a small demo which is able to procedurally generate all the Star Control planet types, although they could still use some tweaking ;).

http://www.megafileupload.com/en/file/122792/surface2planet-rar.html

You need the latest flash player to view this. Source is included, it's a flashdevelop project using Actionscript 3 and Adobe Flex for compiling.