|
|
|||||||||||||||||||||||||||||||||||||||||||
|
The objective of this assignment was to implement simple 2D bitmap manipulation by programming a sprite, a basic element of games programming. The program, developed in Visual Basic, displays a sprite and moves it over a complex background. The BitBlt() function in Visual Basic is used to perform image transfers.
Download Demo [ZIP 146,952 Bytes]
MD5: 9f8c3f64d30c61ad98741311848bf2d3 SHA1: 95f58d237d1e55a9da66320ed8801670090598fd
This is a simple graphical editor that allows the user to interactively define an object composed of one or more polygons. It is implemented in Visual C++ using OpenGL.
Click the Left mouse button to start defining a polygon. The first vertex is located at the position of the cursor when the mouse button was clicked. Every subsequent click of the LEFT mouse button adds a new vertex at the position of the cursor during the click. As you are selecting vertices, a rubberband line is drawn from last selected vertex to the current mouse location, showing the current configuration of the polygon. When the Left mouse is clicked again, the rubberband line is converted into permanent line. If you move the mouse cursor near (within Hit Test Radius) an existing vertex of a polygon, that point is used as the next point of your polygon, rather than defining a new point location.
Download Demo [ZIP 15,241 Bytes]
MD5: 9ef0ab13844e9aea0c130a91ad5e5da3
SHA1: caff4b1f5de2694877371d0b2d9f952a02efe932 3D World and Hidden Surfaces
This is an assignment in viewing a 3D objects on a 2D display using projection and hidden surface removal. OpenGL transformation functions are not used. A C++ class is developed that implements a camera in 3D world, which enables you to view a 3D object in a 2D world. All planes and lines are displayed in wire frame view. However, in solid view, only surfaces which are visible to camera (eye) are displayed on 2D projection. Back Face detection algorithm is used to decide which surfaces are hidden. All hidden surfaces are removed from view. A trapezoid is created as a sample 3D primitive. The initial view is isometric, which can be changed by using keys defined.
Download Demo [ZIP 14,239 Bytes]
MD5: d2ecc905cb862ff590815622fb8101df SHA1: 4a539eae39daaa925af0d6c6e804f673755bef9b
|
|||||||||||||||||||||||||||||||||||||||||||
|
Last Updated: 2008-04-20 17:18:59