SlideShare a Scribd company logo
RAY TRACING
Presented By
Muhammad Azam Sohu
Farhana Shaikh
RAY TRACING
• Ray Tracing is an advanced technique for
adding realism to an image by including
refraction, reflection, color intensity, and
shadows that would be produced by
having one or more light sources.
• This means you can create pictures full of
mirrors, transparent surfaces, and object
shadows, with stunning results.
Ibn al-Haytham - The Nature of Light
and Vision
Ibn al-Haytham was the first to explain that we see objects because
the rays of light can reflected from objects into our eyes.
Two interesting remarks can be made based on his observations:
* Firstly, without light we cannot see anything and
* Secondly, without objects in our environment, we cannot see light.
Compared to the total
number of rays
reflected by an object,
only a select few of
them will ever reach
the surface of our eye.
Nature of light and Ray Traced Image
Backward Ray Tracing
A ray tracing program
mathematically identifies and
reproduces the path that each
light ray follows in reverse
direction from the eye back to
its point of origin.
Shadow in Ray Tracing
In the figure we see two rays:
a and b, which intersect the purple
sphere.
To determine the color of a, we
follow the new ray a' directly
towards the light source. The color
of a will then depend on several
factors.
b will be shadowed because the
ray b' towards the light source is
blocked by the sphere itself.
Reflection And Refraction in Ray Tracing
To handle reflection we also consider multiple bounces from
objects, and to handle refraction we consider what happens when
a ray passes through a partially- or fully-transparent object.
Basic Ray Tracing Algorithm
For every pixel
{
Cast a ray from the eye for every object in the scene
Find intersections with the ray
Keep it if closest
}
Compute color at the intersection point
Advantages Of Ray Tracing
* It provides a realistic simulation of lighting.
* Effects such as reflections and shadows are
a natural result of the ray tracing algorithm.
Disadvantages Of Ray Tracing
* A serious disadvantage of
ray tracing is performance
because it treats each eye
ray separately.
* Advanced lighting effects
such as caustics are difficult
to render usin ray tracing.
If any question ?
U may ask..

More Related Content

What's hot

Tweening and morphing
Tweening and morphingTweening and morphing
Tweening and morphing
Amit Kapoor
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.
Mohd Arif
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determination
Patel Punit
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
Saideep
 

What's hot (20)

Properties of light
Properties of lightProperties of light
Properties of light
 
Pixel relationships
Pixel relationshipsPixel relationships
Pixel relationships
 
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSINGHIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
HIGH PASS FILTER IN DIGITAL IMAGE PROCESSING
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Application of image processing
Application of image processingApplication of image processing
Application of image processing
 
Ray Tracing.pdf
Ray Tracing.pdfRay Tracing.pdf
Ray Tracing.pdf
 
Digital Image Processing (DIP)
Digital Image Processing (DIP)Digital Image Processing (DIP)
Digital Image Processing (DIP)
 
Object detection
Object detectionObject detection
Object detection
 
Tweening and morphing
Tweening and morphingTweening and morphing
Tweening and morphing
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.
 
3 d viewing
3 d viewing3 d viewing
3 d viewing
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determination
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with Example
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
SIGGRAPH 2018 - Full Rays Ahead! From Raster to Real-Time Raytracing
SIGGRAPH 2018 - Full Rays Ahead! From Raster to Real-Time RaytracingSIGGRAPH 2018 - Full Rays Ahead! From Raster to Real-Time Raytracing
SIGGRAPH 2018 - Full Rays Ahead! From Raster to Real-Time Raytracing
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentation
 
Visible surface identification
Visible surface identificationVisible surface identification
Visible surface identification
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Image transforms
Image transformsImage transforms
Image transforms
 

Viewers also liked

Game engine introduction and approach
Game engine introduction and approachGame engine introduction and approach
Game engine introduction and approach
Duy Tan Geek
 
Game Engine Overview
Game Engine OverviewGame Engine Overview
Game Engine Overview
Sharad Mitra
 
Game Architecture and Programming
Game Architecture and ProgrammingGame Architecture and Programming
Game Architecture and Programming
Sumit Jain
 
SIGGRAPH Asia 2008 Modern OpenGL
SIGGRAPH Asia 2008 Modern OpenGLSIGGRAPH Asia 2008 Modern OpenGL
SIGGRAPH Asia 2008 Modern OpenGL
Mark Kilgard
 

Viewers also liked (20)

CS 354 Ray Casting & Tracing
CS 354 Ray Casting & TracingCS 354 Ray Casting & Tracing
CS 354 Ray Casting & Tracing
 
GRPHICS08 - Raytracing and Radiosity
GRPHICS08 - Raytracing and RadiosityGRPHICS08 - Raytracing and Radiosity
GRPHICS08 - Raytracing and Radiosity
 
Illumination Model
Illumination ModelIllumination Model
Illumination Model
 
Illumination model
Illumination modelIllumination model
Illumination model
 
Texture mapping in_opengl
Texture mapping in_openglTexture mapping in_opengl
Texture mapping in_opengl
 
Advanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineAdvanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering Pipeline
 
Texture Synthesis
Texture SynthesisTexture Synthesis
Texture Synthesis
 
Design your 3d game engine
Design your 3d game engineDesign your 3d game engine
Design your 3d game engine
 
OpenGL 4.4 - Scene Rendering Techniques
OpenGL 4.4 - Scene Rendering TechniquesOpenGL 4.4 - Scene Rendering Techniques
OpenGL 4.4 - Scene Rendering Techniques
 
Illumination and shading[vinayak garg]
Illumination and shading[vinayak garg]Illumination and shading[vinayak garg]
Illumination and shading[vinayak garg]
 
Game engine introduction and approach
Game engine introduction and approachGame engine introduction and approach
Game engine introduction and approach
 
Game Engine Overview
Game Engine OverviewGame Engine Overview
Game Engine Overview
 
Unity - Game Engine
Unity - Game EngineUnity - Game Engine
Unity - Game Engine
 
Introduction to Bidirectional Path Tracing (BDPT) & Implementation using Open...
Introduction to Bidirectional Path Tracing (BDPT) & Implementation using Open...Introduction to Bidirectional Path Tracing (BDPT) & Implementation using Open...
Introduction to Bidirectional Path Tracing (BDPT) & Implementation using Open...
 
Game Engine Architecture
Game Engine ArchitectureGame Engine Architecture
Game Engine Architecture
 
Game Architecture and Programming
Game Architecture and ProgrammingGame Architecture and Programming
Game Architecture and Programming
 
SIGGRAPH Asia 2008 Modern OpenGL
SIGGRAPH Asia 2008 Modern OpenGLSIGGRAPH Asia 2008 Modern OpenGL
SIGGRAPH Asia 2008 Modern OpenGL
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
 
Shading and two type of shading flat shading and gauraud shading with coding ...
Shading and two type of shading flat shading and gauraud shading with coding ...Shading and two type of shading flat shading and gauraud shading with coding ...
Shading and two type of shading flat shading and gauraud shading with coding ...
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 

Similar to Ray tracing

E M Spectrum Snell S Law And Ray Diagrams
E M  Spectrum  Snell S  Law And  Ray  DiagramsE M  Spectrum  Snell S  Law And  Ray  Diagrams
E M Spectrum Snell S Law And Ray Diagrams
Regis Komperda
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination model
Ankit Garg
 
Electromagnetic waves option g review
Electromagnetic waves option g reviewElectromagnetic waves option g review
Electromagnetic waves option g review
jsawyer3434
 
Reflection and Mirrors
Reflection and MirrorsReflection and Mirrors
Reflection and Mirrors
itutor
 
Digital image vidya
Digital image vidyaDigital image vidya
Digital image vidya
snv09
 

Similar to Ray tracing (20)

Phy exppp chap12
Phy exppp chap12Phy exppp chap12
Phy exppp chap12
 
Light and sight
Light and  sightLight and  sight
Light and sight
 
GRPHICS04 - Rendering (1)
GRPHICS04 - Rendering (1)GRPHICS04 - Rendering (1)
GRPHICS04 - Rendering (1)
 
E M Spectrum Snell S Law And Ray Diagrams
E M  Spectrum  Snell S  Law And  Ray  DiagramsE M  Spectrum  Snell S  Law And  Ray  Diagrams
E M Spectrum Snell S Law And Ray Diagrams
 
Geometrical Optics Introduction
Geometrical Optics IntroductionGeometrical Optics Introduction
Geometrical Optics Introduction
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination model
 
Light rays
Light raysLight rays
Light rays
 
Electromagnetic waves option g review
Electromagnetic waves option g reviewElectromagnetic waves option g review
Electromagnetic waves option g review
 
Module No. 37
Module No. 37Module No. 37
Module No. 37
 
Reflection and Mirrors
Reflection and MirrorsReflection and Mirrors
Reflection and Mirrors
 
Chapter-2. Optical Microscopy-converted-compressed.pdf
Chapter-2. Optical Microscopy-converted-compressed.pdfChapter-2. Optical Microscopy-converted-compressed.pdf
Chapter-2. Optical Microscopy-converted-compressed.pdf
 
Light
Light Light
Light
 
Direct Volume Rendering (DVR): Ray-casting
Direct Volume Rendering (DVR): Ray-castingDirect Volume Rendering (DVR): Ray-casting
Direct Volume Rendering (DVR): Ray-casting
 
Digital image vidya
Digital image vidyaDigital image vidya
Digital image vidya
 
Nano twzeeres
Nano twzeeresNano twzeeres
Nano twzeeres
 
Computer vision - light
Computer vision - lightComputer vision - light
Computer vision - light
 
Radiosity in CAD and 3D, informative.
Radiosity in CAD and 3D, informative.Radiosity in CAD and 3D, informative.
Radiosity in CAD and 3D, informative.
 
Light Energy
Light EnergyLight Energy
Light Energy
 
Light microscope
Light microscopeLight microscope
Light microscope
 
Optics
OpticsOptics
Optics
 

Recently uploaded

Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...
Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...
Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...
baharayali
 
Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...
Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...
Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...
baharayali
 
Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...
Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...
Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...
baharayali
 
Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...
Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...
Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...
baharayali
 

Recently uploaded (20)

Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...
Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...
Expert kala ilam, Kala jadu specialist in Spain and Black magic specialist in...
 
Codex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca SapientiaCodex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca Sapientia
 
The PBHP DYC ~ Reflections on The Dhamma (English).pptx
The PBHP DYC ~ Reflections on The Dhamma (English).pptxThe PBHP DYC ~ Reflections on The Dhamma (English).pptx
The PBHP DYC ~ Reflections on The Dhamma (English).pptx
 
Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...
Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...
Expert kala ilam, Black magic specialist in Indonesia and Kala ilam expert in...
 
Saint Vincent de Paul and Saint Louise de Marillac Played a Central Part in t...
Saint Vincent de Paul and Saint Louise de Marillac Played a Central Part in t...Saint Vincent de Paul and Saint Louise de Marillac Played a Central Part in t...
Saint Vincent de Paul and Saint Louise de Marillac Played a Central Part in t...
 
English - The Book of Numbers the 4th Book of Moses.pdf
English - The Book of Numbers the 4th Book of Moses.pdfEnglish - The Book of Numbers the 4th Book of Moses.pdf
English - The Book of Numbers the 4th Book of Moses.pdf
 
Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...
Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...
Expert kala ilam, Black magic specialist in Russia and Kala jadu expert in It...
 
What Should be the Christian View of Anime?
What Should be the Christian View of Anime?What Should be the Christian View of Anime?
What Should be the Christian View of Anime?
 
The Prophecy of Enoch in Jude 14-16_.pptx
The Prophecy of Enoch in Jude 14-16_.pptxThe Prophecy of Enoch in Jude 14-16_.pptx
The Prophecy of Enoch in Jude 14-16_.pptx
 
Spirituality: Beyond Dogmatic Texts - Audio Book
Spirituality: Beyond Dogmatic Texts - Audio BookSpirituality: Beyond Dogmatic Texts - Audio Book
Spirituality: Beyond Dogmatic Texts - Audio Book
 
A Chronology of the Resurrection Appearances
A Chronology of the Resurrection AppearancesA Chronology of the Resurrection Appearances
A Chronology of the Resurrection Appearances
 
308 David Displeased the Lord 309 What Will it Take for God to Get Your Atten...
308 David Displeased the Lord 309 What Will it Take for God to Get Your Atten...308 David Displeased the Lord 309 What Will it Take for God to Get Your Atten...
308 David Displeased the Lord 309 What Will it Take for God to Get Your Atten...
 
A373 true knowledge Not according to true knowledge, knowledge/true knowledg...
A373 true knowledge  Not according to true knowledge, knowledge/true knowledg...A373 true knowledge  Not according to true knowledge, knowledge/true knowledg...
A373 true knowledge Not according to true knowledge, knowledge/true knowledg...
 
Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...
Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...
Expert kala ilam, Kala ilam specialist in Spain and Kala jadu expert in Germa...
 
The Story of 'Chin Kiam Siap' ~ An AI Generated Story ~ English & Chinese.pptx
The Story of 'Chin Kiam Siap' ~ An AI Generated Story ~ English & Chinese.pptxThe Story of 'Chin Kiam Siap' ~ An AI Generated Story ~ English & Chinese.pptx
The Story of 'Chin Kiam Siap' ~ An AI Generated Story ~ English & Chinese.pptx
 
2024 Wisdom Touch Tour Houston Slide Deck
2024 Wisdom Touch Tour Houston Slide Deck2024 Wisdom Touch Tour Houston Slide Deck
2024 Wisdom Touch Tour Houston Slide Deck
 
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docxHomily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
 
Homosexuality and Ordination of Woman
Homosexuality and Ordination of WomanHomosexuality and Ordination of Woman
Homosexuality and Ordination of Woman
 
Breaking the Curse: Techniques for Successful Black Magic Removal
Breaking the Curse: Techniques for Successful Black Magic RemovalBreaking the Curse: Techniques for Successful Black Magic Removal
Breaking the Curse: Techniques for Successful Black Magic Removal
 
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdfTALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
 

Ray tracing

  • 1. RAY TRACING Presented By Muhammad Azam Sohu Farhana Shaikh
  • 2. RAY TRACING • Ray Tracing is an advanced technique for adding realism to an image by including refraction, reflection, color intensity, and shadows that would be produced by having one or more light sources. • This means you can create pictures full of mirrors, transparent surfaces, and object shadows, with stunning results.
  • 3. Ibn al-Haytham - The Nature of Light and Vision Ibn al-Haytham was the first to explain that we see objects because the rays of light can reflected from objects into our eyes. Two interesting remarks can be made based on his observations: * Firstly, without light we cannot see anything and * Secondly, without objects in our environment, we cannot see light.
  • 4. Compared to the total number of rays reflected by an object, only a select few of them will ever reach the surface of our eye.
  • 5. Nature of light and Ray Traced Image
  • 6. Backward Ray Tracing A ray tracing program mathematically identifies and reproduces the path that each light ray follows in reverse direction from the eye back to its point of origin.
  • 7. Shadow in Ray Tracing In the figure we see two rays: a and b, which intersect the purple sphere. To determine the color of a, we follow the new ray a' directly towards the light source. The color of a will then depend on several factors. b will be shadowed because the ray b' towards the light source is blocked by the sphere itself.
  • 8. Reflection And Refraction in Ray Tracing To handle reflection we also consider multiple bounces from objects, and to handle refraction we consider what happens when a ray passes through a partially- or fully-transparent object.
  • 9. Basic Ray Tracing Algorithm For every pixel { Cast a ray from the eye for every object in the scene Find intersections with the ray Keep it if closest } Compute color at the intersection point
  • 10. Advantages Of Ray Tracing * It provides a realistic simulation of lighting. * Effects such as reflections and shadows are a natural result of the ray tracing algorithm.
  • 11.
  • 12. Disadvantages Of Ray Tracing * A serious disadvantage of ray tracing is performance because it treats each eye ray separately. * Advanced lighting effects such as caustics are difficult to render usin ray tracing.
  • 13. If any question ? U may ask..