The rules have been updated, read them now: Rules!

3D Model Researcher - extract 3D models with Python

General game file tools that are useful for more than one game
Lazov
Posts: 73
Joined: Sat Oct 08, 2016 11:56 am
Has thanked: 16 times
Been thanked: 45 times

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

To convert shor_signed to float, the program seems to divide the number by 256 or 0xffff.

Segal
ultra-n00b
Posts: 7
Joined: Sat May 02, 2020 11:25 pm
Has thanked: 3 times
Been thanked: 2 times

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

Please tell me how to do this calculation, this is an example:

Float ------> Short_signed

Vertices in float:
X = 34 80 45 C2 ----short_signed----> xx xx
Y = C1 F9 65 42 ----short_signed----> xx xx
Z = 94 F6 76 41 ----short_signed----> xx xx

UVs in float:
X = AD 69 0E 3F ----short_signed----> xx xx
Y = 5D FE 63 3F ----short_signed----> xx xx

Normals in float:
X = 66 96 66 BF ----short_signed----> xx xx
Y = 56 66 DE 3E ----short_signed----> xx xx
Z = 00 00 80 3F ----short_signed----> xx xx

Recently, I found a method called "Narrowing Primitive Conversion", it can convert the float to short_signed, but I don't know how to calculate it?
https://docs.oracle.com/javase/specs/jl ... #jls-5.1.3

Please if you know a model format with short_signed in vertices, UVs and normals, and we can convert the model to it, I think is better than this calculation.
Last edited by Segal on Thu May 21, 2020 7:01 pm, edited 1 time in total.

Segal
ultra-n00b
Posts: 7
Joined: Sat May 02, 2020 11:25 pm
Has thanked: 3 times
Been thanked: 2 times

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

Hi Mr. Lazov, thank you very much for your efforts, finally I found it! it's a simple way to convert any model to float or short_signed in all vertices, normals and UVs coordinates, and reimport him to the game again.

Fiammanera628
veteran
Posts: 84
Joined: Sun Jan 07, 2018 6:51 pm
Has thanked: 6 times

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

Hi,

Perhaps is possible do extract something from these old MDL files? Because I found some verticles, but idk how to do with the faces and UVs

https://www.dropbox.com/s/3jf2kgw3f8nu28t/A10.mdl?dl=0

Segal
ultra-n00b
Posts: 7
Joined: Sat May 02, 2020 11:25 pm
Has thanked: 3 times
Been thanked: 2 times

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

Fiammanera628 wrote:
Thu May 21, 2020 7:00 pm
Hi,

Perhaps is possible do extract something from these old MDL files? Because I found some verticles, but idk how to do with the faces and UVs

https://www.dropbox.com/s/3jf2kgw3f8nu28t/A10.mdl?dl=0
Hi, Mr. Fiammanera628, I found on this file 55 models, I was extracted them to obj, also I saved all Model Resercher .tmr templates, for helping to extract other models.
Note before each vertices, normals and UVs, also the faces you will find a hex number convert it to decimal, and thats was the count.
You can find all files in this link:

Fiammanera628
veteran
Posts: 84
Joined: Sun Jan 07, 2018 6:51 pm
Has thanked: 6 times

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

Segal wrote:
Fri May 22, 2020 1:55 am
Fiammanera628 wrote:
Thu May 21, 2020 7:00 pm
Hi,

Perhaps is possible do extract something from these old MDL files? Because I found some verticles, but idk how to do with the faces and UVs

https://www.dropbox.com/s/3jf2kgw3f8nu28t/A10.mdl?dl=0
Hi, Mr. Fiammanera628, I found on this file 55 models, I was extracted them to obj, also I saved all Model Resercher .tmr templates, for helping to extract other models.
Note before each vertices, normals and UVs, also the faces you will find a hex number convert it to decimal, and thats was the count.
You can find all files in this link:
Thank you very much!

But is only a thing I don't understand: the UVs. How do you find the start address?

Because I tried to open 3 models into another file, and only one has got (more or less) the correct UVs

Segal
ultra-n00b
Posts: 7
Joined: Sat May 02, 2020 11:25 pm
Has thanked: 3 times
Been thanked: 2 times

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

Fiammanera628 wrote:
Fri May 22, 2020 12:32 pm
Segal wrote:
Fri May 22, 2020 1:55 am
Fiammanera628 wrote:
Thu May 21, 2020 7:00 pm
Hi,

Perhaps is possible do extract something from these old MDL files? Because I found some verticles, but idk how to do with the faces and UVs

https://www.dropbox.com/s/3jf2kgw3f8nu28t/A10.mdl?dl=0
Hi, Mr. Fiammanera628, I found on this file 55 models, I was extracted them to obj, also I saved all Model Resercher .tmr templates, for helping to extract other models.
Note before each vertices, normals and UVs, also the faces you will find a hex number convert it to decimal, and thats was the count.
You can find all files in this link:
Thank you very much!

But is only a thing I don't understand: the UVs. How do you find the start address?

Because I tried to open 3 models into another file, and only one has got (more or less) the correct UVs
If you knew the right vertices offsets and count, usually come after them the normals with float or short_signed and with the same vertices count, and after the normals comes the UVs also with float or short_signed and with the same vertices and normals count, like in the .tmr examples that I gave you. If you had a problem to find UVs, you can put a link for these models, I can help you to find them.

Fiammanera628
veteran
Posts: 84
Joined: Sun Jan 07, 2018 6:51 pm
Has thanked: 6 times

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

If you knew the right vertices offsets and count, usually come after them the normals with float or short_signed and with the same vertices count, and after the normals comes the UVs also with float or short_signed and with the same vertices and normals count, like in the .tmr examples that I gave you. If you had a problem to find UVs, you can put a link for these models, I can help you to find them.
Ok, I link to you also my .tmr, so you check what I mistake, because I don't understand what I am wrong
the model (+ texture) and the template:

Lazov
Posts: 73
Joined: Sat Oct 08, 2016 11:56 am
Has thanked: 16 times
Been thanked: 45 times

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

Segal wrote:
Sat May 09, 2020 12:55 am
Please tell me how to do this calculation, this is an example:

Float ------> Short_signed

Vertices in float:
X = 34 80 45 C2 ----short_signed----> xx xx
Y = C1 F9 65 42 ----short_signed----> xx xx
Z = 94 F6 76 41 ----short_signed----> xx xx
It depends on the program that uses this data format. Model Researcher divides by 256. It turns out that this formula should work:
float * 256 = short_s.

Segal
ultra-n00b
Posts: 7
Joined: Sat May 02, 2020 11:25 pm
Has thanked: 3 times
Been thanked: 2 times

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

Fiammanera628 wrote:
Sat May 23, 2020 10:57 am
If you knew the right vertices offsets and count, usually come after them the normals with float or short_signed and with the same vertices count, and after the normals comes the UVs also with float or short_signed and with the same vertices and normals count, like in the .tmr examples that I gave you. If you had a problem to find UVs, you can put a link for these models, I can help you to find them.
Ok, I link to you also my .tmr, so you check what I mistake, because I don't understand what I am wrong
the model (+ texture) and the template:
In .tmr template that you gave me all vertices, normals and UVs is right, but Model Researcher shows unorganized UVs, why?
Because they are outside the image bounds, just save the obj and open it with any 3D software, for example I use Blender. And you will see the full UVs.

Fiammanera628
veteran
Posts: 84
Joined: Sun Jan 07, 2018 6:51 pm
Has thanked: 6 times

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

Oooooh, that's why... Thank you once again Segal!

aquaamann333
ultra-n00b
Posts: 5
Joined: Fri May 15, 2020 5:57 am
Has thanked: 2 times

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

If anyone knows how to extract models well, can you extract the models from Ben 10 Vilgax Attacks and Ben 10 Cosmic Destruction and send them to me? Specifically Chromastone, Alien X, Jetray, and Amphibian

donaldregal1
ultra-n00b
Posts: 1
Joined: Sat Jun 27, 2020 6:57 am

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

Ditta wrote:
Fri Dec 29, 2017 9:27 pm
Please, tell how to run this program on Windows 7 x64? When I tried to run it, it required api-ms-win-crt-runtime-l1-1-0.dll. I downloaded these Dlls for both Win32 and Win64 versions, copied them in system\win32 and system\WoW64 folders, but it doesn't help. Now the program shows the error message 0xc000007b and I cannot run it. What to do to fix that issue?
Hi ,

Firstly check your windows whether it”s updated or not

If Windows is updated and everything looks fine, try re-installing the particular program that is reverting https://dll.one/how-to-fix-api-ms-win-c ... ing-error/
Repair installed Visual C++ 2015 Redistributable package[/b]

if you already have the Visual C++ 2015 Redistributable package installed on your computer and still getting the error, there’s a high chance that it can be fixed by repairing the program.

﻿﻿Install Microsoft Visual C++ Redistributable Update.

Register the DLL file:

Copy-paste the api-ms-win-crt-runtime-l1-1-0.dll file

﻿﻿﻿﻿Next, plug the drive on your computer and copy that file and head over to C:\Windows\System32\downlevel and paste it there, and that’s it.﻿﻿﻿﻿﻿

Hope your problem get solved by following these steps.

Donald Regal Toss

Beebster
ultra-n00b
Posts: 1
Joined: Tue Aug 11, 2020 12:17 am

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

Hello, I was wondering, is 3d model researcher expecting certain file formats for the textures?
I currently have a .tga file I am importing but seem to be having some issues.
Figured I would ask, though am guessing it is an error on my side.

an90dy905909
ultra-n00b
Posts: 3
Joined: Sat Dec 29, 2018 8:02 pm

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

Hy there friends, i have a problem finding normals address for one model, so i was wondering if could someone help
with finding normals for the model, i found vertices and polygons, just need to find normals?

i would be very grateful for little help.
Thanks!

Here is the link with model file and tamplate file.