Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

3D Model Researcher - extract 3D models with Python

General game file tools that are useful for more than one game
EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times
Been thanked: 1 time

Re: 3D Model Researcher - extract 3D models with Python

Post by EDXZ23 » Sat Aug 10, 2019 10:44 pm

GHFear wrote:
Fri Aug 09, 2019 1:13 pm
EDXZ23 wrote:
Fri Aug 09, 2019 10:37 am
GHFear wrote:
Fri Aug 09, 2019 8:17 am


Hello
You would have to upload the file so I can look at it.

/GHFear

heres the file dude!
6118.zip

the file was extracted to .dat but i know now that its a .rax file
I can not for the life of me figure this format out.
sorry.
that's cool dude i appreciate the response :D

Jamal al dambali
ultra-n00b
Posts: 9
Joined: Sun Apr 16, 2017 5:00 pm
Has thanked: 10 times

Re: 3D Model Researcher - extract 3D models with Python

Post by Jamal al dambali » Sat Aug 17, 2019 1:59 pm

Hi Lazov! Please tell me how to find uv.
screenshots.jpg
file link: https://yadi.sk/d/UTleab58Y6cF6w
You do not have the required permissions to view the files attached to this post.

EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times
Been thanked: 1 time

Re: 3D Model Researcher - extract 3D models with Python

Post by EDXZ23 » Mon Aug 19, 2019 12:20 pm

Jamal al dambali wrote:
Sat Aug 17, 2019 1:59 pm
Hi Lazov! Please tell me how to find uv.
screenshots.jpg
file link: https://yadi.sk/d/UTleab58Y6cF6w
You need to find the correct start address for the UV’s which vary for different files :D what file type are you working with?

Jamal al dambali
ultra-n00b
Posts: 9
Joined: Sun Apr 16, 2017 5:00 pm
Has thanked: 10 times

Re: 3D Model Researcher - extract 3D models with Python

Post by Jamal al dambali » Tue Aug 20, 2019 2:55 pm

EDXZ23 wrote:
Mon Aug 19, 2019 12:20 pm
You need to find the correct start address for the UV’s which vary for different files :D what file type are you working with?
If I knew, I would have done it myself. But I dont know :(
And I left a link to the file.

EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times
Been thanked: 1 time

Re: 3D Model Researcher - extract 3D models with Python

Post by EDXZ23 » Thu Aug 22, 2019 6:15 am

Jamal al dambali wrote:
Tue Aug 20, 2019 2:55 pm
EDXZ23 wrote:
Mon Aug 19, 2019 12:20 pm
You need to find the correct start address for the UV’s which vary for different files :D what file type are you working with?
If I knew, I would have done it myself. But I dont know :(
And I left a link to the file.
I'm super busy at the moment with my own project, but if I have time I'll take a look at the file and see if can help you :D !

In the mean time try doing some research about the game and its file types.

You can also use trial and error to find the UV's by pasting the starting offset in DEC and increasing it by 1, then clicking the "View UV's" button until the UV's look correct. However, it may or may not work depending on the file type as you may need to find the padding. Hence why I suggest extensive research into game and the file type :)

Lazov
advanced
Posts: 59
Joined: Sat Oct 08, 2016 11:56 am
Has thanked: 16 times
Been thanked: 40 times

Re: 3D Model Researcher - extract 3D models with Python

Post by Lazov » Mon Oct 07, 2019 1:28 pm

The program has been updated.

Update v2.6

- Added support for normal vectors!
- Template format is now compatible with the Pro version.
- The algorithm for calculating normal vectors has been changed. Now the model looks better.
- Added TStrip, TStripFF formats for texture coordinate indices and normal indices. Perhaps this is never used in models. :)

Aterbust
ultra-n00b
Posts: 1
Joined: Mon Dec 31, 2018 12:06 am

Re: 3D Model Researcher - extract 3D models with Python

Post by Aterbust » Mon Oct 28, 2019 11:28 am

rudi246 wrote:
Tue Jun 11, 2019 3:05 pm
I'm trying to extract the levels from a PS1 skateboarding game called Grind Session. I found the models inside the level files but they always have missing triangles. I have attatched a rar file that contains the level files for one of the levels as well as some of my templates for different models within the TRACK.DAT file.

https://zenhax.com/download/file.php?id ... 84443f7d43

Image
Hello.
I think that version 2.6 of 3D Model Researcher does not work well.
I loaded the file 'TRACK.DAT' and I got an error message. "Mismatch of faces and vertices!"
In the text section, when I check info, all the table for the faces disappeared.

Lazov
advanced
Posts: 59
Joined: Sat Oct 08, 2016 11:56 am
Has thanked: 16 times
Been thanked: 40 times

Re: 3D Model Researcher - extract 3D models with Python

Post by Lazov » Mon Oct 28, 2019 4:30 pm

Thanks, Aterbust!
I updated the program.

Lazov
advanced
Posts: 59
Joined: Sat Oct 08, 2016 11:56 am
Has thanked: 16 times
Been thanked: 40 times

Re: 3D Model Researcher - extract 3D models with Python

Post by Lazov » Fri Nov 01, 2019 5:56 pm

Big Update v2.7

- Added support Quads!
- The output of data in text form has been changed: texture coordinate indices and normal indices are now displayed in separate blocks with the literals "fvt" and "fvn", 1 is not added to the indices. The old output can be enabled in the menu "View" -> "Print as OBJ";
- Added highlighting of texture coordinate indices and normal indices in the hex-viewer;

- New template format!
Templates have become more compact. Now they have the following format:

Code: Select all

mesh [name] // mesh name (only for Pro)
v [offset] [count] [padding] [padding inter] [type] [format] // vertices
f [offset] [count] [padding] [padding inter] [type] [format] // faces
vt [offset] [count] [padding] [padding inter] [type] [format] // uvs
fvt [offset] [count] [padding] [padding inter] [type] [format] // uvs indices
vn [offset] [count] [padding] [padding inter] [type] [format] // normals
fvn [offset] [count] [padding] [padding inter] [type] [format] // normals indices
inv [x] [y] [z] // invert (0 or 1)
bo [byte order] // byte order (< - Little Endian, > - Big Endian)
It is not necessary that the template contains data of all forms or all parameters of one form. Omitted parameters and forms will be replaced with default values. The sample templates below are correct:
  • v 0x997 3214 0 0 Float XZY
    f 100 826 64 0 Integer Triangles
  • v 15 3015
    f 0x48a 826 64 0 Integer
    bo >
  • v 0x5487 720 0 0 Float XZY
    inv 0 0 1
However, support for old templates will remain.

- Added function to copy template to clipboard ("Tools" -> "Copy Template") and
function for loading a template using the form ("Tools" -> "Paste Template");
- Polygons on the texture in the Texture tab are now drawn without filling;
- Added "Copy-Paste" menu when clicking on a text field in the "Text" tab;
- Returned support for templates of previous versions of the program;
- Small bugs fixed.

Pro version will be updated later.

GHFear
advanced
Posts: 48
Joined: Tue Dec 04, 2018 9:29 am
Has thanked: 6 times
Been thanked: 8 times

Re: 3D Model Researcher - extract 3D models with Python

Post by GHFear » Sat Nov 02, 2019 2:51 pm

Thank you for the work you're doing, Lazov :)
I really appreciate it. I have had much good use of this tool.
AES Key and UE4 Modding commissions:
https://bit.ly/31PFc3i


If you appreciate my work and want to donate:
Paypal: ghfear@hotmail.com

Post Reply