Page 1 of 1

WRC7 .PTX textures

Posted: Mon Dec 25, 2017 11:11 pm
by RiccoChicco
Hi!

I try to edit some textures from the last WRC game, unfortunately once I extracted archives, I find a lot of .PTX textures. I'm quite conviced it's some sort of .DDS since it mentions DXT1/3/5 when reading it with an hex editor. I saw that someone else already asked something similar for WRC6, unfortnately no one answered.

If anyone know how to go to/from PTX to a more standard format, it will be greatly appreciated! :D

An example texture has been joined to the post :)

Re: WRC7 .PTX textures

Posted: Wed Dec 27, 2017 11:45 am
by MaKiPL
Normal un-compressed/un-obfuscated DXT3/5 file with MipMaps (Big endian!). See attachement

This file has modified/damaged DDS format, but you'll be fine if you read it after normal DDS header size. Anyway, just grab sample DXT1 DDS file and rebuild header.

Re: WRC7 .PTX textures

Posted: Wed Dec 27, 2017 2:58 pm
by Acewell
its not big-endian or modified/damaged, just typical dxt stored in RIFF container with a 130 byte header.
seems the data might be stored in max chunk size of 0x80000, though before i make a script i need more
variety of samples to look at for compare. i plan on making a script to work with both WRC6 and WRC7. :D

https://en.wikipedia.org/wiki/Resource_ ... ile_Format

Re: WRC7 .PTX textures

Posted: Thu Dec 28, 2017 1:34 pm
by MaKiPL
AceWell wrote:its not big-endian or modified/damaged, just typical dxt stored in RIFF container with a 130 byte header.
Every day I learn something new, I though RIFF is only audio file. Thanks!

Re: WRC7 .PTX textures

Posted: Tue Jan 02, 2018 11:35 pm
by RiccoChicco
Wow! Great news! Thanks a lot!

Re: WRC7 .PTX textures

Posted: Wed Jan 03, 2018 12:22 am
by Acewell
if you upload more samples i will make a Noesis python script (:

edit
my WRC 6 ptx Noesis python script here seems to work with this game samples. :D
viewtopic.php?p=139861#p139861

Re: WRC7 .PTX textures

Posted: Wed Jan 03, 2018 1:01 am
by episoder
it got brembos on it. :)