Short Courses on Computer Graphics, Image Processing and Computer Vision

Let me know what you think Mail me...

Course 3DC7: 3D Computer Graphics with C++/MFC7.0

Copyright © by V. Miszalok, last update: 14-11-2002

  Visitors since 01-01-2002 layout: thanks to Stefan Münz

deutsch english
Einführung
C1: OpenGL, eine einfache 3D-Rotation
C2: OpenGL, Beleuchtung und Texturen
C3: DirectX, DirectDraw Mesh Anzeige und Rotation
Introduction
C1: OpenGL, a simple rotation in 3D
C2: OpenGL, Lighting and Textures
C3: DirectX, DirectDraw Mesh Display and Rotation

C1: OpenGL, eine einfache 3D-Rotation

Malprogramm mit 3D-Animation
Fenster aufbauen: Rendering Context und Timer aufstellen
Maus bewegen: Polygon anzeigen und speichern
Maus loslassen: Koordinaten umrechnen in float zwischen -1.0 und +1.0
Timer-Ereignis: flimmerfrei Drehen um alle 3 Raumachsen

C1: OpenGL, a simple rotation in 3D


Scribble programm followed by a 3D-Animation
OnCreate Window: create a rendering context and a timer
OnMouseMove: display the polygone and store the vertices
OnLButtonUp: transform the all coords into floats -1.0 to +1.0
OnTimer: flicker free rotation arond the X, Y and Z axis.

EXE 28kB Vorschau C1_OpenGL_Demo.exe EXE 28kB Download and try C1_OpenGL_Demo.exe
Link Fragen und Antworten
PDF Fragen und Antworten drucken
Link Bauanleitung mit C++/MFC7.0 Link Code Comments
PDF Bauanleitung mit C++/MFC7.0 drucken PDF Code Comments print

C2: OpenGL, Beleuchtung und Texturen

Lernziel: texturiere 3D-Volumina unter gerichtetem Licht V1 - V3
V1: beleuchtetes 2D Quadrat
V2: Bedeckung des Quadrats mit einer zur Laufzeit wählbaren Bitmap
V3: texturierter und beleuchteter Oktaeder

C2: OpenGL, lighting and textures

Introduction into textured 3D-objects with light coming from one direction V1 - V3
V1: 2D square that reflects light
V2: Covers the 2D square at run time with a bitmap.
V3: Textured octahedron under a light source

EXE 36kB Vorschau C2_Texture_Demo.exe EXE 36kB Download and try C2_Texture_Demo.exe
Link Bauanleitung mit C++/MFC7.0 Link Code Comments
PDF Bauanleitung mit C++/MFC7.0 drucken PDF Code Comments print

C3: DirectX, DirectDraw Mesh Anzeige und Rotation

Ein vordefiniertes Polygon im Mesh-Format (tiger.x) und eine dazu passende Textur (tiger.bmp) werden mit Hilfe von DirectDraw angezeigt und als Endlosanimation um alle Achsen rotiert.

C3: DirectX, DirectDraw Mesh display and rotation

Displays a predefined polygon coded in the Mesh-format (tiger.x) and a texture (tiger.bmp) that fits the polygon are diplayed using the DirectDraw Library and performs an endless rotation around the x,y ans z -axis.

bin 29kB Download Polygon im Mesh Format bin 29kB Download tiger.x (Mesh format)
bin 66kB Download Textur im Bitmap Format bin 66kB Download tiger.bmp (Bitmap format)
EXE 324kB Vorschau C3_DirectX_Demo.exe EXE 324kB Download and try C3_DirectX_Demo.exe
Link Bauanleitung mit C++/MFC7.0
PDF Bauanleitung mit C++/MFC7.0 drucken

top of page: