![Page 1: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/1.jpg)
NEWTON’S CRADLE
CADENAS QUIJANO, PATRICIA
COTRINA FERNÁNDEZ, MANUEL
GARCÍA TOMILLO, JAVIER
HIJARRUBIA BERNAL, LUIS
An OpenGL Application
![Page 2: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/2.jpg)
Introduction
Newton’s Cradle Energy conservation law Conservation of momentum
Open GL over Java (JOGL) Different modes
Movement Appearance Number of balls
Camera movement and ball drag
![Page 3: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/3.jpg)
Architecture
JavaForm with a GLJPANEL Object oriented
1 Class for each issue All the conditional sentences in mode
change Display Method as simple as possible
![Page 4: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/4.jpg)
Movement
Simulated by angle calculations Two movement modes
Linear Cuadratic
Friction Speed
![Page 5: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/5.jpg)
User interaction
Camera movement by keys Characteristics by menu Ball dragging with mouse Change number of balls Help window provided
![Page 6: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/6.jpg)
The world
Skybox Huge cube with textures Choosable by user in menu Limits the scene
OBJ External file (.OBJ) Cradle and table
![Page 7: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/7.jpg)
Materials and Textures
Every object has material Only ball material can be changed
Textures Cradle and desk Skybox Balls (some modes)
![Page 8: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/8.jpg)
Features
Transparency Material light emission Moving sun Shaders
Vibration Colorize
![Page 9: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/9.jpg)
Other features
Sound Different for each mode
Text Rendered with GLUT
![Page 10: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/10.jpg)
Demo!
![Page 11: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/11.jpg)
Conclusions
Acquired the knowledge required Takes advantage of the different
capabilities usually used in an interactive multimedia system
Exploiting JOGL capabilities almost to the limit
![Page 12: NEWTON’S CRADLE CADENAS QUIJANO, PATRICIA COTRINA FERNÁNDEZ, MANUEL GARCÍA TOMILLO, JAVIER HIJARRUBIA BERNAL, LUIS An OpenGL Application](https://reader035.vdocumento.com/reader035/viewer/2022062517/56649ef35503460f94c05431/html5/thumbnails/12.jpg)
Questions?