This is my project idea:
Newton's Cradle.
The project will be worked on using openGL.
This cradle will be on a platform like a wooden board.
The cradle will have a base to stand on, thread and spheres are connected. The physics will also be involved.
Lastly, this project will have animation and maybe camera circling.
Lab 07
Progress:
1. Making a sphere and 2 threads with same start verticies and different verticies with opposite Z. The current code also included ambient lighting and specular lighting.
2. Making the base. Modify the length threads to use the total height - the height of cube, sphere, and the base.
3. Making a pole by using gluCylinder, pass in quadratic object, radius, base size, with stacks and slices as subdivisions on z-axis. Lastly use the already modified thread len - the horizontal tube's height.
4. change the x axis to shift the pole
5. Rotate the pole horizontally.
6. Make the poles in the back exactly the same with opposite Z's.
7. Create individual threads and spheres takes too much space, so I made a function to create both thread and sphere as a set. When I change the count of spheres, the function will change the sets shown on the screen.
8. I used 2 functions for my animation. First function contains the if loop that will always start at 1st sphere and at a negative angle, and then i is more than total spheres - 1 and angle is no longer negative, the sides will switch.
There's a separate function to keep the animation going, and update.
6. Camera circling.