Points and Lines:
Polygons:
Stippled Polygon Pattern:
Program an algorithm that draws a wire-frame sphere
approximation.
Colored Circles:
Draw three intersecting circles with the primary colors.
They should have different z-values. Change the drawing order.
Colorize your 3D-Spheres.
Gradient Fill:
Draw a color circle with the primary colors
and a gradient circular fill.
Try GL_FLAT and GL_SMOOTH as shading model.
Assign different colors to the vertices on the circle
not only to the center (as in the example image).
Blending:
Draw three colored circles with the primary colors
intersecting and blending each other.
The intersection regions should show the secondary colors.
Use: glClearColor(), glBlendFuncSeparate() and do not forget
to enable blending.
Why are the secondary colors less bright?
Fill the 3D house with color.
Try enable/disable of the depth test and blending:
gl.glEnable( GL.GL_DEPTH_TEST ); gl.glEnable( GL.GL_BLEND );
Transformations:
// Viewing Transformation. //view.setCamera( gl ); setCameraLookAt( glu );
Matrix Stacks:
GLU and GLUT:
Images
Bitmaps and Fonts
Texture
Particle Effects
Curves and Surfaces: