Daniel Haehn PRO
Hi, I am a biomedical imaging and visualization researcher who investigates how computational methods can accelerate biological and medical research.
Assignment 1
37/40 students submitted
@staff
#help
!feedback
#feedback
Field Trips
Manning College of Nursing
10/9
10/14
Quiz 2
Due tonight!
Plenty of Bonus opportunities!
Avanith KanamarlapudiĀ
Office Hours
Mondays 3-4p
McCormack 3rd Floor M-3-02-164
#help
http://localhost:8000
http://127.0.0.1:8000
file:///Users/d/Desktop/index.html
python -m http.server
required to load files!
can a website read "/some/secret/file" ?
No! a website can only read https://server/secret/file
where you start the webserver is the entrypoint
Assignment 2
#feedback
/anon
LMK if I shall NOT bring her
#feedback
/anon
LMK if I shall NOT bring her
Which framework?
https://github.com/haehn/cs460student/
https://haehn.github.io/cs460student/
https://github.com/YOURUSERNAME/cs460student/
https://YOURUSERNAME.github.io/cs460student/
X
Y
Z
3D?
It is all virtual.
Viewport
Camera
(Eye)
Frustum
zNear
zFar
Viewport
Camera
(Eye)
Perspective Projection
Camera
Scene
Camera
Eye
Position (x,y,z)
Focus (x,y,z)
Scene
Center
Up (x,y,z)
Camera
Eye
Position (0,0,100)
Focus (0,0,0)
Scene
Center
Up (0,1,0)
Translate (Move in x,y)
Zoom (Move in z)
Rotate
How can we access the camera in XTK?
r.camera.view is a 4x4 matrix
X.camera3D
r.camera.view is a 4x4 matrix
X.camera3D
r.camera.rotate([1, 0]);
rotates 1 degree in x
Let's try it!
c.center = [0, 0, 0];
c.center = [10, 0, 0];
c.transform.translateX(10);
X.cube
from the origin
c.center = [20, 0, 0];
c.center = [10, 0, 0];
c.transform.translateX(10);
c.transform.translateX(-10);
from the current position
movement in x-direction
X
Y
Z
c = new X.cube();
c2 = new X.cube();
c.center = [0, 0, 0];
c.lengthX
c.lengthY
c.lengthZ
gap
= 20
c2.center = [?, ?, ?];
= 5
c.color = [0, 0, 1];
c2.color = [1, 1, 1];
c.lengthX / 2 + gap + c2.lengthX / 2
0, 0, 0
X
Y
Z
c = new X.cube();
c2 = new X.cube();
c.center = [0, 0, 0];
c.lengthX
c.lengthY
c.lengthZ
gap
= 20
c2.center = [25, 0, 0];
= 5
c.color = [0, 0, 1];
c2.color = [1, 1, 1];
25, 0, 0
0, 0, 0
Z-Fighting
coming soon!
Assignment 2
Thursday 9/19
$ subl .$ cd 02
$ git pullSync your fork!
submit your music
Quiz due tonight!
By Daniel Haehn
Slides for CS460 Computer Graphics at UMass Boston. See https://cs460.orghttps://cs460.org
Hi, I am a biomedical imaging and visualization researcher who investigates how computational methods can accelerate biological and medical research.