Join also our Discord channel! Click here.

Far Cry 3|4

Post questions about game models here, or help out others!
User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Far Cry 3|4

Post by TheDude » Sat Dec 06, 2014 5:08 pm

Headless Noore Najjar from Far Cry 4.
Still has good balance though. :D

Image

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.

User avatar
MrGameboy20XX
ultra-n00b
Posts: 4
Joined: Sun Aug 17, 2014 8:52 pm
Location: Rivne, Ukraine
Has thanked: 8 times
Contact:

Re: Far Cry 3|4

Post by MrGameboy20XX » Sat Dec 06, 2014 8:40 pm

Hell Yeah!!!
How You unpacked the files?
Image

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Sat Dec 06, 2014 11:06 pm

MrGameboy20XX wrote:Hell Yeah!!!
How You unpacked the files?
viewtopic.php?f=10&t=9927

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Sun Dec 07, 2014 2:28 am

The bounding boxes...
Image

...have been defeated. :D


Image


EDIT: "Math is power!"

User avatar
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

Post by CMihai » Sun Dec 07, 2014 4:39 pm

Wow someone actually does this inside Maya, as a Maya user, big thanks!

When we can expect a download? Also UVs are working?

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Sun Dec 07, 2014 4:55 pm

I'm working on UVs right now. Need to find the matching textures so I can check them out.
After that - download.

User avatar
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

Post by CMihai » Sun Dec 07, 2014 4:59 pm

I see, thanks again :D

User avatar
Chipicao
ultra-veteran
ultra-veteran
Posts: 476
Joined: Thu Feb 03, 2011 11:18 am
Has thanked: 42 times
Been thanked: 304 times
Contact:

Re: Far Cry 3|4

Post by Chipicao » Sun Dec 07, 2014 6:13 pm

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!
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.

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Sun Dec 07, 2014 7:09 pm

Ahhh. Many thanks.
As far as the BBox's go........but would the code look as impressive. :lol:

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)

Image

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
:oops:
Last edited by TheDude on Fri Mar 27, 2015 12:57 am, edited 9 times in total.

User avatar
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

Post by CMihai » Tue Dec 09, 2014 11:46 am

Only tested on 1 Far Cry 3 model and 1 Far Cry 4 model (too scared to try any more than that)

:lol:

Anyway, downloading now :D

Edit: I don't get it how this works, files are were they suppose to be...but then? :?:

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Tue Dec 09, 2014 2:17 pm

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

User avatar
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

Post by CMihai » Tue Dec 09, 2014 6:47 pm

Re-downloaded the file twice, still no trace of FC34.py, the only script file is FC4_Maya.ms but that doesn't work.

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Tue Dec 09, 2014 7:19 pm

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
Last edited by TheDude on Wed Dec 10, 2014 9:09 pm, edited 1 time in total.

User avatar
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

Post by CMihai » Tue Dec 09, 2014 8:00 pm

Oh well, anyway works fine now :D

Testing the characters now, one thing, you said that only the first UV is working, there are characters/meshes with two or more sets of UV?

User avatar
TheDude
mega-veteran
mega-veteran
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 56 times
Contact:

Re: Far Cry 3|4

Post by TheDude » Tue Dec 09, 2014 8:52 pm

I've only seen 2 so far, but according to Chipicao there can be as many as 4.

Post Reply