r/GraphicsProgramming • • 5d ago

Rendering & Physics using TinyBVH

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.

168 Upvotes

9 comments sorted by

View all comments

7

u/shadowndacorner 5d ago

Wait, this sounds like such a fun assignment for your students. Care to give more details on what "working on MGS" means in practice? Is it just something where you're using MGS assets, or have you forked the engine in some way?

3

u/JBikker 3d ago

We simply give the students a basic OpenGL engine and the game assets. Their task is to replicate the gameplay of the first level of the game. The real objective of the task is to experiment with proper C++: In the first quarter of the year students worked on a 2D game (Metal Slug) with the only goal to 'make it work', in this second quarter the goal is to learn some decent modern C++ coding standards.

3

u/shadowndacorner 3d ago

That sounds like an awesome assignment :) I wish my graphics courses in uni had been this fun haha