/
Class 9 Advance rendering Class 9 Advance rendering

Class 9 Advance rendering - PowerPoint Presentation

telempsyc
telempsyc . @telempsyc
Follow
342 views
Uploaded On 2020-06-15

Class 9 Advance rendering - PPT Presentation

Ray Tracing Radiosity Light field CS770870 Ray Tracing Basic idea Cast rays out 1 per pixel Calculate light at surface of first intersection Does refraction easily Does cast shadows ID: 777789

light ray marching rays ray light rays marching surface volume rendering contour cases reflection scans movie data witted squares

Share:

Link:

Embed:

Download Presentation from below link

Download The PPT/PDF document "Class 9 Advance rendering" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Class 9Advance renderingRay TracingRadiosityLight field

CS770/870

Slide2

Ray Tracing

Basic idea: Cast rays out 1 per pixel.

Calculate light at

surface of first intersection.

Does refraction – easilyDoes cast shadowsTurner Witted (1978)

Slide3

Witted (1979)When a ray hits a surface, it can generate up to three new types of rays: reflection, refraction, and shadow.Reflection: Trace reflection. Whatever surface is intersected becomes what is seen in the reflection.

Refraction: Ray passes through, and refracted. Whatever surface is intersected becomes what is seen at that point.

Shadow: Trace a ray to the light source. If blocked, compute ambient. Otherwise apply standard CG lighting

[

Show Witted movie]. Used a micro-film recorder.

Slide4

Modern ray tracing.Whole bundles of rays can be used to get effects like soft shadows, more realistic ambient, etc.

Used for movie cars, (first

pixar

ray-traced movie).

Slide5

Ray Tracing +

Radiosity

Slide6

Radiosity (doing ambient right)

Derived from heat engineering

For every polygon, light input = light reflected (diffusely) + light absorbed.

Some polygons also emit light

Ultimately all emissions = all absorptions.Result: A huge system of equations.Must compute the influence of every polygon on every other polygon.Don Greenberg, 1986

Slide7

The radiosity calculation

Slide8

Methods for improving ray tracingUse bundles of rays – stockastic sampling.

Slide9

Volume rendering.

Slide10

Visible human

Or CAT scans

Or MRI scans

How to look at it?

Slices,

The shape of organs

Slide11

Volume rendering algorithmUsed in visualization. E.g CAT scans, MRI scans

A 3D volume of data.

Algorithm. Compute mapping from sensed data to transparency and color. E.g. Bone is opaque and white

Assume light reaches each

voxelTrace rays towards the viewpoint, one for each pixel. At a set sample points along the ray, calculate orientation of density gradient. Apply lighting model.Sum light from furthest to nearest point along ray, taking opacity into account.

Slide12

But there are no surfaces with volume renderingIf we actually need to have a model of a chunk of tissue we need another method

Slide13

Marching squares

Marching cubes

Consider the problem of making a contour map.

At a fixed set of heights (or energy levels) we must create a

continous contour.Marching squares.

Slide14

Marching squares

E.g. Contour at 50

48.3

51.2

53.8

50.7

Interplolate

to find crossing

Algorithm:

for every contour value {

for every square {

1. Determine case

2. Interpolate edges

3. Draw line segment

}}

How many unique cases?

Slide15

15 Cases for each square.

Slide16

Create a grid over the data set.For every square in the grid find which of the 16 casesIf NOT 0000 OR 1111Interpolate along sides to find crossing points.

Then draw line segment.

Slide17

Marching Cubes256 cases (8 edges on the cube).15 unique cases

Polygons instead of lines

Slide18

Used for medical imaging. Virual Colon

Slide19

Slide20

Slide21

Light field sensing and rendering

slides from Mark

Levoy

Slide22

Slide23

Slide24

Slide25

Slide26

Slide27

Slide28

Slide29

Light field rendering

Slide30

Slide31

Slide32

Slide33

Slide34

Slide35

Slide36

Lytro

Camera

Seamless blending of CGI and imagery

Slide37