3480 - Computer Graphics - Semester Project
 Name: Jacqueline Peralta

 

Bouncing Rubber Ball

This gif shows my goal: source My computer graphics elements... • OpenGL Transformations • OpenGL 2-D Texture Mapping • GIF-animation • Points on a circle • Spherical Texturing • Specular Highlights To demonstrate my study... • Lab-7 Framework • Lab-6 Movement Framework • Spherical Texture Image found online • Experimental renderings showing progress • Final Animation Here is the link to the original texture image map that I'll be using: Texture Image. Note: I attempted to create my own spherical texture image, but it was too difficult. Scroll down to see my progress... Project Attempt #1 Using Lab-7 Cylinder 3D object framework. Stopped rotation. Added Lab-6 Rocket movement framework. I also finished setting up my animation and capture keys. The GIF is a bit "jumpy" because I cropped it before exporting and this was the result. Project Attempt #2 I have created my sphere by dividing it into sectors and stacks. This is the website that helped me understand how to build it: OpenGL Sphere I attempted to use GL_QUADS, but GL_QUAD_STRIP worked better. Here's a look at the object's faces. Number of stacks and sectors used is 6. Project Attempt #3 2-D Texture Image added onto sphere. I have also added bouncing. This webpage helped me to understand how to map texture to a sphere: Texture Mapping Project Attempt #4 Removed texture image for now. Working on adding specular highlight. Changed background color so it matches the sample GIF. I kept getting a seg fault when resizing the window and then trying to capture frames to create my GIF. So, I had to modify the size of the window within the code itself (640 x 480 => 300 x 600). Number of stacks and sectors being used is 24.


Lab-15 work done Improved my GIF. I used GIMP to do it. It's one bounce looping and removed any extra frames one by one that would create a break in my GIF.


Project Attempt #5 My sphere now has specular highlight making it look shiny. Material properties for the Phong lighting model include ambient, diffuse, specular, and shine. Lab-7 framework had set the light source properties already, but I had to add the shine. Sample GIF seems to have another light source, so I will attempt to add another one to mine as well. Project Attempt #6 Here is my attempt at adding another light source. I adjusted the values for both light sources until it looked similar to that of the sample GIF. I also added the squish effect to my sphere. I didn't use the jello lab which would've helped to create that effect with springs, therefore I had to use the glscalef() function to create it instead. Final Animation I've reapplied the texture image. This is the final result:

Lab-6 Rocket Animation Lab-8 Screenshot ray trace Lab-8 Animation