Creating a custom psx boot logo
Needed tools :
- PsyQ's utilities :
- Dosbox to run the dos program above.
- Blender and optionnaly Lameguy64's Blender RSD plugin
- BootEdit2 available here : http://psx.arthus.net/tools/bootedit2.zip
- Create a model in blender. Keep your polycount low. For reference, the original psx logo has 560 triangles.
- Export from blender as dxf with the "Export Autocad DXF" plugin.
- Use psyq's
dxf2rsd.exeutility with dosbox to convert the DXF to RSD:
DXF2RSD.EXE -o logo.rsd model.dxf
- Edit the RSD file with
smxtoolto add colors and save as RSD.
- Optional: There seems to be a bug in
smxtool, where the generated
.MATfile has an invalid value on the first line :
0 61 F C rrr ggg bbb # 61 is an incorrect value. Change it to 1 or 2
You have to correct the
.MATfile generated by smxtool so that every line's two first columns look like this:
x 2 F C rrr ggg bbb
xis the vertex index.
2> 0x2 (0010) means 'Light-source calculations performed' and 'Double-faced polygon.'
Fmeans flat shaded
Cmeans color and
rrr ggg bbbis the color value.
See the '[Flag]' section in http://psx.arthus.net/sdk/Psy-Q/DOCS/FileFormat47.pdf, p.56 for more details on these values.
Convert the RSD to TMD with psyq's
RSDLINK.EXEwith dosbox :
RSDLINK.EXE -s 240.0 -o logo.tmd logo.rsd
-s 240.0is needed so that the model is scaled to the correct size.
Patch your disk image with
BootEdit.exeby selecting your bin file, then the new tmd file. You can also change the license text. Apply the patch and voila !
Original PSX logo
For reference, the original psx logo ranges from XYZ (-611, -775, -943) to (608, 231, 594) and has 560 triangles.
You can check a tmd file with the
To reduce filesize, one can use a range to specify color/shading/flags in one line :
0-256 0 F C 200 200 200 # Use light-source, flat shaded, grey for vertices 0 to 256
This would result in a stylish grey logo...
Doc & Sources
- PSXDEV.net topic : www.psxdev.net/forum/viewtopic.php?t=156&sid=fa6e4327893620c1a1b5a5e548879685
- Original Darsel engineering tutorial : https://web.archive.org/web/20041229035553/http://www.fortunecity.com/greenfield/wolf/51/ETMDv10.htm - mirror : http://psx.arthus.net/docs/bootedit-tut-mirror.html
- TMD and RSD file formats are documented here : http://psx.arthus.net/sdk/Psy-Q/DOCS/FileFormat47.pdf, p.49
- Usage of PsyQ utitlies are documented here : http://psx.arthus.net/sdk/Psy-Q/DOCS/Devrefs/Dataconv.pdf p.81, 117 & 127