How juce/pes-model-tools works
This repository provides Blender tools for importing PES .model files, exporting trophy models for PES 2017, and a separate command-line utility for editing a model’s scale and translation matrix. The main workflow is to prepare a Blender scene and export a trophy model; the importer also supports reading models and exporting edits. The excerpts show format conversion and matrix editing, but not all operator wiring, so uncertain links are omitted.
Main entry points: pes_model_importer.py Import controls · modmatrix.c Edit transform matrix · pes_trophy_exporter.py Export controls
Components 13
Model Importer
- Import controls
pes_model_importer.py - Decode model
pes_model_importer.py - Build scene mesh
pes_model_importer.py - Export edited model
pes_model_importer.py
Trophy Exporter
- Export controls
pes_trophy_exporter.py - Prepare mesh data
pes_trophy_exporter.py - Write model data
pes_trophy_exporter.py - Compress model
pes_trophy_exporter.py
Matrix Editor
- Edit transform matrix
modmatrix.c
Other components
- Artist
- Blender
- PES model file
- PES model file
Connections 17
- Artist → Blender: uses
- Blender → Import controls: opens controls
- Import controls → PES model file: selects file
- Decode model → PES model file: reads
- Decode model → Build scene mesh: creates geometry
- Build scene mesh → Blender: adds scene mesh
- Import controls → Export edited model: dispatches export
- Export edited model → PES model file: reads model
- Export edited model → PES model file: writes model
- Blender → Export controls: opens controls
- Export controls → Prepare mesh data: starts export
- Prepare mesh data → Write model data: supplies mesh data
- Write model data → Compress model: writes model
- Compress model → PES model file: writes compressed file
- Artist → Edit transform matrix: runs
- Edit transform matrix → PES model file: reads and edits
- Edit transform matrix → PES model file: writes changes