C++/OpenGL - Completed 2011
A 2 person project for a graphics course I was taking. We decided to experiment with dynamic terrain rendering using an audio track as a source of effects upon that terrain. For this project we had 2 major tasks. First, we needed to take an audio track and extract meaningful data from it. This data had to be varied and detailed enough that it could produce a wide range of effects allowing for very unique results based on the source. Second, we needed to create a terrain system with a high level of detail and an ability to be rapidly modified without any visible performance penalty. This terrain also needed to support a system where many different effects could be applied at once with all the effects behaving well with each other. I worked on the terrain system while my partner worked on the audio processing.At its core the terrain system is mostly based around lists of effects and layers. Effects store their layer, interaction type, and methods for modifying individual points or regions on the terrain. Effects are capable of modifying color and height of the terrain. How the effects' modifications interact with each other is determined by their interaction type and by what layer they are on. Layers are used to determine what order effects get applied and have fixed rules on how layers interact. For example the base layer contains initial terrain information (in the screenshots this is actually flat), which would not blend with any other layer, but instead would be added to by other layers.
The biggest limitation we hit was that we were doing all of our work on the CPU. Neither one of us had any experience with OpenGL shaders and we wanted to get everything working by the time the project was due, so we focused on just optimizing our cpu implementation. I believe by the end we go to about 768x768 with 10+ simultaneous effects on our test machine.

No comments:
Post a Comment