Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ for more details.
I remembered I had this Aquarium code on my disk somewhere, so thought I'd post it. This is a simple Aquarium application written in C++ for one of my Uni courses, it uses OpenGL for the rendering and requires the GLUT library.

The code demonstrates how a very simple scene graph is put together, the code covers the following aspects of OpenGL:
  • Textures
  • Rotation
  • Translation
  • Rendering modes (wireframe/polygon)
  • Fog
  • Lighting
  • Display Lists

glaqua.png


Each of the rendered objects can be translated, rotated and scaled, there are no special nodes in the graph for this, each object is distinct.

The source code can be found here: glaqua.zip [69.67 Kb] (3062 downloads).



-i

Skip down to comments...
A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. If you spot something out of place, please do let me know.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
 
comments powered by Disqus
Other posts you may like...