Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Project for CG Scenery based, Schemes and Mind Maps of Graphic Design

Scenery based project report opengl c++

Typology: Schemes and Mind Maps

2023/2024

Uploaded on 11/03/2023

pranav-pawar-4
pranav-pawar-4 🇮🇳

2 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Graphics Project
Whispers of nature: Glimpse into
Village’s rural delights
Submitted to : Dr. Sunil Kumar
Submitted by : Hardik Mehta
ROLL-NUMBER : 2021-IMT-039
pf3
pf4

Partial preview of the text

Download Project for CG Scenery based and more Schemes and Mind Maps Graphic Design in PDF only on Docsity!

Computer Graphics Project

Whispers of nature: Glimpse into

Village’s rural delights

Submitted to : Dr. Sunil Kumar

Submitted by : Hardik Mehta

ROLL-NUMBER : 2021 - IMT- 039

I have prepared a village scenery which comprises of a Hut , windmill , river , trees , moon and a boat. Reasons to choose this topic: 1 Aesthetic appeal : Village scenery can be visually appealing and engaging for the viewers. 2 Learning opportunity : It offers valuable learning experience for understanding various OpenGL techniques like creating polygons ,filling objects with colors. 3 Diverse Elements : A village setting includes divere range of elements ,such as landscapes ,vegetation and various structures.Implementing these elements in the project helps practicing the integration of different components. Different objects made are as follows: FENCES

  • Made it using vertical and horizontal rectangles to give them grid-like appearance and filled it with light brown color. Hut
  • Made the walls of hut from rectangles and triangles
  • Made the window from a square.
  • Made the roof from parallelogram. Sky
  • Made it using a rectangle and filled it using black color to give view of night. LAND

glColor3ub() : used to set the current color in RGB format ,where each component is an unsigned byte. glBegin(GL_TRIANGLE_FAN) : used to indicate the start of a group of vertex definitions that form a triangle fan. It is a primitive that consists of a central vertex and a set of connected vertices , forming a series of triangles around a entral point. glRecti() : used to draw a rectangle It takes four integer parameters,the x and y coordinates of the top-left corner of the rectangle , and the x and y coordinates of the bottom-right corner of the rectangle. glBegin(GL_POLYGON) : used to indicate the beginning of a sequence of vertices that define a simple ,convex polygon. Each vertex specified between glBegin(GL_POLYGON) and glEnd() defines one vertex of the polygon. glVertex2d(x,y) : used to specify a vertex with double-precision floating – point coordinates in 2D space.2D stands for data type double. Screenshot of output produced: