RAY TRACINGI implemented ray tracing in OpenGL and used bounding box for the model to accelerate the searching process.
I also added some features to improve the result: - Added Bilinear filtering for the texture to make it look more smooth. - Added Soft Shadow effect where hitpoint will find SOFT_NUMBER of jitter lights and then use the ratio to output the diffuse color. - Added Anti-Aliasing effect where eyepoint will find AA_NUMBER of pixels around each pixel and average color for the area. - Added Glossy effect where the relection direction will be perturbed by unit vectors u,v that shift the ray in the GLOSSY_SIDE_LENGTH range. |
GLSL ShaderI Used Depth buffer and Normal buffer to detect the edges draw the edges with Gaussian filter to smooth the edges. Averaged the previous frame with the current frame buffer to create the motion blur effect. Used depth information to create the fog effect.
In addition, I created a radar scanning effect using the shader. It's like the screen of the "life form detector" in the aliens movie. I used depth buffer and edge detection to implement this effect. |
SubdivisionI implemented the loop subdivision algorithm which will subdivide the mesh and modify the mesh you are rendering accordingly. I used Winged Edge structure to store the neighbor information and modified my Winged Edge structure to speed up my winged edge constructing process. I created a look up table for each entry and use linked list to connect every edges which contains the smaller vertex x from entry[x].
|
3D Baseball Game
This project was my undergraduate project in the Computer Graphics class. It allowed us to have the opportunity to create a baseball game by using the CG knowledge we learned from class. I used OpenGL and MD2 model to run the game and used milkshape to create our own character.
What i learn: OpenGL, Milkshape 3D |
|