READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

[PC] Saints Row IV (Character Models Only)

Post questions about game models here, or help out others!
Post Reply
User avatar
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 9 times
Been thanked: 262 times

[PC] Saints Row IV (Character Models Only)

Post by howfie » Sun Nov 24, 2013 1:07 am

Same shit different day; you know the drill.
Sorry, too lazy to upload pic or instructions; I've been sick for a month and antibiotics made me worse and now I gotta go see doc again.

Bones + weights; sorry, no morphs, as I can't figure out the morph format.
If you want to help me decode the morph format, more information is located here, where I asked the developers if they could give me hints on the morph format but no luck. Positions are stored as shorts and every fixed-point format I could think of didn't work.
You do not have the required permissions to view the files attached to this post.

Szkaradek123
mega-veteran
mega-veteran
Posts: 291
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 581 times

Re: [PC] Saints Row IV (Character Models Only)

Post by Szkaradek123 » Fri Sep 12, 2014 7:00 pm

File "npc_basehead.ccmesh_pc" is for base head mesh.

Cmorph_pc file has new vertex position of base head mesh by adding dx,dy,dz for each vertex from base head mesh,
where:
dx = uint16 * 2^scale
dy = uint16 * 2^scale
dz = uint16 * 2^scale

scale = -20,-21,sometimes -22

so dx,dy,dz are very small.

Here is example for playing with scale for saints_female_shaundifuture head.

http://www.mediafire.com/view/so89kvbo9 ... future.jpg

cmorph_pc importer for Blender249:

Update: 2014-09-13
http://www.mediafire.com/download/ahf1j ... 9-13%5D.7z

How use:
-install Blender 249 and Python 26
-unpack importer
-click Blender249.blend

-in Text Window press alt+p and select:
cmesh_pc for skinned mesh with skeleton
cmorph_pc for shape morph

If something wrong, please send me console error or file.

After importing it must manual set scale,position and rotation for head mesh.
Last edited by Szkaradek123 on Sat Sep 13, 2014 7:20 pm, edited 2 times in total.

User avatar
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 9 times
Been thanked: 262 times

Re: [PC] Saints Row IV (Character Models Only)

Post by howfie » Fri Sep 12, 2014 11:10 pm

wow, very nice mariusz. how did you figure out the 2^scale thingy lol? did you peek in the EXE?

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 66 times
Been thanked: 24 times

Re: [PC] Saints Row IV (Character Models Only)

Post by TRDaz » Sat Sep 13, 2014 10:43 am

How does the cmorph_pc importer work? I get errors on the newGameLib parts of the script :/

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 66 times
Been thanked: 24 times

Re: [PC] Saints Row IV (Character Models Only)

Post by TRDaz » Sat Sep 13, 2014 6:38 pm

Noticed you had posted some instructions, it was the same thing i did though, I got this error:
Image

RoxasKennedy
beginner
Posts: 21
Joined: Tue May 17, 2011 11:39 am
Has thanked: 7 times
Been thanked: 5 times

Re: [PC] Saints Row IV (Character Models Only)

Post by RoxasKennedy » Sat Sep 13, 2014 7:30 pm

You need to have the Python Imaging Library installed for this script to work :)

You can download it here: http://www.pythonware.com/products/pil/ (there is a version for Python 2.6)

TRDaz
mega-veteran
mega-veteran
Posts: 203
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 66 times
Been thanked: 24 times

Re: [PC] Saints Row IV (Character Models Only)

Post by TRDaz » Sat Sep 13, 2014 8:01 pm

Thanks that worked :D

RoxasKennedy
beginner
Posts: 21
Joined: Tue May 17, 2011 11:39 am
Has thanked: 7 times
Been thanked: 5 times

Re: [PC] Saints Row IV (Character Models Only)

Post by RoxasKennedy » Sun Sep 14, 2014 10:04 pm

I tried the importer, and it works great, but for some reason it imports female morphed heads even for male characters.

Szkaradek123
mega-veteran
mega-veteran
Posts: 291
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 581 times

Re: [PC] Saints Row IV (Character Models Only)

Post by Szkaradek123 » Mon Sep 15, 2014 5:02 am

Importer use only one base mesh - npc_basehead.ccmesh_pc file
Maybe there is another base head?
Please import as first npc_basehead.ccmesh_pc from importer folder, and then cmorph file .
if no difference between two meshes it fault my script, else try to change value SCALE=21 at the beginning of the script.
What model did you import?

here are some heads from game

http://www.mediafire.com/download/cv85a ... /heads.zip

RoxasKennedy
beginner
Posts: 21
Joined: Tue May 17, 2011 11:39 am
Has thanked: 7 times
Been thanked: 5 times

Re: [PC] Saints Row IV (Character Models Only)

Post by RoxasKennedy » Mon Sep 15, 2014 2:01 pm

Changing the size to 20 worked on the model I tried to import. XD

I guess you have to change sizes on SOME models, because other sizes give a wrong head shape.

Thanks once again :D

Harmalarm
ultra-n00b
Posts: 1
Joined: Wed Jun 10, 2015 3:02 pm

Re: [PC] Saints Row IV (Character Models Only)

Post by Harmalarm » Sun Aug 27, 2017 7:50 pm

Hi Guys, I'm bumping this topic just in the hope of finding an answer to my questions about the morph files for saints row III. I know they have a similar setup as SRIV because I have managed to get it working. What I don't get though is where these scale values for X Y and Z are located. I cannot find them anywhere in the character files. Not the CCMESH, GCMESH, morph file or even the rig file. They just seem to be hidden somewhere out of sight. Does anyone know where I could possible find them?

I've been working on an import script for 3ds max, and I've come a long way. But these morph values are giving me a headache!
For my work, check out this topic:
https://www.saintsrowmods.com/forum/thr ... rmat.1020/

Doctor Loboto
mega-veteran
mega-veteran
Posts: 196
Joined: Mon Oct 06, 2008 2:52 am
Has thanked: 18 times
Been thanked: 2 times

Re: [PC] Saints Row IV (Character Models Only)

Post by Doctor Loboto » Sun Mar 17, 2019 5:45 am

I'm having some trouble with a specific mesh. It's bizarre, most other meshes I have work with this blender script, but this one causes a 'memory error' when I try to import it. It's the only one I've seen that does it so far. https://www.dropbox.com/s/iuso58umanejl ... s.zip?dl=0

aknologia
ultra-n00b
Posts: 1
Joined: Sun May 12, 2019 12:59 pm

Re: [PC] Saints Row IV (Character Models Only)

Post by aknologia » Wed May 29, 2019 12:12 pm

Is there some way to get in Blender the "surface" geometry, not only matcap?

Post Reply