Skip to content

kelsno/ps2dev-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PS2 DEV model converter

A Python tool that converts MAYA models to JSON --> which then makes a C file to use in ps2dev.

MayaOBJ-JSON

This script converts your model into a JSON file that has selected Maya mesh's vertex positions, UVs, and triangle indices.

MAKE SURE YOUR MODEL IS TRIANGULATED

Screenshot 2025-08-06 at 23 30 05

Usage

Head on over to the Python editor in MAYA.

Windows -> General Editors -> Script Editor

Copy and paste the script (MAYA2JSON.py) while selecting your model -- at line 125, make sure to set your directory you want your C file in -- and run it.

e.g.

output_file_path = "/Users/kel/my_game/"
export_ps2_mesh_data(output_file_path)

JSON-PS2

This script converts the JSON file generated into a C file what you can use as a mesh data.

Usage

Run this in terminal.

python3 convert_to_ps2_mesh.py <input_json_file> <output_c_file>

or use the GUI

Screenshot 2025-08-06 at 23 59 05

Credits

Christopher Morales Soriano (kelsno) & PS2DEV

About

Python tool that converts MAYA OBJs to JSON --> which then makes a C file to use in ps2dev

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages