r/GraphicsProgramming • u/JBikker • 8d ago
Rendering & Physics using TinyBVH
Enable HLS to view with audio, or disable this notification
Our students are working on Metal Gear Solid (PS1) for their Y1 C++ project at Breda University. I wanted to join in on the fun so here's the Cargo Dock level, ray traced using TinyBVH, using just the CPU. In this demo TinyBVH is also used to detect collisions (there's scene/sphere collision functionality) and to handle them. The spheres end up in their own BLAS, which is combined with the level triangles under a TLAS. Code is 600 lines, all-in.
170
Upvotes
View all comments
16
u/nullptr777 8d ago
Ah, man. This game takes me back. Good times.