The rules have been updated, read them now: Rules!
Black Rock Shooter
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 300 times
Black Rock Shooter
Continued from
viewtopic.php?p=69288#p69288
I did a quick search for PTMD tags, which I can assume is the number of textures.
The model file begins with INSM, followed by 2 shorts.
Or 2 bytes and 1 short.
Or maybe 4 bytes
But if you compare a couple larger models with smaller models, you'll quickly see that the number of textures matches the short at the top, so I would believe that it's 2 bytes and 1 short unless they restricted themselves to at most 15 textures per model, which can be reasonable also for a PSP (I don't know).
That offset to the first PTMD appears twice for the 5 files I've compared so far. Don't know why lol
The offsets you've listed, ya I would agree with that it looks like the same values for most of them.
The other offsets leads to similar values
Triangle offset seems to lead to 0x 00 00 00 14
The integer at offset 12 seems to increase somewhat proportional to the size of the file (and consequently, size of the model even if it's a bunch of texture data), so that might be a count for something.
viewtopic.php?p=69288#p69288
I did a quick search for PTMD tags, which I can assume is the number of textures.
The model file begins with INSM, followed by 2 shorts.
Or 2 bytes and 1 short.
Or maybe 4 bytes
But if you compare a couple larger models with smaller models, you'll quickly see that the number of textures matches the short at the top, so I would believe that it's 2 bytes and 1 short unless they restricted themselves to at most 15 textures per model, which can be reasonable also for a PSP (I don't know).
That offset to the first PTMD appears twice for the 5 files I've compared so far. Don't know why lol
The offsets you've listed, ya I would agree with that it looks like the same values for most of them.
The other offsets leads to similar values
Triangle offset seems to lead to 0x 00 00 00 14
The integer at offset 12 seems to increase somewhat proportional to the size of the file (and consequently, size of the model even if it's a bunch of texture data), so that might be a count for something.
- MrAdults
- Moderator
- Posts: 1007
- Joined: Mon Mar 23, 2009 2:57 am
- Has thanked: 44 times
- Been thanked: 501 times
Re: Black Rock Shooter
Index data can also be interleaved with vertex data (or pressed up against it), its presence is specified by 2 bits 11 bits into that flag I mentioned in the archive thread. Find the flag and the format will likely be trivial to display. (still haven't looked at any of the actual files, sorry for armchairing it, I've got 50 windows open right now and am trying to finish up another format for the next release of Noesis)Ninja wrote:Still not able to make implicit triangles work.
Take a look at this from chr_m_egb01.mdl
http://pastebin.com/7EPQL2sN
The data i'm showing you is the large chunk where each line starts with A2070012
The left half of the 3rd long looks like offsets to the vert list, so maybe these are triangle descriptions?
The left byte of the 4th long changes frequently from 3 to 4 and back, lower down they go up to 16, could be mostly triangle and quad polygons??
Anyway, going to try doing triangles from the offsets, see if that works.
Edit: Yep, 3rd long is offset from start of 'triangle' list, left byte of 4th long is number of points in the polygon
http://pastebin.com/LRgrfyeg
Hardcoded for one file, and the vertices and faces count are wrong, need to adjust them manually, but it's the method your looking at.
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 300 times
Re: Black Rock Shooter
Any idea what the vertex data consists of?
I'm just scrolling through it with 010 and seeing some floats...but then a lot of things that aren't floats in between. Half-floats and floats mixed together?
I'm just scrolling through it with 010 and seeing some floats...but then a lot of things that aren't floats in between. Half-floats and floats mixed together?
Re: Black Rock Shooter
Was just looking as the possibility of half floats, floats have been working up until now.
Managed to get the first block into metasequoia.
When you come across 0x0000000B 0x00000014 0x****001D in the, lets call it a polygon table, it's messing up somehow, thinks is a problem with the variable size fields.
A207 = 24 bytes ..........!!!???
BA07 = 28 bytes
BA47 = 32 bytes
BA87 = 36 bytes
Can't find enough data for UV's!!!
Found a small PTMD at the bottom of chr_m_yub01.mdl
Weird, it looks like a paletted image but the palette given is on 16 longs.
http://i1235.photobucket.com/albums/ff4 ... l/pic1.jpg
Managed to get the first block into metasequoia.
When you come across 0x0000000B 0x00000014 0x****001D in the, lets call it a polygon table, it's messing up somehow, thinks is a problem with the variable size fields.
A207 = 24 bytes ..........!!!???
BA07 = 28 bytes
BA47 = 32 bytes
BA87 = 36 bytes
Can't find enough data for UV's!!!
Found a small PTMD at the bottom of chr_m_yub01.mdl
Weird, it looks like a paletted image but the palette given is on 16 longs.
http://i1235.photobucket.com/albums/ff4 ... l/pic1.jpg
Re: Black Rock Shooter
Finally got it to load correctly, think one of the tags is still incorrect, but ran out of files to test it on.
Just the model, no UVs or textures.
There are bones and textures in the format. CBA
Python extractor - it aint pretty....
http://pastebin.com/rTMvuqku
Metasequoia file
http://uppit.com/hchfmedsvwrs/chr_m_yub01.zip
Beats the cfs2 format for stupidity......
Just the model, no UVs or textures.
There are bones and textures in the format. CBA
Python extractor - it aint pretty....
http://pastebin.com/rTMvuqku
Metasequoia file
http://uppit.com/hchfmedsvwrs/chr_m_yub01.zip
Beats the cfs2 format for stupidity......
-
- mega-veteran
- Posts: 160
- Joined: Mon Nov 29, 2010 10:38 am
- Has thanked: 32 times
- Been thanked: 2 times
Re: Black Rock Shooter
AwesomeNinja wrote:Python extractor - it aint pretty....
http://pastebin.com/rTMvuqku
How to use Python script?
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 300 times
Re: Black Rock Shooter
Hmm hopefully someone can figure out the PTMD's lol
What's going on with the faces?
What's going on with the faces?
Re: Black Rock Shooter
I'll collect some ptmd files and post them in the graphics section.
They just implicit triangles like MrAdults said, stored as polygons.
I have a cold so doing the faces like I did seemed a good idea at the time
replace it with:-
alon - you have python installed?
They just implicit triangles like MrAdults said, stored as polygons.
I have a cold so doing the faces like I did seemed a good idea at the time

replace it with:-
Code: Select all
kk =0
vn = vnum -2
for q in range(0, vn):
rm = q % 2
kk = kcount+q
if rm == 0:
of.write("3 V("+str(kk+2)+" "+str(kk+1)+" "+str(kk)+")\n")
elif rm == 1:
of.write("3 V("+str(kk)+" "+str(kk+1)+" "+str(kk+2)+")\n")
kcount+=vnum
alon - you have python installed?
-
- beginner
- Posts: 21
- Joined: Fri Feb 10, 2012 8:35 am
- Has thanked: 19 times
- Been thanked: 1 time