SlideShare uma empresa Scribd logo
1 de 18
10/9/2013 1
OVERVIEW OF RAY TRACING.
INTERSECTING RAYS WITH OTHER PRIMITIVES.
10/9/2013 2
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.
10/9/2013 3
Ray tracing Provides a
related, but even more
powerful, approach to
rendering scenes.
A Ray is cast from the eye
through the center of the
pixel is traced to see what
object it hits first and at
what point.
EYE
(or)
Pixel (or)
Frame
Buffer
10/9/2013 4
The Resulting color is
then displayed at the
pixel, the path of a ray
traced through the scene,
interesting visual effects
such as shadowing,
reflection and refraction
are easy to incorporate
and producing dazzling
images.
10/9/2013 5
Ray tracing can create
realistic images.
In addition to the high
degree of realism, ray
tracing can simulate the
effects of a camera due
to depth of field and
aperture shape
10/9/2013 6
This makes ray tracing
best suited for
applications where the
image can be rendered
slowly ahead of time, such
as in still images and film
and television visual
effects, and more poorly
suited for real-time
applications.
10/9/2013 7
Ray tracing is capable of
simulating a wide variety
of optical effects, such as
reflection and refraction,
scattering,and dispersion
phenomena (such
as chromatic aberration).
10/9/2013 8
Optical ray tracing describes a
method for producing visual
images constructed in 3D
computer graphics
environments, with more
photorealism than either ray
casting or scanline rendering
techniques.
It works by tracing a path
from an imaginary eye
through each pixel in a virtual
screen, and calculating the
color of the object visible
through it.
10/9/2013 9
Descriptions of all then
Objects are stored in an
object list.
The ray that interacts the
Sphere and the Cylinder.
The hit spot (PHIT) is easily
found wit the ray itself.
The ray of Equation at the
Hit time tbit :
PHIT=eye + dirr,ctbit
EYE
(or)
Pixel (or)
Frame
Buffer
PHIT
10/9/2013 10
define the objects and light sources in the scene set up the camera
for(int r=0 ; r < nRows ; r++)
for(int c=0 ; c < nCols ; c++)
{
1.Build the rc-th ray.
2.Find all interactions of the rc-th ray with objects in the scene.
3.Identify the intersection that lies closest to and infront of the eye.
4.Compute the Hit Point.
5.Find the color of the light returning to the eye along the ray from
the point of intersection.
6.Place the color in the rc-th pixel.
}
10/9/2013 11
We need to Develop the hit() method for other shape
classes.
Intersecting with a square:
A square is useful generic shape.
The generic square lies in the z=0 plane and extends
from -1 to +1 in both x and y axis.
The implicit form of the equation of the square is
F(P)=PZ for |PX| <= 1 and |PY| <= 1.
The Square can be transformed into any parallelogram
positioned in space & provide thin, flat surface like Walls,
Windows, etc.
10/9/2013 12
The function hit() finds
where the ray hits the
generic plane and
then tests whether the
Hit spots lie s within
the square.
10/9/2013 13
Intersecting with a Cube or any Convex Polyhedron:
Convex Polyhedron is useful in many graphics
situations.
It is centered at the origin and has corners, using all six
combinations of +1 and -1.
The edges are aligned with the coordinate axes, and its
six faces lie in the Planes.
10/9/2013 14
PLANE NAME EQUATION OUTWARD
NORMAL
SPOT
0 TOP Y=1 (0,1,0) (0,1,0)
1 BOTTOM Y=-1 (0,-1,0) (0,-1,0)
2 RIGHT X=1 (1,0,0) (1,0,0)
3 LEFT X=-1 (-1,0,0) (-1,0,0)
4 FRONT Z=1 (0,0,0) (0,0,0)
5 BACK Z=-1 (0,0,-1) (0,0,-1)
10/9/2013 15
10/9/2013 16
The generic cube is important for 2 reasons:
1. A Large variety of interesting “boxes” can be Modeled
and Placed in a scene by applying an affine
transformation to a generic cube. In Ray Tracing each
ray can be inverse transformed into the generic cube’s
coordinate system.
2. The generic cube can be used as an extent for the other
geometric primitives in the sense of a Bounding box.
10/9/2013 17
10/9/2013 18

Mais conteúdo relacionado

Mais procurados

3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphicssabbirantor
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformationsMohammad Sadiq
 
Computer Graphics - Output Primitive
Computer Graphics - Output PrimitiveComputer Graphics - Output Primitive
Computer Graphics - Output PrimitiveRupesh Mishra
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.Mohd Arif
 
3D Display Method
3D Display Method3D Display Method
3D Display MethodKhaled Sany
 
Design of animation sequence
Design of animation sequenceDesign of animation sequence
Design of animation sequenceAzhar Nayeem
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformationsMohd Arif
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Varun Ojha
 
computer Graphics
computer Graphics computer Graphics
computer Graphics Rozi khan
 
Adding shadows of objects | Computer Graphics
Adding shadows of objects | Computer Graphics Adding shadows of objects | Computer Graphics
Adding shadows of objects | Computer Graphics Aravindhan Anbazhagan
 
Computer graphics - colour crt and flat-panel displays
Computer graphics - colour crt and flat-panel displaysComputer graphics - colour crt and flat-panel displays
Computer graphics - colour crt and flat-panel displaysVishnupriya T H
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics FundamentalsMuhammed Afsal Villan
 
Color
ColorColor
ColorFNian
 
Feature Matching using SIFT algorithm
Feature Matching using SIFT algorithmFeature Matching using SIFT algorithm
Feature Matching using SIFT algorithmSajid Pareeth
 
Line Detection in Computer Vision
Line Detection in Computer VisionLine Detection in Computer Vision
Line Detection in Computer VisionParth Nandedkar
 

Mais procurados (20)

3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
 
Computer Graphics - Output Primitive
Computer Graphics - Output PrimitiveComputer Graphics - Output Primitive
Computer Graphics - Output Primitive
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.
 
3D Display Method
3D Display Method3D Display Method
3D Display Method
 
Ray tracing
 Ray tracing Ray tracing
Ray tracing
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Design of animation sequence
Design of animation sequenceDesign of animation sequence
Design of animation sequence
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 
computer Graphics
computer Graphics computer Graphics
computer Graphics
 
Adding shadows of objects | Computer Graphics
Adding shadows of objects | Computer Graphics Adding shadows of objects | Computer Graphics
Adding shadows of objects | Computer Graphics
 
Image Segmentation
 Image Segmentation Image Segmentation
Image Segmentation
 
Computer graphics - colour crt and flat-panel displays
Computer graphics - colour crt and flat-panel displaysComputer graphics - colour crt and flat-panel displays
Computer graphics - colour crt and flat-panel displays
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Color
ColorColor
Color
 
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
 
Feature Matching using SIFT algorithm
Feature Matching using SIFT algorithmFeature Matching using SIFT algorithm
Feature Matching using SIFT algorithm
 
Line Detection in Computer Vision
Line Detection in Computer VisionLine Detection in Computer Vision
Line Detection in Computer Vision
 

Destaque

Illumination model
Illumination modelIllumination model
Illumination modelAnkur Kumar
 
CS 354 Ray Casting & Tracing
CS 354 Ray Casting & TracingCS 354 Ray Casting & Tracing
CS 354 Ray Casting & TracingMark Kilgard
 
GRPHICS08 - Raytracing and Radiosity
GRPHICS08 - Raytracing and RadiosityGRPHICS08 - Raytracing and Radiosity
GRPHICS08 - Raytracing and RadiosityMichael Heron
 
Graphics Lecture 7
Graphics Lecture 7Graphics Lecture 7
Graphics Lecture 7Saiful Islam
 
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 ...Adil Mehmoood
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics NotesGurpreet singh
 
Texture mapping
Texture mapping Texture mapping
Texture mapping wahab13
 
[Webinar] Scientific Computation and Data Visualization with Ruby
[Webinar] Scientific Computation and Data Visualization with Ruby [Webinar] Scientific Computation and Data Visualization with Ruby
[Webinar] Scientific Computation and Data Visualization with Ruby Srijan Technologies
 
Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computingGo Asgard
 
Scientific computing
Scientific computingScientific computing
Scientific computingBrijesh Kumar
 
Advanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineAdvanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineNarann29
 

Destaque (20)

Ray tracing
Ray tracingRay tracing
Ray tracing
 
Ray tracing
Ray tracingRay tracing
Ray tracing
 
Illumination model
Illumination modelIllumination model
Illumination model
 
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
 
Lighting and shading
Lighting and shadingLighting and shading
Lighting and shading
 
Shading
ShadingShading
Shading
 
Illumination Model
Illumination ModelIllumination Model
Illumination Model
 
Graphics Lecture 7
Graphics Lecture 7Graphics Lecture 7
Graphics Lecture 7
 
Texture Synthesis
Texture SynthesisTexture Synthesis
Texture Synthesis
 
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
 
Texture mapping
Texture mapping Texture mapping
Texture mapping
 
[Webinar] Scientific Computation and Data Visualization with Ruby
[Webinar] Scientific Computation and Data Visualization with Ruby [Webinar] Scientific Computation and Data Visualization with Ruby
[Webinar] Scientific Computation and Data Visualization with Ruby
 
Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computing
 
Scientific computing
Scientific computingScientific computing
Scientific computing
 
Propagation indoor
Propagation indoorPropagation indoor
Propagation indoor
 
Advanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering PipelineAdvanced Scenegraph Rendering Pipeline
Advanced Scenegraph Rendering Pipeline
 
Wcdma planning
Wcdma planningWcdma planning
Wcdma planning
 
Propagation urban
Propagation urbanPropagation urban
Propagation urban
 

Semelhante a Ray tracing

Ray tracing converted (1)
Ray tracing converted (1)Ray tracing converted (1)
Ray tracing converted (1)achnobghiti
 
Copy of 3 d report
Copy of 3 d reportCopy of 3 d report
Copy of 3 d reportVirajjha
 
Review of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration TechniqueReview of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration TechniqueBRNSSPublicationHubI
 
ResearchPaper
ResearchPaperResearchPaper
ResearchPaperIan Bloom
 
Class[4][19th jun] [three js-camera&amp;light]
Class[4][19th jun] [three js-camera&amp;light]Class[4][19th jun] [three js-camera&amp;light]
Class[4][19th jun] [three js-camera&amp;light]Saajid Akram
 
3-D Visual Reconstruction: A System Perspective
3-D Visual Reconstruction: A System Perspective3-D Visual Reconstruction: A System Perspective
3-D Visual Reconstruction: A System PerspectiveGuillermo Medina Zegarra
 
5 ray casting computer graphics
5 ray casting computer graphics5 ray casting computer graphics
5 ray casting computer graphicscairo university
 
Shadow Mapping with Today's OpenGL Hardware
Shadow Mapping with Today's OpenGL HardwareShadow Mapping with Today's OpenGL Hardware
Shadow Mapping with Today's OpenGL HardwareMark Kilgard
 
LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...
LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...
LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...Minh Quan Nguyen
 
02 principle of photography and imaging
02 principle of photography and imaging02 principle of photography and imaging
02 principle of photography and imagingSarhat Adam
 
Object Distance Detection using a Joint Transform Correlator
Object Distance Detection using a Joint Transform CorrelatorObject Distance Detection using a Joint Transform Correlator
Object Distance Detection using a Joint Transform CorrelatorAlexander Layton
 
Interactive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space TechniquesInteractive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space Techniquescodevania
 
Visual Odometry using Stereo Vision
Visual Odometry using Stereo VisionVisual Odometry using Stereo Vision
Visual Odometry using Stereo VisionRSIS International
 
Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3Slide_N
 
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWSAPPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWSijcga
 
Rendering Algorithms.pptx
Rendering Algorithms.pptxRendering Algorithms.pptx
Rendering Algorithms.pptxSherinRappai
 

Semelhante a Ray tracing (20)

Ray tracing converted (1)
Ray tracing converted (1)Ray tracing converted (1)
Ray tracing converted (1)
 
Copy of 3 d report
Copy of 3 d reportCopy of 3 d report
Copy of 3 d report
 
D04432528
D04432528D04432528
D04432528
 
Review of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration TechniqueReview of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration Technique
 
Lecture1
Lecture1Lecture1
Lecture1
 
ResearchPaper
ResearchPaperResearchPaper
ResearchPaper
 
Class[4][19th jun] [three js-camera&amp;light]
Class[4][19th jun] [three js-camera&amp;light]Class[4][19th jun] [three js-camera&amp;light]
Class[4][19th jun] [three js-camera&amp;light]
 
Normal Mapping / Computer Graphics - IK
Normal Mapping / Computer Graphics - IKNormal Mapping / Computer Graphics - IK
Normal Mapping / Computer Graphics - IK
 
3-D Visual Reconstruction: A System Perspective
3-D Visual Reconstruction: A System Perspective3-D Visual Reconstruction: A System Perspective
3-D Visual Reconstruction: A System Perspective
 
5 ray casting computer graphics
5 ray casting computer graphics5 ray casting computer graphics
5 ray casting computer graphics
 
Shadow Mapping with Today's OpenGL Hardware
Shadow Mapping with Today's OpenGL HardwareShadow Mapping with Today's OpenGL Hardware
Shadow Mapping with Today's OpenGL Hardware
 
LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...
LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...
LocalizationandMappingforAutonomousNavigationin OutdoorTerrains: A StereoVisi...
 
02 principle of photography and imaging
02 principle of photography and imaging02 principle of photography and imaging
02 principle of photography and imaging
 
Object Distance Detection using a Joint Transform Correlator
Object Distance Detection using a Joint Transform CorrelatorObject Distance Detection using a Joint Transform Correlator
Object Distance Detection using a Joint Transform Correlator
 
Interactive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space TechniquesInteractive Refractions And Caustics Using Image Space Techniques
Interactive Refractions And Caustics Using Image Space Techniques
 
Visual Odometry using Stereo Vision
Visual Odometry using Stereo VisionVisual Odometry using Stereo Vision
Visual Odometry using Stereo Vision
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
 
Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3Deferred Pixel Shading on the PLAYSTATION®3
Deferred Pixel Shading on the PLAYSTATION®3
 
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWSAPPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
APPEARANCE-BASED REPRESENTATION AND RENDERING OF CAST SHADOWS
 
Rendering Algorithms.pptx
Rendering Algorithms.pptxRendering Algorithms.pptx
Rendering Algorithms.pptx
 

Mais de Iniya Kannan

Telephone conversation iniya 14mba002
Telephone conversation iniya 14mba002Telephone conversation iniya 14mba002
Telephone conversation iniya 14mba002Iniya Kannan
 
Mobile App for Booking Movie Ticket
Mobile App for Booking Movie TicketMobile App for Booking Movie Ticket
Mobile App for Booking Movie TicketIniya Kannan
 
Mobile App for Movie Ticket Booking Screenshots
Mobile App for Movie Ticket Booking ScreenshotsMobile App for Movie Ticket Booking Screenshots
Mobile App for Movie Ticket Booking ScreenshotsIniya Kannan
 
Converting agricultural waste for useful purposes
Converting agricultural waste for useful purposesConverting agricultural waste for useful purposes
Converting agricultural waste for useful purposesIniya Kannan
 
Probabilistic reasoning
Probabilistic reasoningProbabilistic reasoning
Probabilistic reasoningIniya Kannan
 
16-Queen's Problem
16-Queen's Problem16-Queen's Problem
16-Queen's ProblemIniya Kannan
 

Mais de Iniya Kannan (14)

Event iniya
Event iniyaEvent iniya
Event iniya
 
Telephone conversation iniya 14mba002
Telephone conversation iniya 14mba002Telephone conversation iniya 14mba002
Telephone conversation iniya 14mba002
 
Mobile App for Booking Movie Ticket
Mobile App for Booking Movie TicketMobile App for Booking Movie Ticket
Mobile App for Booking Movie Ticket
 
Mobile App for Movie Ticket Booking Screenshots
Mobile App for Movie Ticket Booking ScreenshotsMobile App for Movie Ticket Booking Screenshots
Mobile App for Movie Ticket Booking Screenshots
 
9 creations
9 creations9 creations
9 creations
 
Converting agricultural waste for useful purposes
Converting agricultural waste for useful purposesConverting agricultural waste for useful purposes
Converting agricultural waste for useful purposes
 
Nano technology
Nano technologyNano technology
Nano technology
 
Controller
ControllerController
Controller
 
Cmp
CmpCmp
Cmp
 
Probabilistic reasoning
Probabilistic reasoningProbabilistic reasoning
Probabilistic reasoning
 
Long run
Long runLong run
Long run
 
Web mining
Web miningWeb mining
Web mining
 
Tsunami
TsunamiTsunami
Tsunami
 
16-Queen's Problem
16-Queen's Problem16-Queen's Problem
16-Queen's Problem
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Último (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Ray tracing

  • 2. OVERVIEW OF RAY TRACING. INTERSECTING RAYS WITH OTHER PRIMITIVES. 10/9/2013 2
  • 3. 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. 10/9/2013 3
  • 4. Ray tracing Provides a related, but even more powerful, approach to rendering scenes. A Ray is cast from the eye through the center of the pixel is traced to see what object it hits first and at what point. EYE (or) Pixel (or) Frame Buffer 10/9/2013 4
  • 5. The Resulting color is then displayed at the pixel, the path of a ray traced through the scene, interesting visual effects such as shadowing, reflection and refraction are easy to incorporate and producing dazzling images. 10/9/2013 5
  • 6. Ray tracing can create realistic images. In addition to the high degree of realism, ray tracing can simulate the effects of a camera due to depth of field and aperture shape 10/9/2013 6
  • 7. This makes ray tracing best suited for applications where the image can be rendered slowly ahead of time, such as in still images and film and television visual effects, and more poorly suited for real-time applications. 10/9/2013 7
  • 8. Ray tracing is capable of simulating a wide variety of optical effects, such as reflection and refraction, scattering,and dispersion phenomena (such as chromatic aberration). 10/9/2013 8
  • 9. Optical ray tracing describes a method for producing visual images constructed in 3D computer graphics environments, with more photorealism than either ray casting or scanline rendering techniques. It works by tracing a path from an imaginary eye through each pixel in a virtual screen, and calculating the color of the object visible through it. 10/9/2013 9
  • 10. Descriptions of all then Objects are stored in an object list. The ray that interacts the Sphere and the Cylinder. The hit spot (PHIT) is easily found wit the ray itself. The ray of Equation at the Hit time tbit : PHIT=eye + dirr,ctbit EYE (or) Pixel (or) Frame Buffer PHIT 10/9/2013 10
  • 11. define the objects and light sources in the scene set up the camera for(int r=0 ; r < nRows ; r++) for(int c=0 ; c < nCols ; c++) { 1.Build the rc-th ray. 2.Find all interactions of the rc-th ray with objects in the scene. 3.Identify the intersection that lies closest to and infront of the eye. 4.Compute the Hit Point. 5.Find the color of the light returning to the eye along the ray from the point of intersection. 6.Place the color in the rc-th pixel. } 10/9/2013 11
  • 12. We need to Develop the hit() method for other shape classes. Intersecting with a square: A square is useful generic shape. The generic square lies in the z=0 plane and extends from -1 to +1 in both x and y axis. The implicit form of the equation of the square is F(P)=PZ for |PX| <= 1 and |PY| <= 1. The Square can be transformed into any parallelogram positioned in space & provide thin, flat surface like Walls, Windows, etc. 10/9/2013 12
  • 13. The function hit() finds where the ray hits the generic plane and then tests whether the Hit spots lie s within the square. 10/9/2013 13
  • 14. Intersecting with a Cube or any Convex Polyhedron: Convex Polyhedron is useful in many graphics situations. It is centered at the origin and has corners, using all six combinations of +1 and -1. The edges are aligned with the coordinate axes, and its six faces lie in the Planes. 10/9/2013 14
  • 15. PLANE NAME EQUATION OUTWARD NORMAL SPOT 0 TOP Y=1 (0,1,0) (0,1,0) 1 BOTTOM Y=-1 (0,-1,0) (0,-1,0) 2 RIGHT X=1 (1,0,0) (1,0,0) 3 LEFT X=-1 (-1,0,0) (-1,0,0) 4 FRONT Z=1 (0,0,0) (0,0,0) 5 BACK Z=-1 (0,0,-1) (0,0,-1) 10/9/2013 15
  • 17. The generic cube is important for 2 reasons: 1. A Large variety of interesting “boxes” can be Modeled and Placed in a scene by applying an affine transformation to a generic cube. In Ray Tracing each ray can be inverse transformed into the generic cube’s coordinate system. 2. The generic cube can be used as an extent for the other geometric primitives in the sense of a Bounding box. 10/9/2013 17