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

PS2 3d model

Post questions about game models here, or help out others!
Post Reply
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

PS2 3d model

Post by Num Sei »

Hello, this time, my doubts are about ps2 3d models. I extracted files from a ps2 game, and found 3d maps (How do I know they were 3d models? - They were in a file where related things were found and most of them weren't 2d images, except the textures, which really are from the map, which made me absolutely sure that the file was a 3d model), but I couldn't find any way to extract it. I tried to extract in game with ninjaripper, but I couldn't.

The file:

https://www.mediafire.com/file/9d7iuhg4 ... a.cmp/file

One thing I realized:

In the offset "11CA00" you can see the names of the textures, after I think there are your data or something like that.

Sorry for the english, i'm using google translate.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: PS2 3d model

Post by shakotay2 »

Using hex2obj (view link in my sig):
.
0000000a_1-cmp.png
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

Re: PS2 3d model

Post by Num Sei »

Thanks, but I had already tried use hex2obj, before asking the question, it really is very difficult to use. Could you say the offset you used? I think this is very distorted.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: PS2 3d model

Post by shakotay2 »

H2O file is

0x0 500
Vb1
16 99
0x1610 21974
021000
0x0 255

Copy the 6 above lines into a .txt file and rename it to 0000000a_1.H2O. Load mesh and H2O files into hex2obj.
Toggle 'noPtc' button to 'PtCld' (point cloud).

Removing doubles (not implemented) gives less "distortion" but using auto created face indices doesn't look nice:
.
0000000a_1-cmp.jpg
Num Sei wrote: Wed May 27, 2020 1:30 am Thanks, but I had already tried use hex2obj, before asking the question, it really is very difficult to use.
It's a helper tool - it was nether intended to be a "one click" solution. :wink: And no, I don't think that it's "difficult to use". It requires some basic understanding of 3D formats, though.
You do not have the required permissions to view the files attached to this post.
Last edited by shakotay2 on Wed May 27, 2020 1:55 am, edited 1 time in total.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

Re: PS2 3d model

Post by Num Sei »

Okay, thanks, I'll see what I can do.
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

Re: PS2 3d model

Post by Num Sei »

Okay, I did everything you said. There were some dll's errors, but I managed to download them and everything was fine. What appeared to me was like the first screenshort you sent, but I didn't understand the rest of what you said. But the textures? Is there any way to get them?
User avatar
Bigchillghost
double-veteran
double-veteran
Posts: 1002
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 31 times
Been thanked: 1171 times

Re: PS2 3d model

Post by Bigchillghost »

shakotay2 wrote: Wed May 27, 2020 1:50 am Removing doubles (not implemented) gives less "distortion" but using auto created face indices doesn't look nice
The vertices block is chopped into thousands of small pieces and there seems to be other data than positions.
MDL.jpg
Num Sei wrote: Wed May 27, 2020 12:03 am I extracted files from a ps2 game
With what?
Num Sei wrote: Wed May 27, 2020 12:03 am but I couldn't find any way to extract it.
You may use this BMS script to chop the cmp file more delicately:

Code: Select all

get EndOfFile asize
get folderStr basename
set idx long 0
do
	savepos Offset
	getdstring Ext 4
	get Size long
	goto 8 0 SEEK_CUR
	if Ext != "CMTX"
		math Offset + 0x10
		math Size - 0x10
		string Name p "%s/%d.%s" folderStr idx Ext
		log Name Offset Size
		goto Size 0 SEEK_CUR
	else
		set EndPos long Offset
		math EndPos + Size
		savepos RelOffset
		idstring "TARC"
		get Skip long
		get TexNum long
		get HeaderSize long
		for i = 0 < TexNum
			getdstring TexName 0x10
			goto 0x10 0 SEEK_CUR
			get Offset long
			get Size long
			goto 8 0 SEEK_CUR
			math Offset + RelOffset
			string Name p "%s/%d_tex/%s.CEMP" folderStr idx TexName
			log Name Offset Size
		next i
		goto EndPos
	endif
	math idx + 1
	savepos CurPos
while CurPos < EndOfFile
Num Sei wrote: Wed May 27, 2020 2:29 am But the textures? Is there any way to get them?
The textures are in the CEMP/P2IG container and here's the data of 6.CEMP unpacked by the above script:
Image
You do not have the required permissions to view the files attached to this post.
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 883 times

[PS2] Namco x Capcom (*.cmp)

Post by Acewell »

here is Noesis python script to open textures from cmp file directly or extracted "CEMP" files also. :D
*script updated May 28, 2020*
tex_NamcoxCapcom_PS2_cmp_cemp.zip
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Thu May 28, 2020 9:01 pm, edited 3 times in total.
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

Re: PS2 3d model

Post by Num Sei »

Thank you all for the help. I'll explain everything from the beginning.

The game is Namco X Capcom from PS2, when extracting the ISO there are many FAC and FAH files, there is a file called map.fac accompanied by a map.fah. I extracted it with a QuickBMS script from a game called Sunday Magazine (which probably has the same structure as Namco X Capcom, I never saw that game, I just know that I can extract my files successfully). After extracting, there are far and cmp files, the important ones are the cmp, the far are just character sprites.

Here are some links that helped me achieve everything.

https://zenhax.com/viewtopic.php?t=12732

https://dwn009.fandom.com/wiki/Namco_%C ... pcom/Files

I will now test the scripts.
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

Re: PS2 3d model

Post by Num Sei »

Well, the textures are ok. Is there any way to open the 3d model?

And the noesis script don't support some files, here are them:
https://www.mediafire.com/file/7a0rkcnc ... rk.7z/file

And I also think that there may be some 3d model here in this file that I found outside of map.fac:
https://www.mediafire.com/file/czu7grjt ... 4.far/file
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: PS2 3d model

Post by shakotay2 »

Some filtering will be required to get rid of superfluous faces:
.
00000004-far-heart.png
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 883 times

Re: PS2 3d model

Post by Acewell »

Num Sei wrote: Wed May 27, 2020 9:46 pm And the noesis script don't support some files, here are them:
https://www.mediafire.com/file/7a0rkcnc ... rk.7z/file
fixed, replaced non ascii characters in file names with x, updated script here:
viewtopic.php?f=16&t=22207&p=163602#p163602
:D
Num Sei
n00b
Posts: 17
Joined: Sat Feb 01, 2020 10:57 pm
Has thanked: 11 times

Re: PS2 3d model

Post by Num Sei »

Ok, thanks. But how can I open the model?
Post Reply