Page 1 of 4

Far Cry 3|4

Posted: Sat Dec 06, 2014 5:08 pm
by TheDude
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.

Re: Far Cry 3|4

Posted: Sat Dec 06, 2014 8:40 pm
by MrGameboy20XX
Hell Yeah!!!
How You unpacked the files?

Re: Far Cry 3|4

Posted: Sat Dec 06, 2014 11:06 pm
by TheDude
MrGameboy20XX wrote:Hell Yeah!!!
How You unpacked the files?
viewtopic.php?f=10&t=9927

Re: Far Cry 3|4

Posted: Sun Dec 07, 2014 2:28 am
by TheDude
The bounding boxes...
Image

...have been defeated. :D


Image


EDIT: "Math is power!"

Re: Far Cry 3|4

Posted: Sun Dec 07, 2014 4:39 pm
by CMihai
Wow someone actually does this inside Maya, as a Maya user, big thanks!

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

Re: Far Cry 3|4

Posted: Sun Dec 07, 2014 4:55 pm
by TheDude
I'm working on UVs right now. Need to find the matching textures so I can check them out.
After that - download.

Re: Far Cry 3|4

Posted: Sun Dec 07, 2014 4:59 pm
by CMihai
I see, thanks again :D

Re: Far Cry 3|4

Posted: Sun Dec 07, 2014 6:13 pm
by Chipicao
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!

Re: Far Cry 3|4

Posted: Sun Dec 07, 2014 7:09 pm
by TheDude
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:

Re: Far Cry 3|4

Posted: Tue Dec 09, 2014 11:46 am
by CMihai
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? :?:

Re: Far Cry 3|4

Posted: Tue Dec 09, 2014 2:17 pm
by TheDude
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

Re: Far Cry 3|4

Posted: Tue Dec 09, 2014 6:47 pm
by CMihai
Re-downloaded the file twice, still no trace of FC34.py, the only script file is FC4_Maya.ms but that doesn't work.

Re: Far Cry 3|4

Posted: Tue Dec 09, 2014 7:19 pm
by TheDude
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

Re: Far Cry 3|4

Posted: Tue Dec 09, 2014 8:00 pm
by CMihai
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?

Re: Far Cry 3|4

Posted: Tue Dec 09, 2014 8:52 pm
by TheDude
I've only seen 2 so far, but according to Chipicao there can be as many as 4.