Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Virtua Cop Elite Edition PS2
-
- n00b
- Posts: 19
- Joined: Fri Nov 27, 2009 1:49 am
- Has thanked: 4 times
- Been thanked: 1 time
Virtua Cop Elite Edition PS2
The contents of this post was deleted because of possible forum rules violation.
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 307 times
Re: Virtua Cop Elite Edition PS2
Since I don't see any index buffers and it's a PS2 games, I'm going to assume it also uses one of those implicit face definition by just stringing together a bunch of vertices.
But I haven't written any code to do something like that so I can't verify it.
Do all of the files follow this format?
But I haven't written any code to do something like that so I can't verify it.
Do all of the files follow this format?
Code: Select all
int32 1
int32 0
int32 0
int32 5
char[12] "frame"
dword
char[12] "Micro"
dword
char[12] "Shape"
dword
char[12] "Hrchy"
dword
byte[404] just skipping
vertexSection maybe
-
- n00b
- Posts: 19
- Joined: Fri Nov 27, 2009 1:49 am
- Has thanked: 4 times
- Been thanked: 1 time
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 307 times
Re: Virtua Cop Elite Edition PS2
These look like related files so all of the counts are the same.
Try finding one that's distinctly different (maybe the name isn't anything close to SCN1)
Try finding one that's distinctly different (maybe the name isn't anything close to SCN1)
-
- n00b
- Posts: 19
- Joined: Fri Nov 27, 2009 1:49 am
- Has thanked: 4 times
- Been thanked: 1 time
Re: Virtua Cop Elite Edition PS2
The contents of this post was deleted because of possible forum rules violation.
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 307 times
Re: Virtua Cop Elite Edition PS2
Each file has a whole bunch of vertex groups(don't know how to determine beforehand. SCN1 has about 5000+ while SCN1B has about 10000+), and I don't know how the faces are drawn.
Any idea what this might be?
It's not all vertices...there are some weird parts too in between sometimes.
Any idea what this might be?
It's not all vertices...there are some weird parts too in between sometimes.
Code: Select all
for i in range(5000):
unk1, unk2, unk3, numVerts = self.inFile.read('4L')
if numVerts == 0 or unk2 // numVerts != 16:
self.inFile.seek(32, 1)
else:
self.parse_vertices(numVerts)
-
- n00b
- Posts: 19
- Joined: Fri Nov 27, 2009 1:49 am
- Has thanked: 4 times
- Been thanked: 1 time
-
- n00b
- Posts: 19
- Joined: Fri Nov 27, 2009 1:49 am
- Has thanked: 4 times
- Been thanked: 1 time
Re: Virtua Cop Elite Edition PS2
How can I go about using this to import the vertices?
Code: Select all
for i in range(5000):
unk1, unk2, unk3, numVerts = self.inFile.read('4L')
if numVerts == 0 or unk2 // numVerts != 16:
self.inFile.seek(32, 1)
else:
self.parse_vertices(numVerts)
-
- n00b
- Posts: 19
- Joined: Fri Nov 27, 2009 1:49 am
- Has thanked: 4 times
- Been thanked: 1 time
Re: Virtua Cop Elite Edition PS2
The contents of this post was deleted because of possible forum rules violation.