Portfolio Migrated

Welcome to my portfolio! Here you can find some of the projects I've worked on during and before university.
This site was transferred here and converted from its original form to this blog format, please excuse any errors you see. I made it when I realized my previous portfolio site hosted at my school had gone down.

Red Space




C++/DirectX 11- Completed, 2012

Red Space was a project I worked on with 5 other students for our 3D Graphics Programming course. Our goal was to build a completely open world space exploration game with heavy combat focus. The world was procedurally generated as it was traversed and offered the chance to find enemies, collect scrap, upgrade your ship, and destroy enemy bases. The game was fully 3D, however, the world generation mostly took place between an upper and lower plane of space to allow for easy navigation of the world.
We had a few setbacks with team members dropping the course halfway through which resulted in many of the features we would have liked not making it into the game. In the end we got combat, resource collection, a full lighting engine, world generation, and high speed travel fully working. We did not finish ship upgrading, factions, permanent enemy base destruction and allied base/refuel stations. In the end though it turned out pretty well and I think most of the team was pretty satisfied with the result, especially since we built it in only 10 weeks and created the engine from scratch.

World Generation

I worked on the core engine, world generation, and combat portions. I was really proud of how the world generation turned out and managed to get in things like planets orbiting solar systems, moons, and moving bases among others. The world generation worked by seeding cells with their position information, as well as flags for unique cells such as starting cell, final base cell, etc. The position information was used in many different ways, including: as a RNG seed, to determine ship difficult based on distance, as coordinates onto perlin noise textures (to determine faction). Based on these factors we would create a list of items we wanted in the cell, in priority order. We would then traverse the list and each item would 1) Make sure all rules for its placement in the cell were satisfied (Can't have 2 enemy bases in the same cell, moons require planets, etc) 2) Find a valid position to place itself and mark that volume as filled (for generation purposes) 3) Generate additional objects which could either be added manually or added to the priority list (generated objects where required to be of lower priority if added to the list). Each time an item was successfully built the traversal would restart itself, thus allowing higher/equal priority items to have rules requiring each other. The entire process was deterministic. After the generation had completed the plan was to read and apply data about the saved state that things had been left, such as bases destroyed, but, unfortunately, this feature was not completed in time for our final version of the game.
This system proved very effective when most cells were largely empty, but was somewhat slow before some optimizations were applied. I think by far the biggest limitation of the system was that it restricted content into a grid system. This disallowed multi-square objects or formations, knowledge of surrounding areas (other than basic info such as faction alignment), content at the border between cells, etc. Things like several systems of well defended planets around a large base were not possible. There are many ways I could revisit and improve the system, most of which would involve rather large rewrites. After revisiting the system I think I have a solution which could be put on top of the existing system. I would do this through an additional pass to determine the basic type of a cell (asteroid field, large base, empty space, etc), before any other info was determined. This could be done using a series of competing Perlin noise textures, allowing neighboring cells to take on the same type. In the list and item generation pass we could use the knowledge of surrounding cells to generator appropriate content with the ability to connect cells, such as having a seamless multi-cell asteroid field. This solution is far from perfect, but should result in a noticeable improvement, and remove the big limitations with the existing system. If I have time in the future this is definitely something I would like to revisit in this, or another project.

 

StoreWorld




Flash- Ongoing, left project in 2012

StoreWorld is a project being funded by the Saunders College of Business at RIT. For a basic overview see here: http://www.rit.edu/imagine/planyourday12/exhibit.php?id=237.
I was brought on to do some prototyping of a very early version of the project with a few other students. Later, when production greatly ramped up to a team of 15+ people I became the technical lead to the team of 6 other student programmers. We were able to quickly begin full production and even won a silver sponsor award after only 3 months of development http://games.rit.edu/node/1075. We completed our major goals throughout our initial 6 month development time along with delivering many more features than promised. Development continued after this as StoreWorld switched to having a more educational focus and goal. I stayed on as technical lead on StoreWorld until March 2012, when I switched to just advising the new development team.
To see a lot more detail of what happened throughout development, check out the blog: http://ritstoreworld.wordpress.com/.

Audio Terrain


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.

Time Shenanigans





Unity - Completed 2011

Multiplayer fps I worked on with a team in school, read more about it, or play it in browser here: http://michaeljkeck.com/Portfolio/TimeShenanigans/

Solar Pandamonium




C++/DirectX - Completed 2011

A project for the 2D Graphics Programming class at RIT. I worked with a team of four other students on this project.

Our initial goal
"Solar Pandamonium is an open world space shooter with an emphasis on using solar energy for both combat and travel. The player controls a ship which they use to explore a large section of space while completing quests as part of a storyline and for various factions. Core focus is on maintaining supplies during long journeys and conserving precious solar energy. Solar energy is very important, being used for travel, recharging shields, and firing in combat. The solar systems have various solar currents which the player can use to “sail” to various locations allowing for faster travel and conservation of solar energy. The further the player travels from the central worlds the harder it is to find solar energy. This also increases the chance of encountering hostile pirates, but can lead to rich rewards."

This was a major project we built from the ground up using DirectX10. This was the whole team's first exposure to DirectX so we learned quite a bit as we went. In the end we got a full game out in 10 weeks and we met most of our goals.

One of the major things I worked on was a dynamic loading system. This system allowed for a completely open world which would dynamically load and unload resources as the player travelled around. This had to all be done with no visible performance change. When loading areas it was important that it looked like they were already populated and thus ships and objects had to be loaded as if they had already been going about their business.

Space Battle



Unity - Completed 2011


Overview

Space Battle is a 3d simulation of 2 armies of ships fighting each other. The armies are completely autonomous and use a series of steering behaviors. Most of the steering behaviors are derived from Steering Behaviors For Autonomaus Characters by Craig W. Reynolds

Steering Behaviors

Containment

Reynold's containment algorithm was designed to keep autonomous characters contained within a boundary. To accomplish this 2 rays come out from the autonomous character at an angle from their forward vector. The characters would then steer in the opposite direction of the vector which is colliding. For my implementation I adapted this approach to 3D by using 4 rays (above, below, left, and right) and instead of containing I used it for obstacle avoidance with arbitrarily shaped obstacles.

Path Following

The path following algorithm from the paper allows autonomous characters to follow a path by staying within a distance of the path. This is as opposed to general waypoint path following where they have no guarantee that the path will actually be followed (only that they will seek the destination). I used this algorithm to give the leader of each army a path to follow.

Leader Following

Leader following allows characters to follow a leader without getting too close or crowding. This is done through a form of arrival where the characters will seek the leader but slow down as they get closer. This leader following allows the ships in each army to follow their leader.

Flocking

flocking is a combination of separation, cohesion, and alignment. The allow characters to stick together like a single flock. This is used to keep the armies together and make them appear to be a single cohesive unit.

Pursuit (partial)

Pursuit allows for the seeking of moving characters. Prediction of future position is part of the algorithm, which I used to give the ships aiming against moving targets.