XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Mar 27, 2017 7:40 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PTX Pump it Up DCT Based Format - an odd one
PostPosted: Sun Feb 05, 2017 9:54 pm 
Offline
ultra-n00b

Joined: Sat Jan 22, 2011 10:12 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time














You can make the ads go away by registering

A couple of colleagues and myself have been banging our head off of this format for years - there exists an old dos program that can convert TGAs to this format, accepts two types (24bpp and 32bpp), and somehow it uses DCT and some super weird compression to come up with the final file.

This is for the first 3 pump it up games in the series that used 3DFX cards and some defunct game engine that no longer exists.

I've dug into DCT a bit, but haven't made a whole lot of progress past that.

Odd - an 8x8 24bpp all white image compresses data down to about 5 bytes, if it's 32bpp, the final data is about 8 bytes. It sort of looks like jpg but it's gotta be different somehow.

From what I've figured out:
Header[16]
char magic[4] = {'P','T','X','\0'}
int16 somevalue = 256 (always 256)
int16 width >> 3
int16 height >> 3
int16 type (0x81 = 24bpp, 0x82 = 32bpp)
int16 somevalue2 = 0x12C (seems to always be 300)
int16 padding = null

The rest of the file is the pixel data in some form.

I've attached the tga->ptx utility (PTX.exe), an 8x8 white rgb tga, and its equivalent ptx file.

Maybe this will interest someone at some point - it's literally the last file format that we never quite figured out. The goal is to eventually load this into a library while rebuilding the dos game to run on linux/win32 which is pretty much working at the moment, but the ptx unpacking functions in the game error out and it would be easier to replace them if we knew what it was doing.

Cheers!


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: PTX Pump it Up DCT Based Format - an odd one
PostPosted: Sun Feb 05, 2017 10:39 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 703
Has thanked: 1561 times
Have thanks: 350 times
maddjakkal wrote:
int16 somevalue2 = 0x12C (seems to always be 300)

at first glance i would say that is uncompressed size but i can't get
the ptx.exe to work so i can convert various sizes to check. :]

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: PTX Pump it Up DCT Based Format - an odd one
PostPosted: Sun Feb 05, 2017 11:02 pm 
Offline
ultra-n00b

Joined: Sat Jan 22, 2011 10:12 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
AceWell wrote:
maddjakkal wrote:
int16 somevalue2 = 0x12C (seems to always be 300)

at first glance i would say that is uncompressed size but i can't get
the ptx.exe to work so i can convert various sizes to check. :]


It's a dos executable - best bet is to use like dosbox daum svn or something, that's how I did it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group