XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Oct 17, 2017 7:07 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 55 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Far Cry 3|4
PostPosted: Sat Dec 06, 2014 5:08 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times

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.

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sat Dec 06, 2014 8:40 pm 
Offline
ultra-n00b
User avatar

Joined: Sun Aug 17, 2014 8:52 pm
Posts: 4
Location: Rivne, Ukraine
Has thanked: 8 times
Have thanks: 0 time
Hell Yeah!!!
How You unpacked the files?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sat Dec 06, 2014 11:06 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
MrGameboy20XX wrote:
Hell Yeah!!!
How You unpacked the files?

http://forum.xentax.com/viewtopic.php?f=10&t=9927


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sun Dec 07, 2014 2:28 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
The bounding boxes...
Image

...have been defeated. :D


Image


EDIT: "Math is power!"


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sun Dec 07, 2014 4:39 pm 
Offline
veteran
User avatar

Joined: Sun Jul 05, 2009 12:58 pm
Posts: 129
Has thanked: 13 times
Have thanks: 0 time
Wow someone actually does this inside Maya, as a Maya user, big thanks!

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


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sun Dec 07, 2014 4:55 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
I'm working on UVs right now. Need to find the matching textures so I can check them out.
After that - download.


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sun Dec 07, 2014 4:59 pm 
Offline
veteran
User avatar

Joined: Sun Jul 05, 2009 12:58 pm
Posts: 129
Has thanked: 13 times
Have thanks: 0 time
I see, thanks again :D


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sun Dec 07, 2014 6:13 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Thu Feb 03, 2011 11:18 am
Posts: 476
Has thanked: 42 times
Have thanks: 291 times
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.


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Sun Dec 07, 2014 7:09 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
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/Posing-n-Junk-499130483?ga_submit_new=10%253A1418081001
:oops:


Last edited by TheDude on Fri Mar 27, 2015 12:57 am, edited 9 times in total.

Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Tue Dec 09, 2014 11:46 am 
Offline
veteran
User avatar

Joined: Sun Jul 05, 2009 12:58 pm
Posts: 129
Has thanked: 13 times
Have thanks: 0 time
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? :?:


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Tue Dec 09, 2014 2:17 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
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


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Tue Dec 09, 2014 6:47 pm 
Offline
veteran
User avatar

Joined: Sun Jul 05, 2009 12:58 pm
Posts: 129
Has thanked: 13 times
Have thanks: 0 time
Re-downloaded the file twice, still no trace of FC34.py, the only script file is FC4_Maya.ms but that doesn't work.


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Tue Dec 09, 2014 7:19 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
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.

Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Tue Dec 09, 2014 8:00 pm 
Offline
veteran
User avatar

Joined: Sun Jul 05, 2009 12:58 pm
Posts: 129
Has thanked: 13 times
Have thanks: 0 time
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?


Top
 Profile  
 
 Post subject: Re: Far Cry 3|4
PostPosted: Tue Dec 09, 2014 8:52 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sun Mar 20, 2011 7:35 pm
Posts: 212
Has thanked: 26 times
Have thanks: 48 times
I've only seen 2 so far, but according to Chipicao there can be as many as 4.



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

All times are UTC + 1 hour


Who is online

Users browsing this forum: cosmaty, NeonZed and 6 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