COMP342 Lecture 14 Ray Tracing Efficiency - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

COMP342 Lecture 14 Ray Tracing Efficiency

Description:

Say 6 secondary rays per pixel. 100k objects; 10 ops per intersection ... Enclose objects inside a volume with a simple intersection test (e.g. a sphere) ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 13
Provided by: scie278
Category:

less

Transcript and Presenter's Notes

Title: COMP342 Lecture 14 Ray Tracing Efficiency


1
COMP342 Lecture 14Ray Tracing Efficiency
2
(No Transcript)
3
(No Transcript)
4
(No Transcript)
5
Where are we spending the time?
  • 1000 x 1000 pixels
  • Say 6 secondary rays per pixel
  • 100k objects 10 ops per intersection
  • 2GHz processor maybe 5 cycles per op
  • So how long to render?
  • And is that really all?
  • And where is the time really spent?

6
Bounding Volumes
  • Enclose objects inside a volume with a simple
    intersection test (e.g. a sphere)
  • You only need to know IF the ray hits the volume,
    not where
  • Does this decrease or increase computation? It
    depends
  • Cost n B m I
  • n rays, B cost of intersection with bounding
    volume, m rays intersect bounding volume, I cost
    of intersecting with objects.

7
(No Transcript)
8
(No Transcript)
9
Hierarchical Volumes
  • Put volumes within volumes
  • That is, we form a tree of bounding volumes
  • If the volumes are placed really well, then we
    get O(log n) intersection tests
  • Unfortunately, it isnt automatic
  • Non-spherical volumes produce tighter bounds, but
    arent automatic either.

10
Spatial Subdivision
  • Rather than adding new (invisible) objects as
    boundaries
  • Lets just divide the space.
  • If a picture element is called a pixel
  • Then a volume element must be called?
  • A voxel

11
(No Transcript)
12
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com