What demand ?
Theory:
- basic representations(digitally encode shape)
- sampling & aliasing(acquire & reproduce a signal)
- numerical methods (manipulate signals)
- radiometry & light transport(how light behave)
- perception(how to relate to people)
Systems:
- parallel hetergenous processing
- graphics-specific programming languages
- ...
Activity:
modeling:
Use the coordinates to discribe
Drawing the cube:
How to draw 3D cube to 2D iamge?
- map 3D to 2D
- connect 2D points with straight lines
perspective projection:
From the similar triangle,we can get that,.Similarly,like our eyes: objects close looks bigger,frr away is bigger.
algorithm:
Generally,z is bigger,iamge is smaller,thus get that :
- camera is at
- Convert to
- subtract c from to
- divide by z to get
Algorithm details:
- ,we can get the shifting from origin.It's a way to represent relativity
- if ,It's the orthogonal projection
- divide (x,y) by z: inverse ratio about z(distance)
- c is camera,we can move it ,just like move the camera to get different views of objects
How to draw lines?
Rasterization:
convert continous object to a discrete representation on a raster grid
What pixels should we color ?
Diamond rule:light up pixel if line passes through
-
If check every single pixel in the image
- try
-
Incremental line rasterization:
v=v1;
for(u=u1;u<=u2;u++)
{
v+=s
draw(u,round(v))
}