super cool 10/10 solar system sculpture
  • JavaScript 81%
  • HTML 19%
Find a file
2014-11-17 00:01:39 +01:00
bunny.json added file loader (does not work yet ;_;) 2014-11-14 13:58:25 +01:00
controls.js added code from previous homework 2014-11-06 19:45:29 +01:00
draw_scene.js things on sticks 2014-11-16 22:28:36 +01:00
glMatrix-0.9.5.min.js added code from previous homework 2014-11-06 19:45:29 +01:00
index.html first spinning prototype wow 2014-11-16 20:35:38 +01:00
init_buffers.js added object hierachy 2014-11-16 18:57:21 +01:00
jquery-2.1.1.min.js added file loader (does not work yet ;_;) 2014-11-14 13:58:25 +01:00
load_model.js cleaned up init_buffers.js 2014-11-16 15:36:35 +01:00
README.md added link to gh-pages 2014-11-17 00:01:39 +01:00
Screenshot - 161114 - 22:47:04.png added pic and edited readme 2014-11-16 22:58:00 +01:00
teapot.json cleaned up init_buffers.js 2014-11-16 15:36:35 +01:00
transformations.js first spinning prototype wow 2014-11-16 20:35:38 +01:00

webGL-homework-2

super cool 10/10 solar system sculpture (ok, maybe 3/10 in retrospect) Try here: http://miniplane.github.io/webGL-homework-2/

The sculpture can be transformed like the shapes from the previous lab:

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/Lab2/lab2.html