Generally I don't do skeletons, it adds an order of magnitude of time and complexity. especially when like with DeusEx and Hitman, the skeleton is in a separate file from the model. I'll often import original weights if I figure out the format, but so far, I've been unable to decipher how they are stored for Hitman/DeusEx:MDtrexjones wrote:Not sure if I've missed something here or elsewhere, but have skeletons been figured into the picture yet? I'm super familiar with volfin's Alien tools and am just getting around to this one and the Deus Ex one, so I figured I'd check...
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Hitman 2016 textures
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
Minor Update:
- Ensure Object mode is active before attempting import
- Validated functionality back to Blender version 2.70 (oldest supported)
Edit: newer version below.
- Ensure Object mode is active before attempting import
- Validated functionality back to Blender version 2.70 (oldest supported)
Edit: newer version below.
Last edited by volfin on Mon Jan 30, 2017 6:42 am, edited 1 time in total.
-
- beginner
- Posts: 29
- Joined: Tue Sep 08, 2015 9:51 am
- Has thanked: 19 times
- Been thanked: 10 times
Re: Hitman 2016 textures
Hey Volfin, would you be able to update this to include support for these models.volfin wrote:Minor Update:
- Ensure Object mode is active before attempting import
- Validated functionality back to Blender version 2.70 (oldest supported)
You do not have the required permissions to view the files attached to this post.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
Can you tell me more about this model? Which chunk file did it come from, and what was the original directory/filename? It's format is completely different than every other model in the game I've seen. Is it even from Hitman?
-
- beginner
- Posts: 29
- Joined: Tue Sep 08, 2015 9:51 am
- Has thanked: 19 times
- Been thanked: 10 times
Re: Hitman 2016 textures
It came from an Alpha Build of the game which came with hashes, thus the filename. Interesting to hear that's completely different.volfin wrote:Can you tell me more about this model? Which chunk file did it come from, and what was the original directory/filename? It's format is completely different than every other model in the game I've seen. Is it even from Hitman?
It might help to include options on the original script to import file extensions .prim & .pc_prim, because I guess that's what the real file format is for .dat files extracted in the PRIM folder is?
I've included another example
You do not have the required permissions to view the files attached to this post.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
Ah that explains it then. Yeah it's not that far off, but several key blocks are missing data and have different sizes. They also stored vertices as integers instead of floats which isn't how any of the models were stored in the release. I think I can make something that will load them, but it may not be that stable, I'd have to basically research the whole format again hehe.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
Ok this version adds support for Alpha version models (at least based on the two I saw.)
Enjoy.
Enjoy.
You do not have the required permissions to view the files attached to this post.
-
- beginner
- Posts: 29
- Joined: Tue Sep 08, 2015 9:51 am
- Has thanked: 19 times
- Been thanked: 10 times
Re: Hitman 2016 textures
That was way faster than expected.volfin wrote:Ok this version adds support for Alpha version models (at least based on the two I saw.)
Enjoy.
Adding extension support for .pc_prim would be helpful, saves mass renaming through command line.
EDIT: I have more work for you Volfin, seems like some sort of linked mesh file? Not sure what it contains :P
You do not have the required permissions to view the files attached to this post.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
I did:hhchunter wrote: That was way faster than expected.
Adding extension support for .pc_prim would be helpful, saves mass renaming through command line.
it will show those 3 extensions. And anyway if you just click the "Funnel" icon (filter), Blender will show all files. no need to rename anything.
i'll take a look, if it's simple i'll add it, if it's off the wall, I probably don't have time. I mean most of this stuff should be in the release game anyway right?hhchunter wrote: EDIT: I have more work for you Volfin, seems like some sort of linked mesh file? Not sure what it contains
EDIT: yeah this one is a strange mix of the old and the new, and there's simply no way to tell from the file what version of what to use. I'd have to write a standalone importer just for this 'alpha' and since I doubt many have it, it's a lot of work for one or two people's benefit. Sorry, but I just don't have the time to spend on this.
-
- beginner
- Posts: 29
- Joined: Tue Sep 08, 2015 9:51 am
- Has thanked: 19 times
- Been thanked: 10 times
Re: Hitman 2016 textures
In lieu of HITMAN 2 being released and using the same texture format, but with a possibly slightly different header.
Quick analysis looks like it's dropped or moved around two bits?
- Height & width looks to be @ 0xC & 0xE.
Some examples of the new texture format can be downloaded from here
I've started rewriting cippyboy's simple texture conversion tool, however I need help / still need to remove it's dependencies on his RE libraries and somehow replicate them using std or something simple. I believe Volfin had done this previously but there wasn't any source I could continue/update or investigate from Makes it a bit of a hard task for someone who barely understands how to code.
https://github.com/HHCHunter/HITMAN/tre ... /G2TexConv
Quick analysis looks like it's dropped or moved around two bits?
- Height & width looks to be @ 0xC & 0xE.
Some examples of the new texture format can be downloaded from here
I've started rewriting cippyboy's simple texture conversion tool, however I need help / still need to remove it's dependencies on his RE libraries and somehow replicate them using std or something simple. I believe Volfin had done this previously but there wasn't any source I could continue/update or investigate from Makes it a bit of a hard task for someone who barely understands how to code.
https://github.com/HHCHunter/HITMAN/tre ... /G2TexConv
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
if you want the source code, all you have to do is ask. I mostly didn't give it out because it's an embarrassingly quick and dirty hack job, code is messy.hhchunter wrote:In lieu of HITMAN 2 being released and using the same texture format, but with a possibly slightly different header.
Quick analysis looks like it's dropped or moved around two bits?
- Height & width looks to be @ 0xC & 0xE.
Some examples of the new texture format can be downloaded from here
I've started rewriting cippyboy's simple texture conversion tool, however I need help / still need to remove it's dependencies on his RE libraries and somehow replicate them using std or something simple. I believe Volfin had done this previously but there wasn't any source I could continue/update or investigate from Makes it a bit of a hard task for someone who barely understands how to code.
https://github.com/HHCHunter/HITMAN/tre ... /G2TexConv
But you're welcome to the code if you want. Here's my version of Cippy's converter. The project is for Visual Studio 2017 but the code should work with older compilers.
Note that it's still dependent on the Eigen Math Library: http://eigen.tuxfamily.org/index.php?title=Main_Page (my version was from 2016 so hopefully newer versions still work fine)
https://drive.google.com/file/d/1gjODb4 ... sp=sharing
And yeah, looking at the files, I think the data offsets are all changed.
Last edited by volfin on Sun Nov 11, 2018 6:45 pm, edited 1 time in total.
-
- beginner
- Posts: 29
- Joined: Tue Sep 08, 2015 9:51 am
- Has thanked: 19 times
- Been thanked: 10 times
Re: Hitman 2016 textures
Honestly was not expecting a reply that quick! Amazed you still have the files on hand.if you want the source code, all you have to do is ask. I mostly didn't give it out because it's an embarrassingly quick and dirty hack job, code is messy.
But you're welcome to the code if you want. Here's my version of Cippy's converter. The project is for Visual Studio 2017 but the code should work with older compilers.
Note that it's still dependent on the Eigen Math Library: http://eigen.tuxfamily.org/index.php?title=Main_Page (my version was from 2016 so hopefully newer versions still work fine)
https://drive.google.com/file/d/1gjODb4 ... sp=sharing
Gonna have a read over this code and see if I can adapt it to detect HITMAN & HITMAN 2 textures.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Hitman 2016 textures
I can tell you two differences I already see. The top header used to have 16 bytes before the width/height, now it only has 12 bytes.
And the header overall used to be 92 bytes, the header_size could be found at byte 88 (stating header was 92 bytes)
But now the header is 144 bytes, with the header_size being found at byte 140 (stating header is 144 bytes)
If you make those two changes it may work. (or not, who knows what else has changed)
And the header overall used to be 92 bytes, the header_size could be found at byte 88 (stating header was 92 bytes)
But now the header is 144 bytes, with the header_size being found at byte 140 (stating header is 144 bytes)
If you make those two changes it may work. (or not, who knows what else has changed)