Top Banner
Ray Path Categorization Diego Nehab and Marcelo Gattass {diego,gattass}@tecgraf.puc-rio.br PUC-Rio TecGraf
19

Ray Path Categorization

Jan 22, 2016

Download

Documents

GARI

TecGraf. Ray Path Categorization. Diego Nehab and Marcelo Gattass {diego,gattass}@tecgraf.puc-rio.br. PUC-Rio. About this work. 1996 “Introduction to Computer Graphics” final project Adaptive antialiasing for simple scenes to impress the professor Adaptive progressive image refinement - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ray Path Categorization

Ray Path CategorizationDiego Nehab and Marcelo Gattass{diego,gattass}@tecgraf.puc-rio.br

PUC-Rio

TecGraf

Page 2: Ray Path Categorization

About this work

• 1996 “Introduction to Computer Graphics” final project• Adaptive antialiasing for simple scenes to impress the professor• Adaptive progressive image refinement• Use scene geometry, instead of computed pixel colors• SIBGRAPI’96 published an image created by the program • A new implementation was created for this paper

Page 3: Ray Path Categorization

1-Slide Introduction• Input:

• Scene description• Camera position• Lighting equation• Projection plane

• Output• Image as seen by the

camera

Page 4: Ray Path Categorization

Describing Rays

• From the illumination equation, the path followed by a ray can be described by:• The object the ray hits• The light sources that are visible at the intersection points• The reflection child ray• The refraction child ray

• We want to partition rays into equivalence classes, each class being called a category

Page 5: Ray Path Categorization

Rays as trees

• Each intersection of a ray with an object is a tree node

• Left and right subtrees represent refraction and reflection child rays

• Intersections are annotated with object lable and light source visibility

• Each pixel starts one ray• Each ray starts reflection and

refraction child rays at intersections

• Light source visibility is computed

Page 6: Ray Path Categorization

Ray path categorization• Two rays have the same category if their trees are equal

• Each tree describes all geometric information considered by one pixel

• Pixels with the same category define regions with similar geometry

• Categories segment the image and can be used to detect geometric edges

Page 7: Ray Path Categorization

Primes product• Ids are distinct prime

numbers• Category is the product

of all ids in ray tree• Original implementation

• Product commutativity ignores order

• Ocasional errors

Page 8: Ray Path Categorization

String method

• Objects have distinct ids• Category is a string with

all ids in tree, depth-first ordered

• Transpose trees fall in the same category

• ABLC• Rare errors

Page 9: Ray Path Categorization

Binary heap• Objects have distinct ids• Category is a string with

ids found in the tree, along with their positions in tree

• Transposes hash to different categories

• 4A2BL1C and 7A3BL1C

Page 10: Ray Path Categorization

Detecting Edges• Adjacent pixels with different trees

correspond to discontinuities in the image• Each pixel has its category compared with

those of its 4-neighbors• If any difference is found, the pixel is

marked as an edge pixel

Page 11: Ray Path Categorization

Reflection

• Detected edges include:• Boundaries• Reflection• Shadows

Page 12: Ray Path Categorization

Refraction

• Edges created by refractive objects are also captured

Page 13: Ray Path Categorization

Constructive Solid Geometry

• Set operations can also be handled

• Intersections should report the id of the primitive object hit

Page 14: Ray Path Categorization

Levels of Detail

• Choosing the depth up to which categories are tracked one can control the kind of edges that are detected

• Light visibility information is also optional

Page 15: Ray Path Categorization

“Seeing” Refraction

• Generated edges can be used to understand what goes on with refraction

Page 16: Ray Path Categorization

Antialiasing

Page 17: Ray Path Categorization

Conclusions

• Methods were created to analyse ray paths and classify them into similar categories

• This geometric information was used to segment the rendered scene

• The segmentation was used to generate geometric edges

• Edges were used to create linearts, study geometric properties and to perform adaptive antialiasing

Page 18: Ray Path Categorization

Future works

• Design other forms of edge visualization, showing edge types

• Improve category information to consider depth cues and texture information

• Use precomputed category information to speed ray tracing and compress image storage

Page 19: Ray Path Categorization

Questions?

Questions?

Questions?

Questions?

Questions?Questions?

Questions?

Questions?Questions?

Questions?

Questions?

Questions?

Questions?

Questions?

Questions?