ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Jun 21, 2021 12:18 am

All times are UTC




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Wed Nov 25, 2020 5:09 am 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
textures.dat gleams a lot of info on how textures are set up

Code:
//
// Textures.dat
//
// Use to specify texture format.
//
// Valid formats:
//
//   [none]  -- don't compress
//   dxt1   -- use dxt1 compression (opaque and one bit alpha)
//   dxt2   -- (don't use -- same as dxt3)
//   dxt3   -- use dxt3 compression (explicit alpha)
//   dxt4   -- (don't use -- same as dxt5)
//   dxt5   -- use dxt5 compression (interpolated alpha)
//
// If a file is specified here without a compression format, then 565 will be used if
// the texture does not have an alpha channel, or 8888 if it does.
//
// If a file is not specified here, then dtx1 will be used if the texture does not have
// an alpha channel, or dxt5 if it does.
//
// Note: Dxt1/dxt5 is now automatically determined if not explicitly specified in this
// file. If the texture has over 90% black or white in alpha channel, then dxt1 is
// used.
//
// Wildcards are supported.
//

//Planes
BanditoPF~n.tga=dxt5
bipe_PF~n.tga=dxt5
Brigand_RedSkulls_PF~n.tga=dxt5
CajunSeaplanePF~n.tga=dxt5
copPlane_PF~n.tga=dxt5
desertfox_PF~n.tga=dxt5
devastator~n.tga=dxt5
DopplegangerPF~n.tga=dxt5
GangsterPF~n.tga=dxt5
PiranhaPF~n.tga=dxt5

pf_bandito_mp_*.tga=dxt5
pf_biplane_mp_*.tga=dxt5
pf_brigand_mp_*.tga=dxt5
pf_copPlane_mp_*.tga=dxt5
pf_desertfox_mp_*.tga=dxt5
pf_devastator_mp_*.tga=dxt5
pf_doppleganger_mp_*.tga=dxt5
pf_gangster_mp_*.tga=dxt5
pf_minigyro_mp_*.tga=dxt5
pf_piranha_mp_*.tga=dxt5
pf_seaplane_mp_*.tga=dxt5

//Sky
all_sh_skyNight.tga=skybox
all_sh_skyNightbase.tga
AZ_Skymorning.tga=skybox
CA_skyStorm.tga=skybox
CH_Sky_Twilight.tga=skybox
CH_Sky_TwilightBase.tga
CH_SkyNight.tga=skybox
CH_SkyNightBase.tga
MP_Redsky.tga=skybox
MP_RedskyBase.tga
mpl_az_skySunnyDay.tga=skybox
mpl_az_skySunnyDayBase.tga
SH_cloud1.tga=dxt5
sh_Redsky.tga=skybox
sh_RedskyBase.tga
SH_Skystorm.tga=skybox
SH_SkystormBase.tga
SH_StormyDay.tga=skybox
SH_StormyDayBase.tga
CH_Sky_Twilight_End.tga=skybox
CH_Sky_Twilight_EndBase.tga

CH_Sky_Twilight_ui.tga
CH_Moon.tga
CH_MoonGlow.tga

//Terrain
A_SH_Shore2.tga
AZ_dirt_runway.tga=dxt5
AZ_terrain_Boss.tga=dxt5
AZ_terrain_Maria.tga=dxt5
AZ_terrain_Navajo.tga=dxt5
AZ_terrain_Scouting.tga=dxt5
CH_FinalCin.tga
CH_FinalCinBase.tga
mpl_az_terrain.tga=dxt5
SH_ShoreMask1.tga
sh_valcano.tga=dxt5

//Effects
rocketflare.tga
rocketflare_blue.tga
rocketflare_red.tga
strob_red.tga
strobe_blue.tga
strobe_green.tga
strobe_white.tga
strobe_yellow.tga
tracer!0.tga=dxt5
tracer!1.tga=dxt5
tracer!2.tga=dxt5
tracer!3.tga=dxt5
tracer_aagun_flak.tga=dxt5
blast4.tga=dxt5

//HUD
hud_reticule_*.tga

//Signs
CH_sgn_forbidden.tga
CH_sgn_service1.tga
CHn_neonSignsArrow.tga
CHn_neonSigns01.tga
CHn_neonBlue.tga
CHn_neonRed.tga
SH_neonSigns.tga
ch_sgn_riviera.tga

//Miss.
droplets~b.tga
Expedition_Trans.tga=dxt5
SH_Boss_Zep_Logo.tga=dxt5




Attempting to figure out how to get all of these .tga textures to display properly. Do not appear to be actual TGA textures. Included are two examples: one TGA texture that was successfully processed through a Noesis plugin, and another TGA texture that while processed, would fail in said plugin.

Attachment:
File comment: A .tga file (compressed into .7z to avoid the 'unable to calculate image dimensions error) that could not be processed. Definitely contains image information when processed through TextureFinder, but may be swizzled.
sh_Redsky.7z [309.25 KiB]
Downloaded 98 times


Attachment:
File comment: A successfully processed .tga to PNG texture. Despite being DXT5, appears to lack alpha. may be because of incomplete plugin not supporting alpha.
desertfox_pfout.png [342.23 KiB]
Not downloaded yet


Thank you for the assistance.


Top
   
PostPosted: Thu Nov 26, 2020 4:54 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 706
script updated here for your sh_Redsky.tga sample:
viewtopic.php?f=9&t=4264&p=23703#p23703
looked like morton order rgba8888
the color channels may need to be swapped,
not sure what the original image looked like.
more of those type samples would be helpful. :)

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Thu Nov 26, 2020 9:16 pm 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
Acewell wrote:
script updated here for your sh_Redsky.tga sample:
viewtopic.php?f=9&t=4264&p=23703#p23703
looked like morton order rgba8888
the color channels may need to be swapped,
not sure what the original image looked like.
more of those type samples would be helpful. :)


Can confirm the texture output here is unfortunately borked. Red and blue color channels need to be swapped, and colors will appear fine then. However, this texture appears to be assembled incorrectly.
Someone else was able to get it working, here's how it's supposed to look:

Attachment:
1.7z [295.94 KiB]
Downloaded 87 times


If you have Discord, please add me so we can talk there...will make this much easier.

Revolver Ocelot#4459


Top
   
PostPosted: Fri Nov 27, 2020 5:28 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 706
ok i guess the unswizzling algo needs some adjusting
i'll play around with it to see if i can correct it.
sorry i don't do discord, more samples would be good though. :)

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Fri Nov 27, 2020 7:53 am 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
Alrighty, sounds good!

Here are some more samples.

Attachment:
menu.7z [68.67 KiB]
Downloaded 88 times


Attachment:
SH_Tutorial.7z [127.2 KiB]
Downloaded 84 times


Top
   
PostPosted: Fri Nov 27, 2020 9:30 am 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
While I'm at it...here's another.

Attachment:
SH_Tutorial$lmap.7z [202.92 KiB]
Downloaded 87 times


Top
   
PostPosted: Tue Dec 01, 2020 2:15 pm 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
Bump. Any updates?


Top
   
PostPosted: Sun Dec 06, 2020 6:21 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 706
not yet, also looks like a couple more formats in your new samples.
this is low priority for me since you said someone was already able to
parse these correctly for you.

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Tue Dec 08, 2020 6:14 am 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
He was able to parse that one file. He wasn't able to do the rest, unfortunately.


Top
   
PostPosted: Thu May 13, 2021 9:03 am 

Joined: Sat Dec 01, 2018 1:43 pm
Posts: 27
Bump, still need assistance here


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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