Problem I. 372. (March 2015)
I. 372. OpenGL is a platform-independent programming interface to display 3D objects. Many C programs are written for it, but other programming languages appearing in the contest rules of this journal, e.g., Lazarus or Visual Basic, are also used. Several references, videos and sample programs can be found on the Internet to learn its programming. It is worth using GLUT or other OpenGL toolkits available in the given programming language or environment.
Create an OpenGL application to simulate the path of a point-like object bouncing slowly within a cube. Your program should display the edges of the cube, and trace the object trajectory. The object should have a random initial velocity, and all collisions with the walls should be perfectly elastic. You should use perspective projection to display the 3D objects. The user should be able to zoom in or out, and there should be an option in which the ``camera'' is always directed toward the cube center.
You should submit in a compressed file i372.zip the documentation of your program (i372.txt, i372.pdf) and the necessary source files for compiling the program. The documentation should explicitly specify which programming language and environment, and which toolkits should be used to compile and run your program.
Deadline expired on April 10, 2015.
2 students sent a solution. 10 points: Fényes Balázs. 3 points: 1 student.