Skip to content

Commit 4de6173

Browse files
committed
Working most of the time
1 parent f332c17 commit 4de6173

13 files changed

+610
-391
lines changed

Diff for: CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ add_executable(format0001 format0001.c)
66
add_executable(format0022 format0022.c)
77
target_link_libraries(format0022 txc_dxtn)
88
add_executable(format0024 format0024.c)
9+
add_executable(format0025 format0025.c)
910
add_executable(format002A format002A.c json.h)
1011
add_executable(format002C format002C.c)
1112
target_link_libraries(format002C m)

Diff for: README.md

+34-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
This is a set of tools to operate on The Pinball Arcade (PBA) files.
2-
PBA is a video-game developed by [FarSight Studios](http://www.farsightstudios.com/).
2+
PBA is a video-game developed by [FarSight Studios](http://farsightstudios.com/).
3+
4+
Most of the tools in this repository convert to [JSON](http://json.org), TGA or OBJ/MTL.
5+
6+
This tool is not able to create any kind of PBA files yet!
37

48
# PBA Coordinate System
59

@@ -10,12 +14,36 @@ Their coordinate system seems to be (from a players perspective):
1014
+Z = Up
1115

1216
The playfield center (including vertical elements) is usually located at 0.0, 0.0, 0.0.
17+
Based on dimensions of Medieval madness the PBA coordinate system is roughly:
1318

14-
Each unit appears to be roughly 400/3 inch (guessed).
15-
So a 20.5" x 42.0" playfield would be 2733 x 5600 in game units.
19+
1 unit = 0.01905cm = 0.0075inch
1620

1721
Human-readable angles are usually in degree, machine readable are usually in radians.
1822

19-
# PBA Bugs
20-
21-
2704/29: Missing alpha
23+
# PBA bugs / issues / facts
24+
25+
## General
26+
- Tables contain wav versions of the emulation sounds at varying quality
27+
- Reflections are hardcoded onto textures, sometimes in image-space
28+
- Texture resolution is absolutely horrible
29+
- Lamps and Flashers are simulated by switching between on/off textures
30+
- Some Flashers have a mesh for their light-shine around them
31+
- Apron missing hole for ball trough which is not simulated
32+
- Subways and other "hidden" objects not modelled / simulated
33+
- Plunger lane is not carved
34+
- Missing playfield glass
35+
- Meshes are already instanced and embedded
36+
- Physics are actually arcade physics, not simulated physics
37+
- Lots of redundancy in each file and across files
38+
- Cameras are hardcoded for each device instead of defining a frustum
39+
40+
## BK2K
41+
- Playfield texture contains lamps, walls and wires
42+
- Main resource has typos / bug: "Gravity,0,0,0,0 Dampening" (missing comma)
43+
- Spring (slows ball down) on wire after W-A-R not simulated
44+
45+
## Ripley's
46+
- 2704/29: Missing alpha
47+
48+
## Medieval Madness
49+
- Right Ramp contains a wire piece from the left ramp (vertical connection at the very bottom)

Diff for: blender.py

-321
This file was deleted.

0 commit comments

Comments
 (0)