350 likes | 1.02k Views
Newton’s cradle. An OpenGL Application. García Tomillo , Javier Hijarrubia Bernal , Luis. Cadenas Quijano, Patricia Cotrina Fernández , Manuel. Introduction. Newton’s Cradle Energy conservation law Conservation of momentum Open GL over Java ( J O GL) Different modes
E N D
Newton’s cradle An OpenGL Application García Tomillo, Javier Hijarrubia Bernal, Luis Cadenas Quijano, Patricia Cotrina Fernández, Manuel
Introduction • Newton’sCradle • Energy conservation law • Conservation of momentum • Open GL over Java (JOGL) • Differentmodes • Movement • Appearance • Number of balls • Camera movement and balldrag
Architecture • JavaFormwith a GLJPANEL • Objectoriented • 1 Classforeachissue • All the conditional sentences in mode change • Display Method as simple as possible
Movement • Simulatedbyanglecalculations • Two movement modes • Linear • Cuadratic • Friction • Speed
Userinteraction • Camera movementbykeys • Characteristics by menu • Ball dragging with mouse • Change number of balls • Help window provided
The world • Skybox • Huge cube with textures • Choosable by user in menu • Limits the scene • OBJ • External file (.OBJ) • Cradle and table
Materials and Textures • Every object has material • Only ball material can be changed • Textures • Cradle and desk • Skybox • Balls (some modes)
Features • Transparency • Material light emission • Moving sun • Shaders • Vibration • Colorize
Otherfeatures • Sound • Different for each mode • Text • Rendered with GLUT
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