SlideShare a Scribd company logo
10/9/201
3
1
OVERVIEW OF RAY TRACING.
INTERSECTING RAYS WITH OTHER PRIMITIVES.
10/9/201
3
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/201
3
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/201
3
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/201
3
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/201
3
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/201
3
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/201
3
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/201
3
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
PHI
T
10/9/201
3
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/201
3
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/201
3
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/201
3
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/201
3
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/201
3
15
10/9/201
3
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/201
3
17
10/9/201
3
18

More Related Content

What's hot

Concept of stereo vision based virtual touch
Concept of stereo vision based virtual touchConcept of stereo vision based virtual touch
Concept of stereo vision based virtual touchVivek Chamorshikar
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1
qpqpqp
 
Build Your Own 3D Scanner: Introduction
Build Your Own 3D Scanner: IntroductionBuild Your Own 3D Scanner: Introduction
Build Your Own 3D Scanner: Introduction
Douglas Lanman
 
Build Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface ReconstructionBuild Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface Reconstruction
Douglas Lanman
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
Gurpreet singh
 
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingBuild Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Douglas Lanman
 
Stereo vision
Stereo visionStereo vision
Stereo vision
Dũng Nguyễn
 
GRPHICS01 - Introduction to 3D Graphics
GRPHICS01 - Introduction to 3D GraphicsGRPHICS01 - Introduction to 3D Graphics
GRPHICS01 - Introduction to 3D Graphics
Michael Heron
 
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
Ankur Tyagi
 
Point Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D ReconstructionPoint Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D Reconstruction
Pirouz Nourian
 
Hidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-bufferHidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-buffer
Raj Sikarwar
 
Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06Robin Colclough
 
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013Sunando Sengupta
 
DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013
DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013
DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013
Patrick Raymond
 
GRPHICS02 - Creating 3D Graphics
GRPHICS02 - Creating 3D GraphicsGRPHICS02 - Creating 3D Graphics
GRPHICS02 - Creating 3D Graphics
Michael Heron
 
5 Visual Effect Techniques Commonly Used in Animation
5 Visual Effect Techniques Commonly Used in Animation5 Visual Effect Techniques Commonly Used in Animation
5 Visual Effect Techniques Commonly Used in Animation
Animation Courses, Ahmedabad
 
hidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmhidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmrajivagarwal23dei
 

What's hot (20)

Concept of stereo vision based virtual touch
Concept of stereo vision based virtual touchConcept of stereo vision based virtual touch
Concept of stereo vision based virtual touch
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1
 
Build Your Own 3D Scanner: Introduction
Build Your Own 3D Scanner: IntroductionBuild Your Own 3D Scanner: Introduction
Build Your Own 3D Scanner: Introduction
 
Build Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface ReconstructionBuild Your Own 3D Scanner: Surface Reconstruction
Build Your Own 3D Scanner: Surface Reconstruction
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingBuild Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
 
Stereo vision
Stereo visionStereo vision
Stereo vision
 
GRPHICS01 - Introduction to 3D Graphics
GRPHICS01 - Introduction to 3D GraphicsGRPHICS01 - Introduction to 3D Graphics
GRPHICS01 - Introduction to 3D Graphics
 
3d from images
3d from images3d from images
3d from images
 
3 d viewing
3 d viewing3 d viewing
3 d viewing
 
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
 
Point Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D ReconstructionPoint Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D Reconstruction
 
Hidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-bufferHidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-buffer
 
Object representations
Object representationsObject representations
Object representations
 
Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06Viva3D Stereo Vision user manual en 2016-06
Viva3D Stereo Vision user manual en 2016-06
 
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
Urban 3D Semantic Modelling Using Stereo Vision, ICRA 2013
 
DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013
DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013
DimEye Corp Presents Revolutionary VLS (Video Laser Scan) at SS IMMR 2013
 
GRPHICS02 - Creating 3D Graphics
GRPHICS02 - Creating 3D GraphicsGRPHICS02 - Creating 3D Graphics
GRPHICS02 - Creating 3D Graphics
 
5 Visual Effect Techniques Commonly Used in Animation
5 Visual Effect Techniques Commonly Used in Animation5 Visual Effect Techniques Commonly Used in Animation
5 Visual Effect Techniques Commonly Used in Animation
 
hidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmhidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithm
 

Similar to Ray tracing converted (1)

D04432528
D04432528D04432528
D04432528
IOSR-JEN
 
Copy of 3 d report
Copy of 3 d reportCopy of 3 d report
Copy of 3 d report
Virajjha
 
ResearchPaper
ResearchPaperResearchPaper
ResearchPaperIan Bloom
 
lecture2 computer graphics graphics hardware(Computer graphics tutorials)
 lecture2  computer graphics graphics hardware(Computer graphics tutorials) lecture2  computer graphics graphics hardware(Computer graphics tutorials)
lecture2 computer graphics graphics hardware(Computer graphics tutorials)
Daroko blog(www.professionalbloggertricks.com)
 
Introduction on Photogrammetry.pdf
Introduction on Photogrammetry.pdfIntroduction on Photogrammetry.pdf
Introduction on Photogrammetry.pdf
BSuresh26
 
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 Perspective
Guillermo Medina Zegarra
 
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
BRNSSPublicationHubI
 
5 ray casting computer graphics
5 ray casting computer graphics5 ray casting computer graphics
5 ray casting computer graphics
cairo university
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
Girish Ajmera
 
02 principle of photography and imaging
02 principle of photography and imaging02 principle of photography and imaging
02 principle of photography and imaging
Sarhat Adam
 
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
codevania
 
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
Mark Kilgard
 
Image formation
Image formationImage formation
Image formation
potaters
 
Notes04.pdf
Notes04.pdfNotes04.pdf
Notes04.pdf
MukeshKumar605825
 
Slides: Perspective click-and-drag area selections in pictures
Slides: Perspective click-and-drag area selections in picturesSlides: Perspective click-and-drag area selections in pictures
Slides: Perspective click-and-drag area selections in pictures
Frank Nielsen
 
論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...
論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...
論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...
Ken Sakurada
 
CG.pptx
CG.pptxCG.pptx
CG.pptx
AdityaBisht34
 

Similar to Ray tracing converted (1) (20)

Ray tracing
Ray tracingRay tracing
Ray tracing
 
D04432528
D04432528D04432528
D04432528
 
Copy of 3 d report
Copy of 3 d reportCopy of 3 d report
Copy of 3 d report
 
ResearchPaper
ResearchPaperResearchPaper
ResearchPaper
 
lecture2 computer graphics graphics hardware(Computer graphics tutorials)
 lecture2  computer graphics graphics hardware(Computer graphics tutorials) lecture2  computer graphics graphics hardware(Computer graphics tutorials)
lecture2 computer graphics graphics hardware(Computer graphics tutorials)
 
Introduction on Photogrammetry.pdf
Introduction on Photogrammetry.pdfIntroduction on Photogrammetry.pdf
Introduction on Photogrammetry.pdf
 
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]
 
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
 
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
 
5 ray casting computer graphics
5 ray casting computer graphics5 ray casting computer graphics
5 ray casting computer graphics
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
 
02 principle of photography and imaging
02 principle of photography and imaging02 principle of photography and imaging
02 principle of photography and imaging
 
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
 
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
 
Image formation
Image formationImage formation
Image formation
 
Notes04.pdf
Notes04.pdfNotes04.pdf
Notes04.pdf
 
workspace_analysis
workspace_analysisworkspace_analysis
workspace_analysis
 
Slides: Perspective click-and-drag area selections in pictures
Slides: Perspective click-and-drag area selections in picturesSlides: Perspective click-and-drag area selections in pictures
Slides: Perspective click-and-drag area selections in pictures
 
論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...
論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...
論文紹介"DynamicFusion: Reconstruction and Tracking of Non-­‐rigid Scenes in Real...
 
CG.pptx
CG.pptxCG.pptx
CG.pptx
 

Recently uploaded

一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.
Techno Merch
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
M. A. Architect
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
peuce
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
pmgdscunsri
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
ARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdfARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdf
Knight Moves
 
Impact of Fonts: in Web and Apps Design
Impact of Fonts:  in Web and Apps DesignImpact of Fonts:  in Web and Apps Design
Impact of Fonts: in Web and Apps Design
contactproperweb2014
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
ameli25062005
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
Carolina de Bartolo
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
7sd8fier
 

Recently uploaded (20)

一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
ARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdfARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdf
 
Impact of Fonts: in Web and Apps Design
Impact of Fonts:  in Web and Apps DesignImpact of Fonts:  in Web and Apps Design
Impact of Fonts: in Web and Apps Design
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
 

Ray tracing converted (1)

  • 2. OVERVIEW OF RAY TRACING. INTERSECTING RAYS WITH OTHER PRIMITIVES. 10/9/201 3 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/201 3 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/201 3 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/201 3 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/201 3 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/201 3 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/201 3 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/201 3 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 PHI T 10/9/201 3 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/201 3 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/201 3 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/201 3 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/201 3 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/201 3 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/201 3 17