KWLib-3D: 3D Graphics Engine KWLib-3D: 3D Graphics Engine
By Keiji Ikuta(Apr. 10, 2002)
 H > P > this page: bottom (Group)
Objective
I developed 3D-graphics library "KWLib-3D" by myself to study 3D-graphics algorithm.
The features are as follows:
  1. All functions are implemented by myself.
    I do NOT use any 3D library such as DirectX-3D or Open-GL.
  2. Uses Z-Buffering as hidden surface removal.
  3. Based on KWLib class library.
Functions of KWLib-3D: (as of Apr 10, 2002)
  • Shapes: Point, Line, Triangle, Rectangle, Box, Sphere, Cylinder, Prism, Ring, Circle
  • Various types of Mesh: Mesh, Mesh with color
  • Regular polygon generator.
  • Rendering: Z-Buffer, Flat/Phong shading
  • Only view point can change the location.
  • Translucent. (using Z-Buffer and Z-Sort.)
  • Texture mapping to sphere/plane.
  • Stereo view mode.
  • Volume Rendering.
  • 3D Turtle Graphics.
  • 140,000 polygons per second. (At Celeron 550MHz)
KWLib-3D Block Diagram

Samples
Mesh
Function: r=sqrt(x*x+y*y)*6, z=(exp(-0.05*r)*cos(sqrt(1-0.01)*r+0))*0.5
Z-Buffering, Phone shading
Function
Polygon sample (regular icosahedron)
Z-Buffering
regular icosahedron
Polygon sample (Translucent Boxes)
Z-Buffering/Z-Sorting for translucent objects
Translucent Boxes
Texture Mapping to Sphere
Earth
Volume Rendering
Volume Rendering
Turtle Graphics
Tree
Valid HTML 4.01!Valid CSS!