This project demonstrates the power of OpenGL's transformation capabilities by rendering eight houses with distinct transformations. Each house is crafted with a triangular roof and a floor, and the entire scene is complemented by a textured background.
- Eight Houses: Each uniquely transformed using translation, scaling, and rotation.
- Display Lists: Efficiently renders the houses using OpenGL's display list feature.
- Background Texture: A rich texture sourced from a BMP format image, enhancing the visual appeal of the scene.
Clone this repository to your local machine with:
git clone https://github.com/vmsaif/opengl-transformation-and-texture
Ensure you have Visual Studio installed. If not, download it from Visual Studio Official Website.
This project requires the OpenGL library or glut.h
. The easiest way to set it up in Visual Studio is as follows:
- Navigate to the directory where you cloned the project.
- Open the
opengl-transformation.sln
file in Visual Studio. - Click on
Project
in the menu bar. - Select
Manage NuGet Packages
.(If you don't see it, close the VS window, then resume from step 2.) - Click on the "Browse" tab.
- Search for "freeglut".
- Select "nupengl.core" (which includes glut.h) and click
Install
.(If already installed, then uninstall then install again).
- Open the project in Visual Studio.
- Press
F5
or choose theRun Without Debugging
option.