Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Saint Row The Third 3d models [*.gcmesh_pc]

Post questions about game models here, or help out others!
demolos
advanced
Posts: 65
Joined: Mon Mar 12, 2007 3:38 pm
Has thanked: 5 times
Been thanked: 4 times

Saint Row The Third 3d models [*.gcmesh_pc]

Post by demolos »

Hello!
Somebody can try to read this .gcmesh_pc files?
I only found the xyz vertex...
Image
Image

I made a topic here with some research on the files formats:
https://www.saintsrowmods.com/forum/ind ... ditor.255/

Some samples files:
http://www.sendspace.com/file/mnuwbg
Thanks :)
mariokart64n
ultra-veteran
ultra-veteran
Posts: 586
Joined: Sun Jun 05, 2005 12:00 pm
Location: Ontario, Canada
Has thanked: 36 times
Been thanked: 243 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by mariokart64n »

had a quick look at it, the GC file holds the faces, and the vertices, but theres some odd data in there that doesn't line up... so there may be additional data aswell

the CC file is the control file, but I haven't figured out how to parse the damn thing. the face section needs to be seperated, theres LODs and elements combined in the same buffer.

I wrote up a quick import script for 3dsmax to have a look at the faces, so I could break down the proper face counts

here's a progress update;

Image

Code: Select all

clearlistener()

mscale=39.3700787

fsource = GetOpenFileName \
caption:"Saints Row Turd Importer" \
types: "SRIII CC File (*.ccmesh_pc)|*.ccmesh_pc|"
if (fsource!=undefined) AND ((doesFileExist fsource)==true) then(
fpath=getFilenamePath fsource
fname=getFilenameFile fsource
fsize=getFileSize fsource
fsize=          getFileSize fsource
gsource=(fpath+fname+".gcmesh_pc")
if (gsource!=undefined) AND ((doesFileExist gsource)==true) then(
f = fopen fsource "rb"
s = fopen gsource "rb"
gsize=getFileSize gsource
count3=0
count4=0
check=true
while check==true do(
if (ftell f)!=fsize AND check==true then(
if (readbyte f #unsigned)==16 do (
if (ftell f+4)<=fsize AND check==true then(
if (readlong f #unsigned)==0 do (
if (ftell f+4)<=fsize AND check==true then(
if (readlong f #unsigned)==33554432 do (
if (ftell f+71)<=fsize AND check==true then(
check=false
fseek f 63 #seek_cur
count3=readlong f #unsigned
count4=readlong f #unsigned
)else(check=false))
)else(check=false))
)else(check=false))
)else(check=false))

vertArray=#()
uvwArray=#()
normArray=#()
faceArray=#()
count5=(gsize-(count3*32+4))/2
	
StartDirection = -1
f1 = readshort s #unsigned + 1
f2 = readshort s #unsigned + 1
if f1>=count3 do f1=1
if f2>=count3 do f2=1
FaceDirection = StartDirection
IndexCounter = 2
Do (
f3 = readshort s #unsigned

IndexCounter += 1
if f3>=count3 then (
f1 = readshort s #unsigned + 1
f2 = readshort s #unsigned + 1
if f1>=count3 do f1=1
if f2>=count3 do f2=1
FaceDirection = StartDirection
IndexCounter += 2
) else (
f3 += 1
FaceDirection = -FaceDirection
if (f1!=f2)AND(f2!=f3)AND(f3!=f1) then (
if FaceDirection > 0 then append faceArray [f1,f2,f3]
else append faceArray [f1,f3,f2]
)
f1 = f2
f2 = f3
)
)
while IndexCounter !=count5
	
fseek s (gsize-(count3*32+4)) #seek_set

for i = 1 to count3 do(
p1=readfloat s*mscale
p2=readfloat s*mscale
p3=readfloat s*mscale
p4=readfloat s
p5=readfloat s
p6=readfloat s
p7=readfloat s
p8=readfloat s
append vertArray[p1,-p3,p2]
append uvwArray[0,0,0]
append normArray[0,0,0]
)

msh = mesh vertices:vertArray faces:faceArray
msh.numTVerts = vertArray.count
buildTVFaces msh
msh.displayByLayer = false
msh.backfacecull = on

for j = 1 to vertArray.count do setTVert msh j uvwArray[j]
for j = 1 to vertArray.count do setNormal msh j normArray[j]
for j = 1 to faceArray.count do setTVFace msh j faceArray[j]

convertTo msh PolyMeshObject

fclose f
fclose s
)else(messagebox "ERROR!!\nFile Pair Wasn't Found")
)else(Print "Aborted.")
Maxscript and other finished work I've done can be found on my DeviantArt account
demolos
advanced
Posts: 65
Joined: Mon Mar 12, 2007 3:38 pm
Has thanked: 5 times
Been thanked: 4 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by demolos »

Nice :)
EternaL
ultra-n00b
Posts: 8
Joined: Wed Aug 18, 2010 3:12 pm
Has thanked: 3 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by EternaL »

Also animations seem very well made.
junk angel
veteran
Posts: 82
Joined: Thu Jan 14, 2010 4:38 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by junk angel »

out of curiosity, in what of the packfiles are the cc and gcmeshes? I've only found cpegs and gpegs for now.
EternaL
ultra-n00b
Posts: 8
Joined: Wed Aug 18, 2010 3:12 pm
Has thanked: 3 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by EternaL »

Gibbed tool (unpack VPP) on characters.vpp_pc
Gibbed tool (unpack STR2) on "char".str2_pc
junk angel
veteran
Posts: 82
Joined: Thu Jan 14, 2010 4:38 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by junk angel »

Hmm that's odd. That precisely doesn't give me the meshes.
EternaL
ultra-n00b
Posts: 8
Joined: Wed Aug 18, 2010 3:12 pm
Has thanked: 3 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by EternaL »

Strange....

An example:

Dragging brianne.str2_pc on gibbed(str2) give me a directory named BRIANNE with 13 files :

1 of those is "brianne.ccmesh_pc"
junk angel
veteran
Posts: 82
Joined: Thu Jan 14, 2010 4:38 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by junk angel »

I know this is a bit of a necro, but have been wondering - any updates on this? Has anyone managed to get the UVW parsing into the script?
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: Saint Row The Third 3d models [*.gcmesh_pc]

Post by howfie »

Yes. I have all character models extracted. The level geom which is in the glmesh files, I have yet to finish. Uvs are all half floats. Models are ps2 quality however.
rexil
veteran
Posts: 124
Joined: Tue Mar 15, 2011 3:14 pm
Has thanked: 36 times
Been thanked: 4 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by rexil »

They don't look that low poly.
Image

Relevant info here http://www.saintsrowmods.com/forum/inde ... 255/page-4
and
http://www.saintsrowmods.com/forum/inde ... rmat.1020/

More than a month since the last reply, dunno if they stopped working on it or what.

Maybe it can help you with something. Hope you can finish it SR3 models are pretty nice Imo.
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: Saint Row The Third 3d models [*.gcmesh_pc]

Post by howfie »

Hahaha remember how disappointed with shaundi we were? I finally bought the game and all dlc except the genki cars and there was no hires shaundi to be found. The character models were no problem. Got all 2000 of them or so. But there are 90000+ static models and the control file is more complex for them than they are for the characters and spaceships lol. If anyone wants just a character release...
junk angel
veteran
Posts: 82
Joined: Thu Jan 14, 2010 4:38 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by junk angel »

Yeah I noticed the vehicles seem to use a lot of vertex colouring. But a character script would be really really nice. Honestly I'd prefer it over a static mesh one :)

So your release would be apreciated.
Maxunit
n00b
Posts: 18
Joined: Mon Jun 28, 2010 12:49 am
Been thanked: 3 times

Re: Saint Row The Third 3d models [*.gcmesh_pc]

Post by Maxunit »

"If anyone wants just a character release..."

Yep, I would love to have the model files from Shaundi :D I still had no luck in ripping them from SRTT :/
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: Saint Row The Third 3d models [*.gcmesh_pc]

Post by howfie »

ok i'll release soon. but yeah, in that pic viola doesn't look so bad... but... prepare to be disappointed LOL!

Image
Post Reply