Important information: this site is currently scheduled to go offline indefinitely by end of the year.

WRC7 .PTX textures

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
RiccoChicco
n00b
Posts: 17
Joined: Sun Apr 05, 2015 5:45 pm
Has thanked: 4 times

WRC7 .PTX textures

Post 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 :)
You do not have the required permissions to view the files attached to this post.
User avatar
MaKiPL
advanced
Posts: 60
Joined: Sat Sep 13, 2014 2:05 pm
Has thanked: 10 times
Been thanked: 20 times

Re: WRC7 .PTX textures

Post 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.
You do not have the required permissions to view the files attached to this post.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: WRC7 .PTX textures

Post 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
User avatar
MaKiPL
advanced
Posts: 60
Joined: Sat Sep 13, 2014 2:05 pm
Has thanked: 10 times
Been thanked: 20 times

Re: WRC7 .PTX textures

Post 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!
RiccoChicco
n00b
Posts: 17
Joined: Sun Apr 05, 2015 5:45 pm
Has thanked: 4 times

Re: WRC7 .PTX textures

Post by RiccoChicco »

Wow! Great news! Thanks a lot!
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: WRC7 .PTX textures

Post 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
Last edited by Acewell on Sat Nov 24, 2018 11:53 pm, edited 1 time in total.
episoder
mega-veteran
mega-veteran
Posts: 162
Joined: Fri Oct 16, 2015 8:05 pm
Has thanked: 6 times
Been thanked: 78 times

Re: WRC7 .PTX textures

Post by episoder »

it got brembos on it. :)
Post Reply