This web site supports

In collaboration with...
 
NinjaEyes
The eyes with the iris opened
This little VC++ (both 6.0 and dotNET) project explains you how to build and document with UML an OOP rendering framework that uses DInput and OpenGL. You'll also find some interesting infos about OpenGL texture matrix transformations to create a simple model animation.

The program generates and render two rolling eyes that follows a flare moved by your mouse. The eyes iris reacts to the flare movements.

When the mouse is motionless the iris appears closed, but when you move it, the iris opens and will shrink back slowly only after a few seconds.
The iris is now closed
The animation of the iris is made using a glTranslatef commands on the texture matrix of the model (a sphere created with a quadratics).

The rendering/transformation code is contained in the method renderizzaGeometrie() implemented in the class NJ_OGL_OCCHIO

Using '+' & '-' buttons you can activate/deactivate the visualization of the basis vectors of the models
Ortonormal vectors visualized using "+" and "-" buttons.
On the left you can see some screen shoots of the program generated by the following sources.

Here you can find the links to download all the related stuff:

GIF preview of the UML diagram

Diagram of the classes(144Kb)

VC++ 6.0 project sources (675Kb)

VC++ dotNET project sources (720Kb)

OpenGL & OOP   Physics & simulations   Code snippets   Math snippets   Web Dev   Demos   Gallery   Links about...   Humor :D   Site search   Site map   ADV & support   About me   

NinjaCross

info@ninjacross.com
Powered by 3000WEB
 
Navigation panel
<< refresh >>

Web site Legenda
click to view...

Copyright & Co.
click to view...


ADVs

Web site stats