WHAT IS INSTA - RAILED?

"InstaRailed" is a fast paced Multiplayer First Person Shooter that aims to bring back the magic of old school FPS games like Quake or Unreal Tournament. Combining the Movement Mechanics of old shooters with character abilities more commonly observed in RPGs or RPG-Shooter hybrids (like Overwatch, Battlerborn or LawBreakers), InstaRailed aims to inject new life into an otherwise stagnating genre. The game features an intuitive ability system combined with “Risk-Reward” based gameplay mechanics to create a fun and exciting gameplay experience for every demographic (Hardcore gamer, Casual gamer etc.).

THEME AND MECHANICS

The theme is steampunk-esque where several mercenaries fight to the death in an arena sponsored by the organisation known only as L.O.A. to reward the world’s most ruthless killer with riches and the title of ‘The God of Death’.

Core Mechanics:

  • 1. Locomotion / Movement - Movement is entirely momentum based. It is influenced by factors such as Air Friction, Ground Friction, Air Acceleration, Air Deceleration etc. The mouse is also used to generate a little acceleration for the technique known as “Strafe Jumping” and “Bunny Hopping”.
  • 2. Counter Attack - Counter Attack mechanic is a mechanic designed to help players get back into the game after they’re attacked from behind. Given that Hitscan weapons are generally labelled as “unfair”, this mechanic gives power to the players who are hit, allowing them counter attack and restore a percentage of their lost health. A similar mechanic can be found in ‘Bloodborne’ as part of FROMSOFTWARE’s primary goal to encourage players to fight instead of playing passively.

Secondary Mechanics which complement the Core Mechanics are:

  • 1. Wall Bounce - Wall Bouncing refers to using the walls of the environment as launch pads in order to propel the player in the opposite direction in order to avoid oncoming projectiles. A similar mechanic can be found in Gears of War here.
  • 2. Weapon Charge - Weapon Charge is a unique weapon ability that allows the player to temporarily increase their weapon’s damage. However, if the player activates it too early or too late, the damage of the weapon is significantly reduced, thereby increasing the “risk-reward” aspect of the game. The way the ability operates is similar to Gears of War’s Active Reload system.
IMPLEMENTATION

The first step that we performed was setting up the window. We called a set of functions from GLFW to initialize the window and called GLContext.createFromCurrent to initialize the context. After the initialization, we started to load the raw data into texture. Texture is a structure like BITMAP. And there are some functions provided to manipulate a structure.
The main steps involved in using a texture are:

  • 1. Generate the texture using glGenTextures.
  • 2. Bind the texture and set the texture behavior for zoom in and zoom out, as well as for out of bound conditions (texture coordinates beyond 0-1).
  • 3. Load the data to the texture.
  • 4. While drawing the vertex, specify the texture coordinates that have to be mapped.

Once the data is loaded into the texture, the actual dimension is no longer needed because the texture coordinates are always specified by 0-1. Whatever may be the size of the texture, it is 1. The advantage is that we just have to map the coordinates and OpenGL will take care of all the scaling needed. We created as number of 3d textures as many frames each raw data has. After that we applied alpha to our code. OpenGL has a feature called alpha test. That means, we can specify an alpha value and alpha criteria. The alpha value for each vertex is set to same as the RGB value for the vertex. Then the alpha value is used when rendering. The vertex will only be rendered if its alpha value is greater than or equal to 0.05f which means the dark part of the frames will not be rendered. After we applied blending which is another feature of OpenGL so as to composite the vertices along the ray according to the alpha value. In this way we applied the transparency to the object. The next step was to apply some transformations to the image. We added rotation which was basically using glRotated in OpenGL. Then we added other features to our output like zooming via glScalef, slicing via changing the number of input frames.

Rotating Head Image Credits: Wikipedia

CHALLENGES:

We faced quite a lot of challenges while implementing our volume renderer. The major challenge was understanding and getting used to OpenGL since it was new for all of us. It was time consuming and hard. We first had to understand the basics and then decide on how to use it to implement our volume renderer. The second challenge we faced was to understand the steps involved in building a volume renderer using the texture based approach. We needed to understand the basic framework of volume rendering - what to be given as input, how to render it, how to add transformations to it. The other challenge we faced was to add features to our rendered image. The zoom in feature we added where you can actually go inside the rendered image and see what it contains inside was the toughest part to implement.

CONCLUSION

Implementing volume rendering was a big challenge but fun at the same time. We got to learn a lot from our project. We understood how volume rendering works and how much importance it has in real life. We learnt a lot about OpenGL. It is so powerful and once you know it properly it makes life so easy. Instead of defining so many functions and writing 100s of lines of code it already has predefined functions that do all of the work. We also got familiar with lwjgl . It is a great way to implement OpenGL in Java. Finally, it was a great experience developing the project and it was real fun doing graphics.

Normal Image Output of a Teapot, it can be rotated.

Zooming in, you can get a much clearer picture of what is inside!

Slicing a specific portion of the image.

Tune the transparency.

MEET THE TEAM!

AJINKYA LIMAYE

Game designer Infinity

E-mail: alimaye@usc.edu

     

STEPHEN PETTINATI

Game Programmer Jobs

E-mail: pettinat@usc.edu

     

PURANJAY RAJPAL

Web Developer

E-mail: prajpal@usc.edu

     

VIVEK EMBRANDIRI

Game Programmer Jobs

E-mail: embrandi@usc.edu

     

ROSHAIL AHMED TARAR

Game Programmer Jobs

E-mail: tarar@usc.edu

     

SYSTEM SCHEMATIC