Assignment 1
2023
Unique No.: 807224
Due date: 24 May 2023
www.tutorialspoint.com
,On the last page of this document you will find a Google drive link with the following :
1. Solutions to COS3712 Assignment 1 - A zip folder with all the project files. You simply copy,
paste and run in your browser
.json →
2. As a bonus you will also have access to the prescribed textbook for this module:
Edward Angel, Dave Shreiner - Interactive Computer Graphics. A Top-Down Approach with
WebGL-Pearson (2014)
Please note: This document should only be used as a guide for your own assignment. We do
not condone plagiarism.
www.tutorialspoint.com
,Assessment 1 requirements
807224
In this project you have to design and construct a simple village.
The village should contain the following the following:
• A water tank - Use a cylinder.
• A barn - A rectangular structure with prism roof
• Trees — Use cylinders for the trunk and multiple cones to depict the top
half of the tree.
For the barn, the roof and supporting structure (walls) should be of different
colours. You also need to define the ground on which the buildings are
situated. On the ground you need to draw a water pond.
Add buttons to your project to do the following:
• Toggle rotation. Start and stop (toggle) rotation of shape.
• Toggle(change) direction of rotation.
Add sliders to your project to do the following:
• Increase and decrease the speed of rotation of shape.
• Zoom in/out to the centre of your village.
You are allowed to use a graphics library like three.js for this project. Once
you are done take screen shots of your running program and add these
together with your .js and other files into a zip folder and submit the zip
folder.
Chapters 1-5 for this assessment:
www.tutorialspoint.com
, Preview output…
www.tutorialspoint.com