Village Scenario CG Project Source Code


Code is 100% error free
Still if you have any errors and if you don't know how to run code feel free to WhatsApp us or Comment below, Thank You.
 DOWNLOAD REPORT

DESCRIPTION

    Computer graphics village scenario looks like a true village nature. The village scenario, as the name suggests, consists of two boats that move from left to right on the river and are colored by red top and bottom brown, and there are trees and houses in the village, namely the sun, the mountains are brown in color. We can see more greenery rather then the pollution, larger buildings and vehicles like the city. The whole village scenario is presented in this project, see the video given above for more details. You can download the useful library i.e., GLUT libraries.

Working - The day and night view is shown in the video above so please go and watch it and the sun will appear red in the daytime and the brightness will be everywhere, the sun will disappear at night and the stars and moons will be inside. The image and everywhere the dark light is shredded. And when the moon appears white, the stars begin to glow at night. And you can use the key d from the keyboard to get the day view, and the n key from the keyboard to get the night view. And none of their mouse operations are available.

Use N/n to convert the scenario in to night.

Use D/d to convert the complete scenario in to day.

House Code here-

void house()
{
glColor3f(0.54, 0.0, 0.541);
glBegin(GL_POLYGON);
    glVertex3i(220, 35, 0);
    glVertex3i(380, 35, 0);
    glVertex3i(380, 45, 0);
    glVertex3i(220, 45, 0);
glEnd();
glColor3f(0, 0, 1);
glBegin(GL_POLYGON);
    glVertex3i(200, 45, 0);
    glVertex3i(400, 45, 0);  
    glVertex3i(300, 65, 0);
glEnd();
glColor3f(1,1,0);
glBegin(GL_POLYGON);
    glVertex3i(280, 35, 0);
    glVertex3i(320, 35, 0);
    glVertex3i(320, 45, 0);
    glVertex3i(280, 45, 0);
glEnd();
}

"For Complete Code Click On Above Button"

KEYBOARD & MOUSE FUNCTIONS

Press 'd' for day.
Press 'n' for night

                                                 DOWNLOAD SOURCE CODE NOW
                   Please Comment Your Reviews About the Code & Report Below.
Post a Comment (0)
Previous Post Next Post