CIS 681 - PowerPoint PPT Presentation

1 / 32
About This Presentation
Title:

CIS 681

Description:

Convert objects to pixels; Aliasing: Screen resolution may be much less than object resolution. ... 1,310,720 106 pixels. 106 initial rays. 106 reflection ... – PowerPoint PPT presentation

Number of Views:13
Avg rating:3.0/5.0
Slides: 33
Provided by: wen61
Category:
Tags: cis

less

Transcript and Presenter's Notes

Title: CIS 681


1
CIS 681
  • Introduction to 3D Image Generation

2
Computer graphics is the creation and
manipulation of graphics images by means of
computer. (Marc Berger, 1986.)
3
Vector Graphics
  • Draw a picture one line at a time.
  • Drawbacks
  • Wireframe.
  • Must continually redraw all objects.

4
Raster Graphics
  • n x m grid of pixels
  • Problems
  • Convert objects to pixels
  • Aliasing Screen resolution may be much less than
    object resolution.

5
Raster Graphics
Raster Graphics
6
Scan Conversion
  • Transform 3d object into 2d object
  • Scan 3d object, converting it into pixels.
  • Fast
  • Commonly used
  • Industry standard OpenGL
  • Hardware support (OpenGL).

7
Ray Tracing
  • Shoot a ray through each pixel
  • Find first object intersected by ray.

Image plane
Eye
  • Slow
  • Not commonly used
  • No hardware support.

8
Ray Tracing vs. Scan Conversion
  • Scan Conversion
  • (CIS 581, 781, )
  • Fast
  • Commonly used
  • Industry standard (OpenGL)
  • Hardware support.
  • Ray Tracing
  • (CIS 681)
  • Models light (better)
  • Photorealistic rendering
  • Special effects
  • Better for understanding rendering/lighting.

9
Creating a Scene
  • Translate rotate objects.
  • Linear algebra. (Prerequisite Math 568 or 571.)

10
Ray Tracing
  • Shoot a ray through each pixel
  • Find first object intersected by ray.

Eye
  • Compute ray. (More linear algebra.)
  • Compute ray-object intersection.

11
Example
12
Diffuse Reflection
  • Calculate amount/color of light shining on an
    object.
  • Depends on angle between light ray and surface
    normal.

13
Example Diffuse reflection
14
Specular Reflection
  • Calculate light bouncing off object to your eye
  • Angle of incidence angle of reflection.

Angle of incidence
Angle of reflection
Eye
15
Example Specular Reflection
16
Whats wrong with this picture?
17
Shadows
  • Determine when light ray is blocked from reaching
    object.

18
Reflection
19
Transparency
20
Transparency Refraction
21
Recursive Ray Tracing
22
Polyhedral Models
23
Texture Mapping
24
Sampling and Aliasing
  • Problem Representing pixel by a single ray.

25
Anti-Aliasing
  • Solution
  • Use multiple rays
  • Average values calculated by rays.

Image plane
26
Sampling and Aliasing
  • Problem Sampling frequency may match image
    frequency.

Image plane
Eye
Viewport
27
Random/Stochastic Sampling
  • Randomly sample rays through pixel.

Image plane
Eye
Viewport
28
Efficiency
  • 1280 x 1024 1,310,720 ? 106 pixels.
  • 106 initial rays.
  • 106 reflection rays.
  • Potentially 106 refraction rays.
  • 3 x 106 shadow rays (3 lights.)
  • Next level
  • Potentially 4 x 106 refraction/reflection rays.
  • 1,000,000 polygons.
  • 107 x 106 1013 ray-polygon intersection
    calculations.

29
Intersection Data Structures
  • Bounding boxes
  • Spatial subdivision.

30
Bounding Boxes
31
Spatial Subdivision
32
Major Course Topics
  • Object coordinate transformations.
  • Ray-object intersections.
  • Diffuse specular reflection.
  • Shadows.
  • Opacity refraction.
  • Shadows.
  • Recursive ray tracing.
  • Polyhedral models.
  • Texture mapping.
  • Polyhedral models.
  • Anti-aliasing and sampling.
  • Bounding boxes and spatial subdivision.
Write a Comment
User Comments (0)
About PowerShow.com