Headless Noore Najjar from Far Cry 4.
Still has good balance though.
Thanks go out to Chipicao, vagos21, and Rick for all the information.
And a big thanks to Szkaradek for his Avatar importer. I would have been totally lost on the proper bone IDs without it.
(how did you ever figure all that out anyway? ಥ_ಥ)
I'll see if I can't find the energy to work on importing multiple meshes to complete the characters as well as materials.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Far Cry 3|4
- MrGameboy20XX
- ultra-n00b
- Posts: 4
- Joined: Sun Aug 17, 2014 8:52 pm
- Location: Rivne, Ukraine
- Has thanked: 8 times
- Contact:
- TheDude
- mega-veteran
- Posts: 239
- Joined: Sun Mar 20, 2011 7:35 pm
- Has thanked: 29 times
- Been thanked: 59 times
- Contact:
Re: Far Cry 3|4
viewtopic.php?f=10&t=9927MrGameboy20XX wrote:Hell Yeah!!!
How You unpacked the files?
- TheDude
- mega-veteran
- Posts: 239
- Joined: Sun Mar 20, 2011 7:35 pm
- Has thanked: 29 times
- Been thanked: 59 times
- Contact:
Re: Far Cry 3|4
I'm working on UVs right now. Need to find the matching textures so I can check them out.
After that - download.
After that - download.
- Chipicao
- ultra-veteran
- Posts: 476
- Joined: Thu Feb 03, 2011 11:18 am
- Has thanked: 42 times
- Been thanked: 305 times
- Contact:
Re: Far Cry 3|4
If I may share some insight, the meshes are not resized with bounding boxes. They use mad shader instructions with float constants stored in each xbg file.
Specifically, in the PMCP chunk (Position Constant Multiplier?) you will find two 32-bit floats. Each vertex coordinate is calculated like this: vp = vp*float2 + float1. Then you will get correct sizes.
It's probably the same result, more or less. but this way you'll know for sure it's accurate.
The same thing is done with texture coordinates using data from the PMCU chunk. You will see that many xbg models need a certain scaling for the UV.
You can see it all in action in my maxscript.
Good luck with your research!
Specifically, in the PMCP chunk (Position Constant Multiplier?) you will find two 32-bit floats. Each vertex coordinate is calculated like this: vp = vp*float2 + float1. Then you will get correct sizes.
It's probably the same result, more or less. but this way you'll know for sure it's accurate.
The same thing is done with texture coordinates using data from the PMCU chunk. You will see that many xbg models need a certain scaling for the UV.
You can see it all in action in my maxscript.
Good luck with your research!
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.
- TheDude
- mega-veteran
- Posts: 239
- Joined: Sun Mar 20, 2011 7:35 pm
- Has thanked: 29 times
- Been thanked: 59 times
- Contact:
Re: Far Cry 3|4
Ahhh. Many thanks.
As far as the BBox's go........but would the code look as impressive.
EDIT:
Scripts - https://app.box.com/s/bq6q1us31ja5vo7wrq7hgc3r5mno32p1
NumPy - https://app.box.com/s/jfh8lcrq5vg4odp5yl4x03w4crlyuvlx
Bad:
• Only tested on 1 Far Cry 3 model and 1 Far Cry 4 model (too scared to try any more than that)
• No normals yet
• Only uses first UV set
• File version handling not complete
• Have to manually assign textures (I don't see this ever changing actually)
• Needs more NumPy
• Might get an attitude and beat your dog relentlessly
Good:
• Skin
• Now uses correct vertex and UV scales and offsets per Chipicao's instructions
• Supports character models made up of various parts (at least that one FC4 model I tried)
• Will NOT beat your dog
• Creates basic lambert materials with proper names (click image below)
I guess the wireframe kinda obscures the point about texture assignments working.......this should illustrate things a bit better: http://mrfuzzlebum.deviantart.com/art/P ... 1418081001
As far as the BBox's go........but would the code look as impressive.
EDIT:
Scripts - https://app.box.com/s/bq6q1us31ja5vo7wrq7hgc3r5mno32p1
NumPy - https://app.box.com/s/jfh8lcrq5vg4odp5yl4x03w4crlyuvlx
Bad:
• Only tested on 1 Far Cry 3 model and 1 Far Cry 4 model (too scared to try any more than that)
• No normals yet
• Only uses first UV set
• File version handling not complete
• Have to manually assign textures (I don't see this ever changing actually)
• Needs more NumPy
• Might get an attitude and beat your dog relentlessly
Good:
• Skin
• Now uses correct vertex and UV scales and offsets per Chipicao's instructions
• Supports character models made up of various parts (at least that one FC4 model I tried)
• Will NOT beat your dog
• Creates basic lambert materials with proper names (click image below)
I guess the wireframe kinda obscures the point about texture assignments working.......this should illustrate things a bit better: http://mrfuzzlebum.deviantart.com/art/P ... 1418081001
Last edited by TheDude on Fri Mar 27, 2015 12:57 am, edited 9 times in total.
- CMihai
- veteran
- Posts: 131
- Joined: Sun Jul 05, 2009 12:58 pm
- Has thanked: 13 times
- Been thanked: 1 time
Re: Far Cry 3|4
Only tested on 1 Far Cry 3 model and 1 Far Cry 4 model (too scared to try any more than that)
Anyway, downloading now
Edit: I don't get it how this works, files are were they suppose to be...but then?
Anyway, downloading now
Edit: I don't get it how this works, files are were they suppose to be...but then?
- TheDude
- mega-veteran
- Posts: 239
- Joined: Sun Mar 20, 2011 7:35 pm
- Has thanked: 29 times
- Been thanked: 59 times
- Contact:
Re: Far Cry 3|4
Oh that was genius! I put the wrong file in there.
I fixed it. Anyway, open FC34.py in the script editor then click the >> button.
Make sure it's the >> button and not the > button.
The > button will run the script and erase everything at the same time - not sure what the idea behind that was.
https://www.youtube.com/watch?v=ljnXBWpHqU4
I fixed it. Anyway, open FC34.py in the script editor then click the >> button.
Make sure it's the >> button and not the > button.
The > button will run the script and erase everything at the same time - not sure what the idea behind that was.
https://www.youtube.com/watch?v=ljnXBWpHqU4
- TheDude
- mega-veteran
- Posts: 239
- Joined: Sun Mar 20, 2011 7:35 pm
- Has thanked: 29 times
- Been thanked: 59 times
- Contact:
Re: Far Cry 3|4
OK, I'm not using Microsoft's OneDrive anymore.
Evidently if you create a link to it, it's like a snapshot.
It has something like a history built into it.
Or, in other words, it's not "live". (Irony?)
You can't change something and keep using the same link.
The link will show the contents of that OneDrive folder's state as of the time you create the link.
BOX FTW!
https://app.box.com/s/vojzbyypqorokuhhqrd2
Also:
http://www.youtube.com/watch?v=8xh7TpbS5VI
Evidently if you create a link to it, it's like a snapshot.
It has something like a history built into it.
Or, in other words, it's not "live". (Irony?)
You can't change something and keep using the same link.
The link will show the contents of that OneDrive folder's state as of the time you create the link.
BOX FTW!
https://app.box.com/s/vojzbyypqorokuhhqrd2
Also:
http://www.youtube.com/watch?v=8xh7TpbS5VI
Last edited by TheDude on Wed Dec 10, 2014 9:09 pm, edited 1 time in total.