Lamp made with OpenGL – Animation and Texturing

I’ve coded animation to make the lamp jump around and for a fireplace to flicker. I’ve also incorporated various textures into the scene. The lamp performs a larger jump when faced with an obstacle. Here’s the final results:

Watch a Video Here

If you want to compile the program yourself, you can download the source code here. You need JOGL (Java OpenGL bindings) and the Java SDK installed. Instructions are included.

The user interface lets you do the following:

1. Change camera angle to follow the lamp.
2. Disable/Enable Textures
3. Disable/Enable all objects
4. Turn lights on and off. Light 0 is the room light, and light 1 is the lamp light.
5. Change the size of the room the lamp is in.
6. Pause/Start Animation
7. Animate a single frame
8. Reset the scene

Posted in Programming

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Kevin Stanley-Adams

Hi! I’m Kevin Stanley-Adams

I am a final year control & systems engineering student living in Sheffield, UK

Post Categories

Music I’ve Been Listening To