GPU Programming Lab 11
Ray Tracing and Reflections
Due Monday, December 12
For today's lab, make some modifications of the nvidia tutorial series! Starting with the reflection demo:
- Make the mirrors clearer. The settings are in cube.mtl. I did this one in class.
- Put an object in the scene that hasn't been in the demo before. Feel free to use something you've already got around.
- Rotate one of the mirrors so it's at a 45-degree angle to the other. It doesn't have to keep rotating, because that would require updating the top-level acceleration structure. If you want to make it keep rotating, it'll look cool, but no pressure here.
- Put 10 copies of an object in the scene somewhere. Don't load 10 of the model, or even two of them the way the mirror is done in the demo. Use instance rendering. There's a member called m_instances, and you just need to set up a loop to add more instances. There's an example of this in the animation demo we used for lab 10, in main.cpp, around line 166 or so depending on how you did lab 10.
At this point, quite a few of the computers in the room have RTX cards, so it shouldn't be too hard to find one to use. If not, I'll set up the instructor station as well. Setting this stuff up on Windows or Mac might be pretty easy, since the nvidia demos are intended to build on those platforms as well. The build process might even go smoother, since on the Linux side it didn't seem very well debugged.
The earliest I expect and AMD card is next Monday, and then only if the purchase got through admin quickly. So this probably won't be tested on AMD before the lab is due, but maybe by the end of the week.