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.

166 Upvotes

9 comments sorted by

View all comments

Show parent comment

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