Model / TMdl Editing

Technical discussion of development of third-party apps.
trey31
Hall of Fame
Posts: 1713
Joined: Mon Oct 06, 2014 1:48 pm
Contact:

Re: Model / TMdl Editing

Postby trey31 » Wed Mar 08, 2017 4:21 pm

StingRay68 wrote:v1.01

Updated main code to be able to read the player models. More work needs to be done on that to be viable for editing though...they're complicated.
[and yes, there are submodels in the player model that have 0 geometry points, that isn't a bug]

Added Extract all geometry points to csv, that may or may not work correctly with player models.


Spoiler:
Image
My M08 mod work is all open-source to anyone who wants to use it in any way, no restrictions or permissions necessary.

Re: Model / TMdl Editing

Sponsor

Sponsor
 

trey31
Hall of Fame
Posts: 1713
Joined: Mon Oct 06, 2014 1:48 pm
Contact:

Re: Model / TMdl Editing

Postby trey31 » Wed Mar 08, 2017 5:14 pm

Have to run but I wanted to post real quick. This is the first .obj

The Export ALL Geometry as CSV does not include the face data (Triangles Point 1/2/3) so I picked the first model (0) and typed each point one at a time in order to get the f data to draw the mesh between the vertices. No promises that I got it all correct.

"longhairhelm"
Image

Code: Select all

# Exported from MoRE v1.1
o Object.1
v 0.03236828 -0.08642678 -0.05012428
v -0.02590483 -0.07174063 -0.1247903
v -0.005184295 -0.09134147 -0.06576888
v 0.01444802 -0.1544767 -0.07218643
v 0.02126739 -0.1255958 -0.04141514
v 0.05057661 -0.1035434 -0.07057213
v -0.04896933 -0.004196697 -0.1477955
v -0.0394351 -0.06937575 -0.1354181
v -0.005249414 -0.004196697 -0.1657939
v 0.04558784 -0.004196697 -0.1581847
v 0.04585765 -0.07060613 -0.1600695
v 0.01645939 -0.1723742 -0.08447678
v 0.03102499 -0.115916 -0.1209757
v 0.02123721 -0.1430065 -0.05911564
v 0.02520551 -0.1571377 -0.05592347
v 0.01110233 -0.07446898 -0.08520363
v 0.01298446 -0.06068269 -0.09477493
v 0.02892341 -0.1077776 -0.1271329
v 0.01489021 -0.05391862 -0.1071547
v 0.02040378 -0.07246679 -0.1620239
v 0.01578879 -0.03808276 -0.1122116
v 0.01860304 -0.05944714 -0.1535791
v 0.02889068 -0.004196697 -0.12385
v 0.04899428 -0.004196697 -0.1559704
v -0.01442522 -0.1529743 -0.1341673
v -0.0200406 -0.1390852 -0.1408875
v -0.01388002 -0.1083636 -0.1827019
v -0.02374436 -0.07356055 -0.1967502
v -0.05502148 -0.004196697 -0.196805
v -0.02590483 0.06334724 -0.1247903
v 0.03236828 0.07803339 -0.05012428
v -0.01609182 0.08992203 -0.08089007
v 0.02285075 0.1460833 -0.07824766
v -0.03386064 0.1172024 -0.1041
v 0.04996959 0.09514999 -0.05152371
v -0.04896933 -0.004196697 -0.1477955
v -0.0394351 0.06098236 -0.1354181
v -0.005249414 -0.004196697 -0.1657939
v 0.04558784 -0.004196697 -0.1581847
v 0.04585765 0.06221274 -0.1600695
v 0.03218767 0.1075226 -0.1218144
v 0.02486212 0.1639808 -0.09053801
v 0.04454803 0.1487443 -0.07042792
v 0.02123721 0.1346131 -0.05911564
v 0.01110233 0.06607559 -0.08520363
v 0.01298446 0.0522893 -0.09477493
v 0.03530309 0.08784673 -0.1240774
v 0.01489021 0.04552523 -0.1071547
v 0.01716729 0.06792048 -0.1596893
v 0.01578879 0.02968936 -0.1122116
v 0.01860304 0.05105374 -0.1535791
v 0.02889068 -0.004196697 -0.12385
v 0.04899428 -0.004196697 -0.1559704
v -0.01442522 0.1445809 -0.1341673
v -0.0200406 0.1306918 -0.1408875
v -0.01388002 0.09997022 -0.1827019
v -0.02374436 0.06516716 -0.1967502
v -0.05502148 -0.004196697 -0.196805

f 2 1 0
f 2 0 4
f 4 3 2
f 5 4 0
f 0 1 10
f 5 3 4
f 7 6 1
f 10 5 0
f 8 1 6
f 1 8 9
f 10 1 9
f 5 12 11
f 5 10 15
f 11 14 5
f 5 14 13
f 12 5 15
f 12 15 17
f 24 11 12
f 17 15 16
f 17 16 18
f 12 17 25
f 19 17 18
f 19 18 20
f 21 19 20
f 24 12 25
f 19 26 17
f 21 20 22
f 23 21 22
f 19 21 26
f 17 26 25
f 21 23 28
f 21 27 26
f 27 21 28
f 31 30 29
f 31 33 30
f 33 31 32
f 34 30 33
f 30 39 29
f 34 33 32
f 36 29 35
f 37 35 29
f 39 30 34
f 29 38 37
f 39 38 29
f 34 41 40
f 34 44 39
f 41 34 42
f 40 44 34
f 34 43 42
f 40 46 44
f 53 40 41
f 46 45 44
f 46 47 45
f 40 54 46
f 48 47 46
f 48 49 47
f 53 54 40
f 50 49 48
f 48 46 55
f 50 51 49
f 52 51 50
f 48 55 50
f 46 54 55
f 50 57 52
f 50 55 56
f 56 57 50


Thank you StingRay68. Can't wait to explore soon! :lol:
My M08 mod work is all open-source to anyone who wants to use it in any way, no restrictions or permissions necessary.

User avatar
StingRay68
Hall of Fame
Posts: 1073
Joined: Mon Jan 09, 2012 7:23 pm

Re: Model / TMdl Editing

Postby StingRay68 » Thu Mar 09, 2017 3:52 pm

v1.02
Added another button to extract the currently selected model/shape to CSV
Also added a textbox for "type" for the geometry.
578 is the normal type that we see in other models besides player models.
Anything else is kind of hit or miss...
1 I think should be ok, but there is other data that Im unsure about at the moment.
33 is weird, don't count on it being usable as is. Sometimes there are models/shapes with no geometry.

Some models like faces are most likely being pulled in from another file.

trey31
Hall of Fame
Posts: 1713
Joined: Mon Oct 06, 2014 1:48 pm
Contact:

Re: Model / TMdl Editing

Postby trey31 » Thu Mar 09, 2017 4:33 pm

StingRay68 wrote:v1.02
Added another button to extract the currently selected model/shape to CSV
Also added a textbox for "type" for the geometry.
578 is the normal type that we see in other models besides player models.
Anything else is kind of hit or miss...
1 I think should be ok, but there is other data that Im unsure about at the moment.
33 is weird, don't count on it being usable as is. Sometimes there are models/shapes with no geometry.


Awesome!

Some models like faces are most likely being pulled in from another file.


plyrface.dat would be my guess. I wonder if every face has its own model? File #0-519 all have the same decomp size, I've been assuming those are the face textures (there are 519 faces according to the face charts, but 520 similar files in plyrface.dat) but I wonder if there isn't a model for each face?

but there is other data that Im unsure about at the moment.


Could it be additional face/triangle data? Typically they are triangles but there can be 4 or 5 points per face IIRC from reading up on wavefront OBJ format and/or DirectDraw.
My M08 mod work is all open-source to anyone who wants to use it in any way, no restrictions or permissions necessary.

User avatar
StingRay68
Hall of Fame
Posts: 1073
Joined: Mon Jan 09, 2012 7:23 pm

Re: Model / TMdl Editing

Postby StingRay68 » Thu Apr 06, 2017 5:02 pm

trey31 wrote:plyrface.dat would be my guess. I wonder if every face has its own model? File #0-519 all have the same decomp size, I've been assuming those are the face textures (there are 519 faces according to the face charts, but 520 similar files in plyrface.dat) but I wonder if there isn't a model for each face?


Sorry, I missed this for some reason.
Yeah, the player faces have id #'s and those are linked to files in the dat you described.

trey31 wrote:Could it be additional face/triangle data? Typically they are triangles but there can be 4 or 5 points per face IIRC from reading up on wavefront OBJ format and/or DirectDraw.


I doubt it, as far as the type of file for the geometry. Sometimes the "type" of geometry changes if there is no actual geometry for the model.
Like I said, it is kind of hit or miss when the type is not the general one (578 I think)

Possibly for the face files though. There is a section called "Loca" (Location ?) at the end of the player faces. That has something to do with the shape of the face. I havent really messed with it. I do remember elguapo and I started inserting values from different faces into a test face and the result was sometimes it ended up looking deformed.
I used to have a few face files for reference, but cant find them at the moment. But I believe that the length of the data would be long enough to be able to include 4-5 geometry points (not confirming that is what it is though).

trey31
Hall of Fame
Posts: 1713
Joined: Mon Oct 06, 2014 1:48 pm
Contact:

Re: Model / TMdl Editing

Postby trey31 » Thu Apr 06, 2017 8:51 pm

StingRay68 wrote:
trey31 wrote:plyrface.dat would be my guess. I wonder if every face has its own model? File #0-519 all have the same decomp size, I've been assuming those are the face textures (there are 519 faces according to the face charts, but 520 similar files in plyrface.dat) but I wonder if there isn't a model for each face?


Sorry, I missed this for some reason.
Yeah, the player faces have id #'s and those are linked to files in the dat you described.

trey31 wrote:Could it be additional face/triangle data? Typically they are triangles but there can be 4 or 5 points per face IIRC from reading up on wavefront OBJ format and/or DirectDraw.


I doubt it, as far as the type of file for the geometry. Sometimes the "type" of geometry changes if there is no actual geometry for the model.
Like I said, it is kind of hit or miss when the type is not the general one (578 I think)

Possibly for the face files though. There is a section called "Loca" (Location ?) at the end of the player faces. That has something to do with the shape of the face. I havent really messed with it. I do remember elguapo and I started inserting values from different faces into a test face and the result was sometimes it ended up looking deformed.
I used to have a few face files for reference, but cant find them at the moment. But I believe that the length of the data would be long enough to be able to include 4-5 geometry points (not confirming that is what it is though).


I should have sent a follow up PM about the wavefront/Direct draw I was looking into. Without the face data I can't do anything with the vertices data. I randomized the face data from that pumpkin .obj (the one from the Stanford.edu URL I think) and it corrupted the file and it wouldn't open in Maya or Blender and was invisible and had an error in 3D Builder.

Also tried playing around with a five nights at freddy's 3D model's face data and it also corrupted the file according to Maya and 3D Builder.

Idk what else to do as far as 3D Models. Could it be edited? Yea of course. But it would require someone who understands modeling and Direct Draw values/data.
My M08 mod work is all open-source to anyone who wants to use it in any way, no restrictions or permissions necessary.

User avatar
StingRay68
Hall of Fame
Posts: 1073
Joined: Mon Jan 09, 2012 7:23 pm

Re: Model / TMdl Editing

Postby StingRay68 » Sun Apr 09, 2017 11:24 am

Anyone care to guess what model changes have been made in this screen cap?

guess.jpg
guess.jpg (324.59 KiB) Viewed 2030 times

User avatar
mee
Hall of Fame
Posts: 1907
Joined: Wed Sep 03, 2014 4:05 pm
Location: New York

Re: Model / TMdl Editing

Postby mee » Sun Apr 09, 2017 1:00 pm

StingRay68 wrote:Anyone care to guess what model changes have been made in this screen cap?

guess.jpg

You stretched out the scoreboard.
(However, if you really want to do this you have to edit the numbers saying score and down to go :))
So the Giants traded Beckham....

arden05
All-Pro
Posts: 368
Joined: Sun Jul 24, 2011 2:33 pm

Re: Model / TMdl Editing

Postby arden05 » Sun Apr 09, 2017 3:09 pm

Yup, the scoreboard :o So this means progress is being made to understanding the model structure and how to manipulate them?
Check out sports inspired apparel, made for true fans @ http://fanfocusedtees.spreadshirt.com/

User avatar
StingRay68
Hall of Fame
Posts: 1073
Joined: Mon Jan 09, 2012 7:23 pm

Re: Model / TMdl Editing

Postby StingRay68 » Sun Apr 09, 2017 6:02 pm

Yes, we're getting more advanced on model editing.
I guess the scoreboard does look different, but that is not the answer. Keep looking...
(this is something custom that BelieverInTeal wanted to know if it was possible.)

guess2.jpg
guess2.jpg (320.74 KiB) Viewed 2011 times


Return to “Development”

Who is online

Users browsing this forum: No registered users and 4 guests