You are required to make the village created in the previous project (assignment 1) more
realistic by adding lighting and material properties.
Firstly, in order for your lighting to work, you need to add vertex normals, for each component in
your farm. You should also define material properties for each component rather than the
simple colour used in the previous project. You are required to create two different scenes. The
first is a day scene in which you define the sun as a directional light whose colour is white in all
its components and that has constant attenuation.
The second is a night scene for which you have to add three “fire” lights in open spaces. Define
each “fire” light as a positional light whose colour is on the red side of pure yellow, and not as
bright as the sun. Experiment with both linear and quadratic attenuation to see which makes the
more effective scene. The night scene should also include a moon and some stars. Do not use
lights for any of these. Manipulate the emissivity of the respective materials to obtain the
desired lighting effect. Your program should retain all the functionality of the previous project,
i.e. toggling rotation, zooming in or out, changing the viewing angle, and terminating the
program. Add a keyboard callback that will allow the user to switch between scenes. Use <D>
to switch to day and <N> to switch to night. This should work whether "Caps Lock" is enabled or
You are required to apply texture mapping to the village components.
This part of the project covers the concept of texture mapping. In particular, we are looking at
2D texture mapping, which is the most commonly used type of texturing. Texture mapping may
be applied in one of two ways using a digital image or using a procedural texture-generating
function. This question explores the first option. Your task is to add texture mapping to two of
the three components of your farm or village. The barn or house should have a unique
combination of at least two textures: one for the walls and one for the roof. You need to find
your own images or create them yourself.
2 freelance ont fait une offre moyenne de 218 R pour ce travail
Hello dear friend i am OpenGl programmer and i can do this job very efficiently i have vast industry experience and i am doing job in software company since 2012
thank you for your posting. your task is very happy for me. i have much experiences in OpenGL field. if you hire me, i will complete project ASAP. best regards.