This project is a small application used to convert from the TMD
3D model format used by some PSX games
to a more easily viewed Wavefront OBJ
. The converter is capable of extracting material colours and texture mapping
information and supports most common TMD packet formats.
Originally developed to convert models from Bubsy 3D, I can't guarantee a lot of compatibility for other titles at this time.
In a terminal :
- Clone the repo with
git clone https://github.com/taedixon/tmd2obj.git
- Cd to the repo directory with
cd tmd2obj
- Make a build dir, then cd to it :
mkdir build && cd build
- Compile sources to classes with :
javac -d ./ ../src/*.java
- Create the jar archive with :
jar cfe ../tmd2obj.jar Converter *
- Move back to parent folder :
cd ../
- Execute program with :
java -jar tmd2obj.jar
You can use any number of tmd files as arguments, and they will be converted to obj.
java -jar tmd2obj.jar file1.tmd file2.tmd
You can also use a wildcard asterisk (*); e.g : java -jar tmd2obj.jar some/folder/*.tmd
The resulting file(s) will be placed in the same folder as the original.
If no argument is provided, running the application will automatically search for any files in the models
directory with a .tmd
file extension, and
will place converted *.obj
and *.mtl
files in the same directory.