HOME | DD

lefty-2000 — Blender Tm Hd Import Update (ZIP)

#blender #lionhead #scripting #themoviesgame
Published: 2024-04-16 18:36:55 +0000 UTC; Views: 509; Favourites: 3; Downloads: 1
Redirect to original
Description

This is a new version of the TM head import script for Blender 279 that I am working on.  The current version works by loading a blend containing the "generic_head" mesh, then modifies the positions of the mesh vertices to change the shape of the mesh to the new shape.  It also imports a texture for the face into the blend, but it does not link the new texture file to the mesh.  You must do this manually in the properties editor.  That is pretty easy to do.  All you do is,  make the mesh object active and in the properties editor texture tab, go down to the box which contains the name of the texture file.  It will say "generic_head.dds."  If you press the selector button, a list of textures will pop up and you can select the one for the imported face.


The new script works the same, with one exception: It also loads the matching skin texture into the blend.  The idea is that at some point you will want to apply a costume to the head you imported and you will need the matching skin texture for the head you imported.  With this import script, the required skin texture is waiting in the blend to be applied to the costume mesh as required.


I made this update to the head import script because I frequently create characters by combining heads and costumes and to make it work you need to use the correct skin texture for the head.  There is a text file in the data/heads folder that tells you which skin texture goes with each head in the game, so I used this file to create a dictionary linking the head texture to the corresponding skin texture.  The head textures and skin textures are all located in the people texture folder, so the path the correct folder is already defined in the import program.


To use this program, replace the existing tm_hd_import script with the new version.   The program assumes that you have extracted all of the heads files and textures files to your hard drive using MED.


This version has not been extensively tested, so if you install it, hang on to the old version just in case something goes wrong.  Eventually, I intend to release an updated version of the Blender 279 TM scripts bundle with the latest updates.



Updated: 4/17/2024 to correct an error in the heads_body texture table.


Related content
Comments: 1

Beowulf71 [2024-04-17 02:05:09 +0000 UTC]

👍: 0 ⏩: 0