3D-objects floating around
  • JavaScript 64.7%
  • HTML 35.3%
Find a file
2019-07-28 18:48:30 +02:00
controls.js some changes before first upload 2014-11-30 23:00:05 +01:00
draw_scene.js phong shading 2014-11-30 22:09:39 +01:00
glMatrix-0.9.5.min.js spinning 3d-objects 2014-10-27 21:06:31 +01:00
index.html point light 2014-11-30 23:48:13 +01:00
init_buffers.js specular lights for gouraud shading 2014-11-30 19:29:59 +01:00
jquery-2.1.1.min.js added some code from webgl-homework-2 2014-11-19 17:44:21 +01:00
load_model.js added some code from webgl-homework-2 2014-11-19 17:44:21 +01:00
README.md Update README.md 2019-07-28 18:48:30 +02:00
teapot.json added some code from webgl-homework-2 2014-11-19 17:44:21 +01:00
transformations.js can now select global coordinate system 2014-11-19 18:37:12 +01:00

webGL-homework

try here: http://miniplane.github.io/webGL-homework/

1-9: toggle between the shapes

scaling:

'x': decrease the width of the shape by a factor of 0.9
'X': increase the width of the shape by a factor of 1.1
'y': decrease the height of the shape by a factor of 0.9
'Y': increase the height of the shape by a factor of 1.1
'z': decrease the depth of the shape by a factor of 0.9
'Z': increase the depth of the shape by a factor of 1.1

rotation:

"w": rotate the current shape clockwise about the x-axis
"s": rotate the current shape counterclockwise about the x-axis
"e": rotate the current shape clockwise about the y-axis 
"q": rotate the current shape counterclockwise about the y-axis
"d": rotate the current shape clockwise about the z-axis
"a": rotate the current shape counterclockwise about the z-axis

movement:

	use arrow keys to move the selected shape
"," (comma): move the shape forward
"." (period): move the shape backward

assignment specification: http://vda.cs.univie.ac.at/Teaching/Graphics/14w/Labs/Lab1/lab1a.html