Assignment #2

Singapore Round-the-Clock

 

 

This is a scene in Singapore depicting a famous Hotel, The Grand Central Hotel. Here we see that the structure of the hotel is not too complex and can be contructed with a simple box quad consisting of 6 faces.

The hotel was rendered using Opengl's QUAD rendering method for all six sides. In reality, only 2 sides are needed and presented in this slide. However, all six sides can be seen in the final CPP file when the "Rotate View" button is activated.

The hotel itself is textured using 5 different textured designed and edited in Adobe Photoshop, and imported via the function LoadGLTextures(), a locally written module to preload all textures and binding their reference to a texture array.

Light was also programmed into the scene to simulate day and night. A light with diffuse settings of (1.0f, 1.0f, 1.0f, 1.0f ) was set up from a very far distance to simulate the sun's distance from earth. Then the light was subjected to a rotation about the center of the scene.

 

 

 

 

 

 

 

 

 

 

 

Hosted by www.Geocities.ws

1