r/GraphicsProgramming • • 3d 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.

159 Upvotes

7 comments sorted by

•

u/AutoModerator 3d ago

Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:

  • No showcases.
  • Disclose AI usage in post or project.
  • Present a topic to talk about, e.g. how something works.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/shadowndacorner 3d 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 1d 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 1d ago

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

15

u/nullptr777 3d ago

Ah, man. This game takes me back. Good times.

1

u/Still_Explorer 2d ago

Impressive! Best university in the world for game technology.

2

u/JBikker 1d ago

Actually we rank 3rd, 2nd in Europe. :) But, we do quite well; lecturers all have a background in the game industry and we put the bar really high. End result is internships in AAA game companies which typically land students a junior job. This takes hard skills and soft skills; both are explicitly addressed in the program.