25.05.2002
Blending is used to combine the color of a given pixel that is about to be drawn with the pixel that is already on the screen.
Blending is setting through:
glEnable(GL_BLEND); and glDisable(GL_BLEND);
The Blending Equation is set:
glBlendFunc( source factor, destination factor );
source code (without jpeg.lib) and executable – 250kB
25.05.2002
Multi-texturing – the ability to apply two or more distinct textures to a single fragment. I use two texture units. Each texture unit has its own texture coordinates.
Multi-texture makes it possible to use light-map in one pass. Many OpenGL games such as Quake and Unreal use light maps to improve the lighting quality within their scenes. Multi-texture is often uses on bump-mapping.
Request: GL_ARB_multitexture and GL_ARB_texture_env_add.
source code (with jpeg.lib) and executable – 262 kB
21.04.2002
Height map is picture, that intensity of color represent height of terrain.
source code and program – 313kB
09.01.2002
Program draws:
cylinder, cone, sphere, one-part rotated hyperboloid, anuloid, rotated elipsoid, rotated paraboloid, rotated function sinus and rotated Bezier curve.
All surfaces has textures, are lighting and are animate.
source code and executable – 111kB
05.01.2002
Program has ability to modeling Ferguson and Bezier curves.
source code and program – 51kB
05.01.2002
Program draws:
Bezier curves, Circle, Ellipse, Parabole, Hyperbola, Ortocykloida, Epicykloida, Hypocykloida, Evolvent of circle, Lemniskat of Bernoulli, Descartes leaf, and Archimedes spiral.
source code and executable – 58kB
05.01.2002
All these objecs draw by glu (OpenGL Utility library).
source code and program – 99kB
05.01.2002
Display list contains list of operation.
source code and program – 96kB
05.01.2002
For lighting are important vectors to perpendicular on surfaces (normal vectors). These vectors are use to compute lighting.
Program draws cube two ways:
First cube (at left) has one normal vector on side.
Second cube (at right) has one normal vector on vertex.
source code and executable – 95kB
05.01.2002
Press key ‘h’ to show help. This goes for all further programs.
source code and executable – 47kB