Converting Prey (2017) model cgf file to obj - help?

Post questions about game models here, or help out others!
Post Reply
sierra14
ultra-n00b
Posts: 5
Joined: Sat Sep 30, 2017 8:19 pm
Has thanked: 1 time

Converting Prey (2017) model cgf file to obj - help?

Post by sierra14 » Wed Oct 03, 2018 9:58 pm

Hey all; so I've used the Prey pak extractor on one of the paks (think object-pak6 or whatever it's called) and got the cgf file, and have attempted to convert it using the cgf-converter - I used the code below in the command prompt, obviously after opening the powershell and setting the location to the place where the cgf-converter.exe is located

Code: Select all

.\cgf-converter.exe neo_armchair_01.cgf -obj -objectdir D:\cgf-converter -obj
I can see from editing the obj file in a hex editor, that there is lots of data (as well as lots of zeros, but also lots and lots of actual data) but I can't open it in blender or sketchup et al - I've tried using a 'proper' obj file and trying to use it as a template for what the actual obj should look like - I've noticed that instead of having single full stops between sections of text (hex 0A) it has two (which turn out to be 0D 0A) but changing them all to 0D 0A's to 0A doesn't help. I can post the file somewhere if anyone wants to examine it - why can't I get a working model? :(

obj file https://ufile.io/nzx3w

S

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 406
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: Converting Prey (2017) model cgf file to obj - help?

Post by Bigchillghost » Thu Oct 04, 2018 6:35 am

sierra14 wrote:I can't open it in blender or sketchup et al
Why? Your files completely adhere to OBJ syntax. (:
sierra14 wrote:I've noticed that instead of having single full stops between sections of text (hex 0A) it has two (which turn out to be 0D 0A) but changing them all to 0D 0A's to 0A doesn't help.
It has nothing to do with the line feeds. The problem is about invalid position data because they're all ZERO so they all collapse to the origin.
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

sierra14
ultra-n00b
Posts: 5
Joined: Sat Sep 30, 2017 8:19 pm
Has thanked: 1 time

Re: Converting Prey (2017) model cgf file to obj - help?

Post by sierra14 » Thu Oct 04, 2018 12:31 pm

so what am I doing wrong? why won't it come out correctly?

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 406
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: Converting Prey (2017) model cgf file to obj - help?

Post by Bigchillghost » Thu Oct 04, 2018 12:40 pm

I have no idea coz I've never dealt with the game you're talking about, or the related tools. Where did you find the tools? Are they actually made for that game?
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

sierra14
ultra-n00b
Posts: 5
Joined: Sat Sep 30, 2017 8:19 pm
Has thanked: 1 time

Re: Converting Prey (2017) model cgf file to obj - help?

Post by sierra14 » Thu Oct 04, 2018 12:49 pm

yes - it's a pak extractor (viewtopic.php?f=10&t=16241) and then a cgf-converter program (viewtopic.php?f=33&t=13137)

sierra14
ultra-n00b
Posts: 5
Joined: Sat Sep 30, 2017 8:19 pm
Has thanked: 1 time

Re: Converting Prey (2017) model cgf file to obj - help?

Post by sierra14 » Thu Oct 04, 2018 3:44 pm

It's alright, it turns out I needed an upgraded version of the cgf-converter, I just assumed that because it said it had been updated, it would be alright, but there was a separate exe :)

Thanks anyway!

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 406
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: Converting Prey (2017) model cgf file to obj - help?

Post by Bigchillghost » Thu Oct 04, 2018 3:45 pm

sierra14 wrote:then a cgf-converter program (viewtopic.php?f=33&t=13137)
So many parameters... Not sure if it's allowed to place them in different orders but you'd better stick strictly to its syntax.
So in this code you used:

Code: Select all

.\cgf-converter.exe neo_armchair_01.cgf -obj -objectdir D:\cgf-converter -obj
Better not to place the "-obj" pram before the "-objectdir". And "D:\cgf-converter" is the location of the cgf file?
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: Converting Prey (2017) model cgf file to obj - help?

Post by shakotay2 » Thu Oct 04, 2018 4:33 pm

sierra14 wrote:I can post the file somewhere if anyone wants to examine it - why can't I get a working model? :(

obj file https://ufile.io/nzx3w

S
yep, cgf urgently needed.

btw: I used the converter (cool tool, btw) like such:

D:\tmp\era>cgf-converter AEGS_Vanguard_Test.cgf -objectdir D:\tmp -obj
Input file set to AEGS_Vanguard_Test.cgf
Data directory set to D:\tmp
Output format set to Wavefront (.obj)
Output file is \...\AEGS_Vanguard_Test.obj

which produced a 457 MB obj file which was loaded into blender:
cgf-converter.png
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

Post Reply