denetii / io_thps_scene

THPS Scene import/export for Blender
http://tharchive.net/misc/io_thps_scene.html
59 stars 12 forks source link

THPS2X is not supported #7

Open JayFoxRox opened 5 years ago

JayFoxRox commented 5 years ago

I did notice that https://github.com/denetii/io_thps_scene/blob/4ca99033f44103d1130f5b2ca237b8237a2fc3fa/import_thps2.py#L46-L50 uses the same value twice. This makes it impossible for VERSION_NUM_THPS2X to be used.

Additionally, nothing ever checks for VERSION_NUM_THPS2X.

I have recently worked on https://github.com/JayFoxRox/thps2-tools which includes some THPS2X support (See my Patreon post for more information about goals and when I learned about this project).

Iron-Hawk commented 5 years ago

It is because of the textures, if you disable texture importing either via editing the true statement to false or adding back in the hidden options menu to change it from in blender, you can import 2x levels, but cause its not importing the textures the uvs are messed up, generally the uvs are there, but they are really compressed as looking at the scripts, the uv maps size is based off the resolution/size of the texture itself, so without the tools being able to open the ddx files to get the reference for the textures size, so the uvs are just compressed, though the mesh and vertex shading all imports with the trigger planes as well, I'm not sure how to import the ddx files as they are structured different from the _l files from thps1 and 2, so right now we still have to stick with demos rips until someday hopefully ksk adds the support for full 2x importing.