XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Jan 23, 2019 2:49 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Hitman 2016 textures
PostPosted: Sun Nov 11, 2018 6:57 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 417
Has thanked: 100 times
Have thanks: 260 times














You can make the ads go away by registering

I made the changes in hitman.h
Image

And it already works on one of the sample files:
Image
The pattern seems too unique to be a mistake but then again, i don't know. It coudl be a bad decode, or simply a noise texture. The other 3 it skipped over and wouldn't decode so there may be more work to do. but it's a start. if it's skipping over files, it means it doesn't know their format code, so it's possible (even likely) they have changed what the codes mean.


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Mon Nov 12, 2018 4:00 am 
Offline
beginner

Joined: Tue Sep 08, 2015 9:51 am
Posts: 29
Has thanked: 19 times
Have thanks: 5 times
I'm going insane trying to build this. Definitely a me problem though.

The only thing I've changed is the line

From
#include <Eigen/Dense>
To
#include "Eigen/Dense"

And building a Release x86 won't reproduce a file of 28kb size, and when used it produces errors with the texture conversion.

:/


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Sat Jan 19, 2019 10:38 pm 
Offline
ultra-n00b

Joined: Mon Nov 12, 2018 3:51 pm
Posts: 9
Has thanked: 1 time
Have thanks: 0 time
volfin wrote:
I made the changes in hitman.h
Image

And it already works on one of the sample files:
Image
The pattern seems too unique to be a mistake but then again, i don't know. It coudl be a bad decode, or simply a noise texture. The other 3 it skipped over and wouldn't decode so there may be more work to do. but it's a start. if it's skipping over files, it means it doesn't know their format code, so it's possible (even likely) they have changed what the codes mean.


hhchunter wrote:
I'm going insane trying to build this. Definitely a me problem though.

The only thing I've changed is the line

From
#include <Eigen/Dense>
To
#include "Eigen/Dense"

And building a Release x86 won't reproduce a file of 28kb size, and when used it produces errors with the texture conversion.

:/



So no progress or update so far. I'm really looking forward for this updated tool, been waiting for like two months and still waiting. I hope someone is working on it. Any update on progress will be appreciated.


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Sun Jan 20, 2019 3:09 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
if you can post some samples i will try to make a Noesis python script. :D

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Sun Jan 20, 2019 9:39 am 
Offline
ultra-n00b

Joined: Mon Nov 12, 2018 3:51 pm
Posts: 9
Has thanked: 1 time
Have thanks: 0 time
Acewell wrote:
if you can post some samples i will try to make a Noesis python script. :D


Here's the link: https://files.fm/u/j7xhur7e

Two two samples from two different chunks.


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Sun Jan 20, 2019 11:09 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
this Noesis python script will open your dat and vap samples. :D
*script updated Jan 22, 2019*

supports BC1, BC3, BC4, BC5 and BC7, top level mip only.

since the file extensions are generic and the script has no proper type check
you may encounter an error if there is a script or plugin conflict, so move any
other dat or vap scripts out of plugins folder while using this one. :]


Attachments:


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


_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Last edited by Acewell on Tue Jan 22, 2019 2:55 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Mon Jan 21, 2019 9:43 am 
Offline
ultra-n00b

Joined: Mon Nov 12, 2018 3:51 pm
Posts: 9
Has thanked: 1 time
Have thanks: 0 time
Acewell wrote:
this Noesis python script will open your dat and vap samples. :D

supports BC5 and BC7, top level mip only.
i assumed the game where your samples came from was "Hitman 2",
i'll need more samples to extend the script.
since the file extensions are generic and the script has no proper type check
you may encounter an error if there is a script or plugin conflict, so move any
other dat or vap scripts out of plugins folder while using this one. :]


Yup it's hitman 2.

Here are some texture samples : https://files.fm/u/wfbvc2kb

Normal maps are using ATI2, ATI1
Specular are using DX10
and Textures are using DXT1

Also i'm getting export complete on some textures but the exported textures are not showing in the output folder.

Complete message:
tga - TGA Image
Output extension has set output file type
Detected file type: Hitman 2 [PC]
1024 :imgWidth
1024 :imgHeight
0x49 :imgfmt
WARNING: Not enough texture data for specified image type!


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Mon Jan 21, 2019 1:48 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
elijah786s1 wrote:
Here are some texture samples : https://files.fm/u/wfbvc2kb

i need to examine unconverted dat/vap samples, i can do nothing with dds files. (:
elijah786s1 wrote:
0x49 :imgfmt

there is no 0x49 format declared in the script, this is why i need more samples. :D

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 7:28 am 
Offline
ultra-n00b

Joined: Mon Nov 12, 2018 3:51 pm
Posts: 9
Has thanked: 1 time
Have thanks: 0 time
Acewell wrote:
elijah786s1 wrote:
Here are some texture samples : https://files.fm/u/wfbvc2kb

i need to examine unconverted dat/vap samples, i can do nothing with dds files. (:
elijah786s1 wrote:
0x49 :imgfmt

there is no 0x49 format declared in the script, this is why i need more samples. :D


Here https://files.fm/u/pnvdxhrf

Samples4 are from chunk0 and Samples5 from chunk0patch. Let me know if you need more.


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 11:36 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
okay script updated here for BC1 and BC4 :D
viewtopic.php?p=147704#p147704

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 1:08 pm 
Offline
ultra-n00b

Joined: Sat Feb 18, 2017 3:12 pm
Posts: 5
Has thanked: 2 times
Have thanks: 0 time
Textures from TEXD\ seem to convert fine but all the textures in the TEXT\ folder have issues still. Here are some samples

Samples here: https://i.notex.app/C2FZ8Jt.zip

These were taken from chunk0patch2

Edit: Found one texture from the TEXD folder that doesn't convert: https://i.notex.app/lzyVXQx.vap


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 3:09 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1149
Has thanked: 2294 times
Have thanks: 661 times
Notex wrote:
Textures from TEXD\ seem to convert fine but all the textures in the TEXT\ folder have issues still. Here are some samples

my advice is stay out of that TEXT folder, the header info doesn't work with the data provided.
the only info that was correct was the format, the width/height/size info doesn't work.

example info in header from 000000000000000e.vap:
format stored 0x49 = BC1/DXT1 - this was correct
width and height = 1024x1024 - incorrect, actual size of largest stored mip is 128x128
mip 0 size stored = 0x80000 - incorrect, actual size of 128x128 dxt1 is 0x2000,
and only 0x2ab8 of image data is actually stored in the file

those files may as well be headerless, you can still convert them by hand. (:


Notex wrote:
Found one texture from the TEXD folder that doesn't convert: https://i.notex.app/lzyVXQx.vap

okay script updated here again to support BC3/DXT5. :D
viewtopic.php?p=147704#p147704

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 4:33 pm 
Offline
ultra-n00b

Joined: Sat Feb 18, 2017 3:12 pm
Posts: 5
Has thanked: 2 times
Have thanks: 0 time
Acewell wrote:
okay script updated here again to support BC3/DXT5. :D
viewtopic.php?p=147704#p147704

Thanks so much :)

Edit: Would it be possible at all to reconvert textures? I'm just curious, I've never used noesis before and it doesn't seem to have that functionality.


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 7:53 pm 
Offline
ultra-n00b

Joined: Mon Nov 12, 2018 3:51 pm
Posts: 9
Has thanked: 1 time
Have thanks: 0 time
Acewell wrote:
Notex wrote:
Textures from TEXD\ seem to convert fine but all the textures in the TEXT\ folder have issues still. Here are some samples

my advice is stay out of that TEXT folder, the header info doesn't work with the data provided.
the only info that was correct was the format, the width/height/size info doesn't work.

example info in header from 000000000000000e.vap:
format stored 0x49 = BC1/DXT1 - this was correct
width and height = 1024x1024 - incorrect, actual size of largest stored mip is 128x128
mip 0 size stored = 0x80000 - incorrect, actual size of 128x128 dxt1 is 0x2000,
and only 0x2ab8 of image data is actually stored in the file

those files may as well be headerless, you can still convert them by hand. (:


Notex wrote:
Found one texture from the TEXD folder that doesn't convert: https://i.notex.app/lzyVXQx.vap

okay script updated here again to support BC3/DXT5. :D
viewtopic.php?p=147704#p147704


Thanks and keep up the good work. :up: :]

Notex wrote:
Acewell wrote:
okay script updated here again to support BC3/DXT5. :D
viewtopic.php?p=147704#p147704

Thanks so much :)

Edit: Would it be possible at all to reconvert textures? I'm just curious, I've never used noesis before and it doesn't seem to have that functionality.


I think re-importing is possible through quickbms.


Top
 Profile  
 
 Post subject: Re: Hitman 2016 textures
PostPosted: Tue Jan 22, 2019 8:39 pm 
Offline
ultra-n00b

Joined: Mon Nov 12, 2018 3:51 pm
Posts: 9
Has thanked: 1 time
Have thanks: 0 time
Acewell wrote:
okay script updated here again to support BC3/DXT5. :D
viewtopic.php?p=147704#p147704


https://files.fm/u/gunfa3t2 These four files are not exporting.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users 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