SlideShare a Scribd company logo
2
Most read
3
Most read
16
Most read
Ray Tracing
Computer Graphics

Prepared by
Yogesh Jatin
Gupta

1
Ray-Tracing

2
What is Ray Tracing
• Ray tracing is a technique for generating an
image by tracing the path of light through pixels
in an image plane and simulating the effects of
its encounters with virtual objects.
• The technique is capable of producing a very
high degree of visual realism, usually higher
than that of typical scan line rendering methods,
but at a greater computational cost.
3
Raytraced Images

4
Ray Tracing Model

5
Ray-Tracing Setup

6
Ray Tracing from Eye

• Starting at the light position traces many rays that never
reach the eye. Thus the traditional ray-tracing method is
to start at the eye and trace rays back-wards to the sourc
e.
7
Basic Ray-Tracing
• Ray tracing proceeds as follows:

– Fire a single ray from each pixel position into
the scene along the projection path
– Determine which surfaces the ray intersects and
order these by distance from the pixel
– The nearest surface to the pixel is the visible
surface for that pixel
– Reflect a ray off the visible surface along the
specular reflection angle
– For transparent surfaces also send a ray
through the surface in the refraction direction
– Repeat the process for these secondary rays
8
Ray-Tracing Tree
• As the rays ricochet around the scene each i
ntersected surface is added to a binary ray-tr
acing tree
– The left branches in the tree are used to represen
t reflection paths
– The right branches in the tree are used to represe
nt transmission paths

• The tree’s nodes store the intensity at that su
rface
• The tree is used to keep track of all contributi
ons to a given pixel
9
Ray-Tracing Tree Example
S3

S4

S1

S2

Projection
Reference Point
10
11
Ray-Tracing Tree (cont…)
• After the ray-tracing tree has been completed
for a pixel the intensity contributions are accu
mulated
• We start at the terminal nodes (bottom) of the
tree
• The surface intensity at each node is attenuat
ed by the distance from the parent surface an
d added to the intensity of the parent surface
• The sum of the attenuated intensities at the r
oot node is assigned to the pixel
12
Ray-Tracing & Illumination Models
• At each surface intersection the
illumination model is invoked to determine the
surface intensity contribution
L = LIGHT SOURCE
N= NORMAL TO SURFAC
E
H = LIGHT INTENSITY

13
The Shadow Ray
• The path from the intersection to the light s
ource is known as the shadow ray
• If any object intersects the shadow ray bet
ween the surface and the light source then
the surface is in shadow with respect to th
at source

14
Reflection

15
Thank You!

16

More Related Content

PPTX
Ray tracing
PPTX
digital image processing
PPTX
Ray tracing
PPTX
Chapter 9 morphological image processing
PPTX
3 d display methods
PPSX
Image Enhancement in Spatial Domain
PPTX
Projection In Computer Graphics
Ray tracing
digital image processing
Ray tracing
Chapter 9 morphological image processing
3 d display methods
Image Enhancement in Spatial Domain
Projection In Computer Graphics

What's hot (20)

PPT
Shading
PPTX
Ray Tracing in Computer Graphics
PPTX
Hit and-miss transform
PPTX
Anti aliasing Computer Graphics
PPTX
Color Models Computer Graphics
PPTX
1.arithmetic & logical operations
PPTX
Back face detection
PPTX
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
PPT
2D transformation (Computer Graphics)
PPTX
illumination model in Computer Graphics by irru pychukar
PPTX
Computer graphics
PPT
Chapter 5 Image Processing: Fourier Transformation
PPTX
Chapter 3 image enhancement (spatial domain)
PPT
Image processing presentataion
PPTX
Illumination models
PPTX
Image Acquisition and Representation
PPTX
Image Restoration
PPTX
COM2304: Color and Color Models
PPTX
Ray tracing
PPTX
Hidden surface removal
Shading
Ray Tracing in Computer Graphics
Hit and-miss transform
Anti aliasing Computer Graphics
Color Models Computer Graphics
1.arithmetic & logical operations
Back face detection
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
2D transformation (Computer Graphics)
illumination model in Computer Graphics by irru pychukar
Computer graphics
Chapter 5 Image Processing: Fourier Transformation
Chapter 3 image enhancement (spatial domain)
Image processing presentataion
Illumination models
Image Acquisition and Representation
Image Restoration
COM2304: Color and Color Models
Ray tracing
Hidden surface removal
Ad

Viewers also liked (20)

PPTX
Ray tracing
PPT
GRPHICS08 - Raytracing and Radiosity
PPT
CS 354 Ray Casting & Tracing
PPT
Lighting and shading
PPT
Graphics Lecture 7
PDF
Advanced Scenegraph Rendering Pipeline
PPTX
Texture Synthesis
PPT
Lighting and shading
PDF
Design your 3d game engine
PDF
OpenGL 4.4 - Scene Rendering Techniques
PDF
Game engine introduction and approach
PDF
Game Engine Overview
PPTX
Unity - Game Engine
PDF
Introduction to Bidirectional Path Tracing (BDPT) & Implementation using Open...
PDF
Game Engine Architecture
PPTX
Game Architecture and Programming
PPT
What Is A Game Engine
PPTX
Illumination Model
PPT
Polygon Fill
PPT
Windows and viewport
Ray tracing
GRPHICS08 - Raytracing and Radiosity
CS 354 Ray Casting & Tracing
Lighting and shading
Graphics Lecture 7
Advanced Scenegraph Rendering Pipeline
Texture Synthesis
Lighting and shading
Design your 3d game engine
OpenGL 4.4 - Scene Rendering Techniques
Game engine introduction and approach
Game Engine Overview
Unity - Game Engine
Introduction to Bidirectional Path Tracing (BDPT) & Implementation using Open...
Game Engine Architecture
Game Architecture and Programming
What Is A Game Engine
Illumination Model
Polygon Fill
Windows and viewport
Ad

Similar to Ray tracing (20)

PDF
Ray Tracing.pdf
PPT
Topic 7 Basic Ray Tracing Algorithms and ray tracing.ppt
PDF
Physics LIGHTS AND OPTICS description with basics.pptx.pdf
PPT
Paris Master Class 2011 - 07 Dynamic Global Illumination
PPTX
Fiber optics and optUnit 1 Session4-6.pptx
PDF
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
PPT
Light (1)
PDF
illuminationmodelsshading-200501081735 (1).pdf
PPTX
Computer vision - light
PDF
Chapter-2. Optical Microscopy-converted-compressed.pdf
PPT
Computer Graphics display technologies(Computer graphics tutorials)
PPT
Computer Graphics display technologies(Computer graphics tutorials and tips)
PPTX
Rendering Algorithms.pptx
PPTX
chap - 9 ray-optics CBSE Class 12th.pptx
PPTX
Visual realism
PPTX
Chapter 2 geometrical_optics_b
PPT
Measurement of optical fiber refractive index
PPT
Lighting terminlologyand their units
PPTX
Visual realism
Ray Tracing.pdf
Topic 7 Basic Ray Tracing Algorithms and ray tracing.ppt
Physics LIGHTS AND OPTICS description with basics.pptx.pdf
Paris Master Class 2011 - 07 Dynamic Global Illumination
Fiber optics and optUnit 1 Session4-6.pptx
UNIT-6-Illumination-Models-and-Surface-Rendering-Methods.pdf
Light (1)
illuminationmodelsshading-200501081735 (1).pdf
Computer vision - light
Chapter-2. Optical Microscopy-converted-compressed.pdf
Computer Graphics display technologies(Computer graphics tutorials)
Computer Graphics display technologies(Computer graphics tutorials and tips)
Rendering Algorithms.pptx
chap - 9 ray-optics CBSE Class 12th.pptx
Visual realism
Chapter 2 geometrical_optics_b
Measurement of optical fiber refractive index
Lighting terminlologyand their units
Visual realism

Recently uploaded (20)

PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Classroom Observation Tools for Teachers
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Business Ethics Teaching Materials for college
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Complications of Minimal Access Surgery at WLH
Module 4: Burden of Disease Tutorial Slides S2 2025
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Classroom Observation Tools for Teachers
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
Business Ethics Teaching Materials for college
VCE English Exam - Section C Student Revision Booklet
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Supply Chain Operations Speaking Notes -ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharma ospi slides which help in ospi learning
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Insiders guide to clinical Medicine.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
O7-L3 Supply Chain Operations - ICLT Program
Complications of Minimal Access Surgery at WLH

Ray tracing

  • 1. Ray Tracing Computer Graphics Prepared by Yogesh Jatin Gupta 1
  • 3. What is Ray Tracing • Ray tracing is a technique for generating an image by tracing the path of light through pixels in an image plane and simulating the effects of its encounters with virtual objects. • The technique is capable of producing a very high degree of visual realism, usually higher than that of typical scan line rendering methods, but at a greater computational cost. 3
  • 7. Ray Tracing from Eye • Starting at the light position traces many rays that never reach the eye. Thus the traditional ray-tracing method is to start at the eye and trace rays back-wards to the sourc e. 7
  • 8. Basic Ray-Tracing • Ray tracing proceeds as follows: – Fire a single ray from each pixel position into the scene along the projection path – Determine which surfaces the ray intersects and order these by distance from the pixel – The nearest surface to the pixel is the visible surface for that pixel – Reflect a ray off the visible surface along the specular reflection angle – For transparent surfaces also send a ray through the surface in the refraction direction – Repeat the process for these secondary rays 8
  • 9. Ray-Tracing Tree • As the rays ricochet around the scene each i ntersected surface is added to a binary ray-tr acing tree – The left branches in the tree are used to represen t reflection paths – The right branches in the tree are used to represe nt transmission paths • The tree’s nodes store the intensity at that su rface • The tree is used to keep track of all contributi ons to a given pixel 9
  • 11. 11
  • 12. Ray-Tracing Tree (cont…) • After the ray-tracing tree has been completed for a pixel the intensity contributions are accu mulated • We start at the terminal nodes (bottom) of the tree • The surface intensity at each node is attenuat ed by the distance from the parent surface an d added to the intensity of the parent surface • The sum of the attenuated intensities at the r oot node is assigned to the pixel 12
  • 13. Ray-Tracing & Illumination Models • At each surface intersection the illumination model is invoked to determine the surface intensity contribution L = LIGHT SOURCE N= NORMAL TO SURFAC E H = LIGHT INTENSITY 13
  • 14. The Shadow Ray • The path from the intersection to the light s ource is known as the shadow ray • If any object intersects the shadow ray bet ween the surface and the light source then the surface is in shadow with respect to th at source 14