1 / 37

CS770/870

CS770/870. Class 9 Advance rendering Ray Tracing Radiosity Light field. Ray Tracing. Basic idea: Cast rays out 1 per pixel. Calculate light at surface of first intersection. Does refraction – easily Does cast shadows Turner Witted (1978). Witted (1979).

feo
Download Presentation

CS770/870

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS770/870 Class 9 Advance rendering Ray Tracing Radiosity Light field

  2. Ray Tracing Basic idea: Cast rays out 1 per pixel. Calculate light at surface of first intersection. Does refraction – easily Does cast shadows Turner Witted (1978)

  3. 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.

  4. 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).

  5. Ray Tracing + Radiosity

  6. 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

  7. The radiosity calculation

  8. Methods for improving ray tracing Use bundles of rays – stockastic sampling.

  9. Volume rendering.

  10. Visible human Or CAT scans Or MRI scans How to look at it? Slices, The shape of organs

  11. Volume rendering algorithm Used 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 voxel Trace 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.

  12. But there are no surfaces with volume rendering If we actually need to have a model of a chunk of tissue we need another method

  13. Marching squaresMarching 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.

  14. Marching squares E.g. Contour at 50 48.3 50.7 51.2 53.8 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?

  15. 15 Cases for each square.

  16. Create a grid over the data set. For every square in the grid find which of the 16 cases If NOT 0000 OR 1111 Interpolate along sides to find crossing points. Then draw line segment.

  17. Marching Cubes 256 cases (8 edges on the cube). 15 unique cases Polygons instead of lines

  18. Used for medical imaging. Virual Colon

  19. Light field sensing and renderingslides from Mark Levoy

  20. Light field rendering

  21. Lytro Camera Seamless blending of CGI and imagery

More Related