The Forum is up for sale: XeNTaX Forum looking for new owner

[PC] Saints Row IV (Character Models Only)

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

[PC] Saints Row IV (Character Models Only)

Post by howfie »

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: 292
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 739 times

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

Post by Szkaradek123 »

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.
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

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

Post by howfie »

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: 215
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 78 times
Been thanked: 32 times

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

Post by TRDaz »

How does the cmorph_pc importer work? I get errors on the newGameLib parts of the script :/
TRDaz
mega-veteran
mega-veteran
Posts: 215
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 78 times
Been thanked: 32 times

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

Post by TRDaz »

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 »

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: 215
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 78 times
Been thanked: 32 times

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

Post by TRDaz »

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 »

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: 292
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 739 times

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

Post by Szkaradek123 »

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 »

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 »

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: 213
Joined: Mon Oct 06, 2008 2:52 am
Has thanked: 21 times
Been thanked: 3 times

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

Post by Doctor Loboto »

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 »

Is there some way to get in Blender the "surface" geometry, not only matcap?
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1020
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 266 times
Been thanked: 147 times
Contact:

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

Post by Tosyk »

Szkaradek123 wrote: 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:
<...>
hi, can you look into this files of SR3 Remastered?
https://drive.google.com/drive/folders/ ... sp=sharing
Thank you for all you do here
my blog | my forum
Post Reply