ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Nov 25, 2020 10:03 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Help Converting PNG
PostPosted: Mon Nov 16, 2020 3:02 pm 

Joined: Wed Jul 01, 2020 7:45 pm
Posts: 79
i need help. i am trying to get custom textures and i need to convert a normal png to the png type used in game


Attachments:
File comment: the png used in the game. i heard its DXT3 data with a custom header and a png extension but i really need help to convert a normal png to this type of weird png
SHADOWMKII-Body-D.rar [43.44 KiB]
Downloaded 16 times
File comment: my normal png
SHADOWMKII-Body-Dout.png [90.13 KiB]
Downloaded 1 time
Top
   
 Post subject: Re: Help Converting PNG
PostPosted: Mon Nov 16, 2020 9:18 pm 

Joined: Wed Jul 01, 2020 7:45 pm
Posts: 79
i would seriously appreciate the help a lot because this is the one thing left i would like to change from the game


Top
   
 Post subject: Re: Help Converting PNG
PostPosted: Wed Nov 18, 2020 12:02 am 

Joined: Wed Jul 01, 2020 7:45 pm
Posts: 79
i tried using noesis, i tried making a bms script and i can't, i just really want this to work


Top
   
 Post subject: Re: Help Converting PNG
PostPosted: Thu Nov 19, 2020 8:24 pm 

Joined: Wed Jul 01, 2020 7:45 pm
Posts: 79
so i tried using photoshop cs6 DXT3 DDS plugin and exported it. it was too big of a file but when i hit R to retry, it worked. exept for the fact that the car turned really dark black and messed up textures for the car(reimport2 just crashed it), and i tried exporting dxt1 and that just crashed it.


Top
   
 Post subject: Re: Help Converting PNG
PostPosted: Fri Nov 20, 2020 4:01 am 

Joined: Tue Sep 01, 2015 9:44 am
Posts: 82
texture header 20bytes:
4bytes uint32 width;
4bytes uint32 height;
4bytes uint32 numMipmaps;
4bytes uint32 unknown;//hash??
4bytes uint32 texFormat; //DXT3

Xbytes data; include Mipmaps data

If the width and height remain the same. You just need use PS export dds dxt3 format image.The mipmaps option must be checked.
Use hex editor copy dds [0x80-file end] data to png at 0x14 position.
I think it will work.

If the width and height are changed, the first 3 values need to be changed.

DXT3 is 8bpp. 4 mipmaps size calculate:
512*256 131072
256*128 32768
128*64 8192
64*32 2048
total 174080 bytes.


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited