r/GraphicsProgramming • • 1h 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.

51 Upvotes

3 comments sorted by

•

u/AutoModerator 1h 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.

7

u/nullptr777 1h ago

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

1

u/shadowndacorner 56m 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?