The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
August 18, 2019, 01:52:50 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  The .ct and .xlt formats
« previous next »
Pages: [1] Print
Author Topic: The .ct and .xlt formats  (Read 1199 times)
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
The .ct and .xlt formats
« 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 Smiley.

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 Smiley.

Once again, thanks in advance for any help you can provide Smiley.
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: The .ct and .xlt formats
« Reply #1 on: July 26, 2009, 10:05:55 pm »

I think doc/devel/strtab should be of some help.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
Re: The .ct and .xlt formats
« Reply #2 on: July 26, 2009, 10:39:29 pm »

Thanks, i'll go check that one out Smiley.
Logged
Angelfish
Enlightened
*****
Offline Offline

Posts: 568



View Profile
Re: The .ct and .xlt formats
« Reply #3 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 Wink.

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.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!