Seasons Of Code

GLSL Raytracing    • Nikhil Reddy Ramolla    • Rohan Ganesh   

WnCC - Seasons of Code

Seasons of Code is a programme launched by WnCC along the lines of the Google Summer of Code. It provides one with an opprtunity to learn and participate in a variety of interesting projects under the mentorship of the very best in our institute.

List of Running Projects

GLSL Raytracing

GLSL Raytracing

To celebrate the recent findings uncovered by scientists in the physics community, we will try to make a simulation of gravitational lensing caused by a black hole using GLSL, beside other simple simulations.

This involes studying the basics of Shading with GLSL, the OpenGL Shading Language, which flexibly controls the rendering pipeline of the dear GPU in your device. Next, we will implement a boilerplate WebGL simulator program in a fairly modern browser. After this, we will implement various sample GLSL renders before coding the final one. This involves computing the deflection of a light ray incident at a black hole using numerical integration and simulate this effect with GPU to get fast and crisp images.

Note: The (second) main aim of this project is to understand and use shading, not implementing the shading libraries or understanding general relativity. The first one is to celebrate that new original black hole image, obviously.


  • Fluency in C++.
  • Preliminary understanding of graphic rendering.
  • No formal understanding of general relativity is required. All formulae will be provided.
  • Knowledge in HTML5, Javascript, WebGL and GLSL will be appreciated, but are not compulsory.

Tentative Timeline:

Week Work
Week 1 Learning basic rendering concepts
Week 2 Learn GLSL
Week 3 Learn GLSL
Week 4 Learn Javascript
Week 5 Learn to use GLSL on browser and perform simple simulations
Week 6 Understanding and implementation of raytracing
Week 7 Understanding and implementation of gravitational lensing
Week 8 Implementing gravitational lensing