CS 535 Fall 2007
Midterm Solution Set (100 points)
Closed books and closed notes
1.
Name:_
(15 points)
(a) Is it possible to use a 512 512 frame buffer (bitmap) to control a
1024 1024 display? Justify
3D Transformations
CS 535
3D Space
We want to extend the idea of transformations to
deal with 3D objects
More complex than 2D, but essentially the same
ideas work
Coordinate systems:
y
y
z
x
z
x
Le
2DDrawings
CIRCLE
Representing A Circle
Explicit representation:
y r x
2
2
Implicit representation:
F ( x, y) x y r
2
2
2
F ( x, y) ( x xc ) ( y yc ) r
2
Parametric representation:
x r cos
y r sin
Viewing
Transformations II
Arbitrary Views
Suppose we want to look at the environment from
somewhere besides the zaxis.
How do we do this?
What is the perspective matrix?
Where should an object p
Illumination & Shading
What is a Shading Model?
Model of how light interacts with materials
We will discuss the common, heuristic shading
models:
Flat
Gouraud
Phong
Not physically based: work we
Ray Tracing
Part II
Ray Representation
A ray can be represented explicitly (in parametric form)
as an origin (point) and a direction (vector):
xo
Origin: ro yo
zo
Direction:
r(3)
xd
rd
Ray Tracing
Part I
Ray Tracing
What is ray tracing?
Trace the path of a ray of light.
Model its interactions with the scene.
When a ray intersects an object, send off
secondary rays (reflection, sh
Viewing Transformations I
Comp 535
Motivation
Want to see our virtual 3D world on a 2D
screen
2
Graphics Pipeline
Model Space
Model Transformations
World Space
Viewing Transformation
Eye/Camera
Spac
Color
What is Color?
Color is the spectra of light being perceived by
the human visual system
Visible light is electromagnetic energy in the
400 to 700 nm wavelength range
Why discuss color?
Many
Polygon Scan
Conversion
and ZBuffering
Rasterization
Rasterization takes shapes like triangles and
determines which pixels to fill.
2
Filling Polygons
First approach:
1. Polygon ScanConversion
Rast
Curves and Surfaces
Bspline Curves
These curves are approximating rather than
interpolating curves.
The curves come close to, but may not actually pass
through, the control points.
Usually used as
Texture Mapping
(Some Images from Rosalee Wolff)
Texture Mapping
Problem with shading models:
They assume that a diffuse surface has uniform
reflectance.
This is okay for walls or solid balls, but
CS535 Homework 3
Homework 3 The Solid
Utah Teapot
Due March 23, 2012
In this assignment you will implement the functions to
show a solid and shaded Utah teapot like that shown
CS535 Homework 2
Homework 2 The Utah Teapot
DueFeb22,2012
In this assignment you will implement the
functionality for displaying Bezier surfaces under
different transformations. The goal is to give
CS535 Final Project
Ray Tracing
Due May 2rd, 2012
In this assignment you will implement a basic ray tracer. Use a recursive approach, as
suggested in Foley van Dam et al, paragraph 16.
CS535 Homework 4
Due: April 5
In this homework, you will use the GLSL to implement perpixel lighting with a reflection map.
You are required to draw the Utah Teapot with a mirror surface property. Th
CS535 Spring 2012 (Homework 1)
Homework 1 2D Drawings
Due Feb 3rd, 2012
In this assignment you will implement an interactive sketchpad. The goal is to give you some
firsthand experience with OpenGL,
Window to Viewport
Transformations
Compositing Transformations
Does order matter?
Case 1: translate by (2, 0), scale by (2, 2)
Case 2: scale by (2, 2), translate by (2, 0)
1 0 2
T 0 1 0
0 0 1
B
Introduction to Computer
Graphics with OpenGL/GLUT
What is OpenGL?
OpenGL (Open Graphics Library)
A software interface to graphics hardware
a standard specification defining a crosslanguage,
cross
Introduction to
PARAMETRIC SURFACE
Outline
Surface modeling problem
Parametric bicubic surfaces
Bezier surface
Monday, January 23, 2012
Surface Modeling Problem
How to model a complex
surface in 3D
3. Raster Algorithms
3.1 Raster Displays
CRT
LCD
(see Chapter 1 of the Notes)
1
CS Dept, Univ of Kentucky
3.2 Monitor Intensities & Gamma
Compute intensity values by an illumination
model
Computed int
Lecture note 1: Introduction to TensorFlow
CS 20SI: TensorFlow for Deep Learning Research (cs20si.stanford.edu)
Prepared by Chip Huyen ([email protected])
Reviewed by Danijar Hafner, Jon Gautier, Mi
12. Data Structures for Graphics
How would we be able to answer the following
queries in constant time?
 Given a polygon, what are the adjacent
polygons?
 Given an edge, which 2 polygons share it?

Lecture 4:
Pixels and Filters
Dr. Juan Carlos Niebles
Stanford AI Lab
Professor FeiFei Li
Stanford Vision Lab
FeiFei Li
Lecture 4
1
6Oct16
What we will learn today?
Images as
Welcome to TensorFlow!
CS 20SI:
TensorFlow for Deep Learning Research
Lecture 1
1/13/2017
1
2
Agenda
Welcome
Overview of TensorFlow
Graphs and Sessions
3
Instructor
Chip Huyen
[email protected]
4
Yo
7. 3D Viewing
Projection:
why is projection necessary?
1
CS Dept, Univ of Kentucky
7. 3D Viewing
Projection:
why is projection necessary?
Because the display surface is 2D
2
CS Dept, Univ of Kentucky
2. OpenGL  I
We have used the term OpenGL several times.
But what is OpenGL?
OpenGL is a software interface to graphics
hardware
It consists of 150 distinct commands
1
CS Dept, UK
Advantages:
Built o
1. Introduction
1.1 Graphics Areas
2
Modeling:
Rendering:
Animation:
building specification of shape and
appearance properties that can be stored in computer
creation of shaded images from 3D
computer
Deep Reinforcement
Learning in TensorFlow
Danijar Hafner Stanford CS 20SI 20170310
Gu16
Barron16
Hafner16
Reinforcement Learning
Repeat until end of episode:
1. State
2. Action
3. Reward
Agent
+5
En
Lecture 6:
Finding Features (part 1/2)
Dr. Juan Carlos Niebles
Stanford AI Lab
Professor FeiFei Li
Stanford Vision Lab
FeiFei Li
Lecture 6  1
10Oct16
What we will learn today?
Local i
A TensorFlow Chatbot
CS 20SI:
TensorFlow for Deep Learning Research
Lecture 13
3/1/2017
1
2
Announcements
Assignment 3 out tonight, due March 17
No class this Friday: Pete Wardens talk on TensorFlow f
Lessons Learned Building the Neural GPU
What I learned building NNs to learn algorithms?
ukasz Kaiser
2/24/17
Whats That?
Pattern 1:
i: 10 i: 11 i: 10110
o: 01 o: 11 o: 01101
i: 1000
o: 0001
i: 1101
o