Skip to content

Eight uniquely transformed houses in OpenGL. Each house, complete with a triangular roof and floor, is set against a textured background, demonstrating the blend of transformation and texture in graphics.

Notifications You must be signed in to change notification settings

vmsaif/opengl-transformation-and-texture

Repository files navigation

OpenGL Transformation and Texture

Hits

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.

Features

  • 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.

Requirements

This Repository

Clone this repository to your local machine with:

git clone https://github.com/vmsaif/opengl-transformation-and-texture

Visual Studio

Ensure you have Visual Studio installed. If not, download it from Visual Studio Official Website.

GLUT Library

This project requires the OpenGL library or glut.h. The easiest way to set it up in Visual Studio is as follows:

  1. Navigate to the directory where you cloned the project.
  2. Open the opengl-transformation.sln file in Visual Studio.
  3. Click on Project in the menu bar.
  4. Select Manage NuGet Packages.(If you don't see it, close the VS window, then resume from step 2.)
  5. Click on the "Browse" tab.
  6. Search for "freeglut".
  7. Select "nupengl.core" (which includes glut.h) and click Install.(If already installed, then uninstall then install again).

Running the Project

  1. Open the project in Visual Studio.
  2. Press F5 or choose the Run Without Debugging option.

About

Eight uniquely transformed houses in OpenGL. Each house, complete with a triangular roof and floor, is set against a textured background, demonstrating the blend of transformation and texture in graphics.

Topics

Resources

Stars

Watchers

Forks

Languages