100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COS3712 ASSIGNMENT 1 SOLUTIONS 2021

Rating
1.0
(1)
Sold
7
Pages
14
Grade
A+
Uploaded on
07-05-2021
Written in
2021/2022

COS3712 ASSIGNMENT 1 SOLUTIONS 2021

Institution
Course

Content preview

COS3712 ASSIGNMENT 1 SOLUTIONS 2021

<!DOCTYPE html>



<html>



<head>

<title>COS3712 Assignment</title>

<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dat-
gui/0.7.2/dat.gui.min.js"></script>

<style>

body {

/* set margin to 0 and overflow to hidden, to go fullscreen */

margin: 0;

overflow: hidden;

}

</style>

</head>



<body>

<!-- Div which will hold the Output -->

<div id="WebGL-output"></div>



<!-- Javascript code that runs our Three.js examples -->

<script type="text/javascript">



// create a scene, that will hold all our elements such as objects, cameras and lights.

, var scene = new THREE.Scene();



// create a camera, which defines where we're looking at.

var camera = new THREE.PerspectiveCamera(55, window.innerWidth / window.innerHeight, 0.1,
1000);

camera.position.z = 500;



// create a render and set the size

var renderer = new THREE.WebGLRenderer();

renderer.setClearColor(new THREE.Color(0x00c9d0));

renderer.setSize(window.innerWidth, window.innerHeight);

document.body.appendChild(renderer.domElement);

renderer.shadowMapEnabled = true;



// create group

var group = new THREE.Object3D();

var truck_group = new THREE.Object3D();



THREE.crossOrigin = "";

//-----------------------------------create the ground-----------------------------------------------



var planeGeometry = new THREE.PlaneGeometry(350, 300);

var planeMaterial = new THREE.MeshLambertMaterial({ color:'green'});

var plane = new THREE.Mesh(planeGeometry, planeMaterial);

// rotate and position the plane

plane.rotation.x = -0.5 * Math.PI;

plane.position.x = 8.5;

plane.position.y = -12;

Written for

Institution
Course

Document information

Uploaded on
May 7, 2021
Number of pages
14
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Reviews from verified buyers

Showing all reviews
4 year ago

4 year ago

Hey What's wrong with this assignment as you have rated it low?

1.0

1 reviews

5
0
4
0
3
0
2
0
1
1
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
hiltontutorials University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
1905
Member since
6 year
Number of followers
1219
Documents
858
Last sold
5 months ago

3.7

359 reviews

5
145
4
83
3
56
2
28
1
47

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions