Pages

Showing posts with label flag animation collision c# opengl. Show all posts
Showing posts with label flag animation collision c# opengl. Show all posts

Monday, August 22, 2011

3D plaza with openGL and c#


This is an example of a 3D plaza, The waving flag was a code I borrowed from NEHE tutorials. The shadows are on the texture, they were rendered on 3D max studio. The sky-box and the grass outside are not models, they are hard coded. Collisions are implemented in the easiest way. That means that I am working on defining a 2D segment and calculating the distance to that segment, if that number is bellow a number I define there is a collision and therefore the camera wont move on that direction. Sources are in MVS 2008, I am using TAO Framework  and a small engine I made myself called Shadowengine.

Here is a list of what you will learn if you download(and leave a comment) this sample
  1. A small approach to simple camera collision
  2. You will learn how to implemente a simple FPS camera and to combine it with the collision class
  3. You will have the working code of a waving flag to use it to your convenience
  4. You will have a sky-box to use in your personal projects
  5. You will get an idea of what opengl Quadrics are, the stick of the flag is a quadric.
  6. If you wish you will learn how to use mi small opengl-engine, I develop this engine to teach my students the basis of 3D programming
Any comments on the blog will be useful, anonymous comments are enabled. Also I will answer all the questions about this project.