Computer Graphics Seminar
MTAT.03.296 Fall 2014
Raimond Tunnel
Computer Graphics Seminar MTAT.03.296 Fall 2014 Raimond Tunnel - - PowerPoint PPT Presentation
Computer Graphics Seminar MTAT.03.296 Fall 2014 Raimond Tunnel Conclusion Geometry Points locations in space vertices Vectors directions Where are vectors in this picture? Polygons objects in space S o . . . ?
Raimond Tunnel
Where are vectors in this picture? S
. . ? : )
? ? ? ? ?
Affine transformation Used for perspective projection Linear transformation Translation column Point
Affine transformation Used for perspective projection Linear transformation Translation column Point ? ? ?
Affine transformation Used for perspective projection Linear transformation Translation column Point
Preserves straight
stay parallel. Shift, move, add to coordinates
Scale x and y by 5 times Add 2 to x and y coordinates. z stays the same Point remains a point
W a i t , i s n ' t G
r a u d s h a d e d c u b e l i k e t h i s ? ? Which is which?
By default three.js uses Gouraud shading for Lambertian; Phong shading for Phong.
http://stackoverflow.com/questions/15801971/three-js-what-is-the-exact-difference-between-lambert-and-phong
Lambertian, point light Phong, point light Lambertian, directional light Per-vertex Per-fragment Per-vertex Shading Lighting http://cgdemos.tume-maailm.pri.ee/
What lighting model is this?
W h a t m
e l s a r e a p p l i e d h e r e ?
T⋅l⋅LD⋅M D+(h T⋅n) c⋅LS⋅M S
Intensity Ambient D i f f u s e : L a m b e r t S p e c u l a r : B l i n n
h
g
a) b)
Pointcloud in MeshLab Constructed model in Blender
Why do we change the normals and not the actual surface geometry?
https://www.shadertoy.com/view/ldjSDW
What happens with the fish?
a) b)
https://www.shadertoy.com/view/ld2SRy
http://3dwayfinder.com/
Consensus on the coordinate axes directions is important!
Not only graphical bugs, what about finding a shortest path in an environment?
O p t i
a l l y s t a r t w i t h l
y a n d m a k e i t h i g h
y Just use the low-poly model in game as is? What is missing here? Enhanced Dark Engine, 1999 Did not support our mysterious thing. http://www.ttlg.com/forums/showthread.php?t=138460
– Weapons – Trees
Borderlands 2 Show this if there is time Starbound Overgrowth
https://www.youtube.com/watch?v=SAtwQa8t_3g
From the wave sampling demo...
https://www.shadertoy.com/view/ld2SRy
Different texture based on height Texture itself generated by combination of functions Perlin noise – combination (sum)
differently sampled random signals
– Grid – Voxel – Tile
http://tume-maailm.pri.ee/ylikool/ScientificComputing/Project/
My water surface demo Minecraft Terraria
Binding of Isaac: Rebirth http://bytten-studio.com/devlog/2014/09/08/overworld-overview-part-1/ Lenna's Inception. Large procedurally generated world. Perlin noise for heightmap + template rooms for buildings. http://lennasinception.com/about/
http://gabe687.deviantart.com/art/Baked-texture-map-50600743
http://en.wikipedia.org/wiki/Texture_filtering
Remember the tiger? http://raphaeljs.com/tiger.html
CGLearn and CGDemos are both done with three.js https://cglearn.codelight.eu http://cgdemos.tume-maailm.pri.ee/
Otherwise: