SlideShare a Scribd company logo
1 of 11
Md. Mosharof Hosen
Id # 151002051
Computer Graphics
A hidden-surface determination algorithm is a solution to the
visibility problem, which was one of the first major problems in
the field of 3D computer graphics. sometimes its called hiding and
a hider.
There are dozens of hidden surface algorithms.
We look at prominent ones:
 Ray casting
Hidden Surface Algorithms
Ray casting is the most basic of many computer graphics
rendering algorithms that use the geometric algorithm of ray
tracing.
It is capable of creating a three-dimensional perspective in a two-
dimensional map. Also considered one of the most basic graphics-
rendering algorithms. Ray casting makes use the same geometric
algorithm as ray tracing.
Ray Casting Algorithm
For each pixel center 𝑃𝑖𝑗
• Send ray from eye point (COP), C, through 𝑃𝑖𝑗 into scene. Š
• Intersect ray with each object.Š
• Select nearest intersection.
Ray Casting Idea
Pros:
 It provides a realistic simulation of lighting.
 Effects such as reflections and shadows
Cons:
 Much more expensive than local reflection
 Still empirical
 Only handles specular inter-object reflection
 Entire calculation is view-dependent
Ray Casting Pros & Cons
Cast ray from viewpoint through each pixel to find front-most
surface
Based geometric optics method that trace rays of light
Ray Casting Method (1/2)
Light-ray paths backward from the pixels through the scene
More effective detection method
- Curved surface, particularly spheres
a variation on the depth buffer method
Conceptually simple, but not generally used
Ray Casting Method (2/2)
Given a point and a polygon, check if the point is inside or outside
the polygon using the ray-casting algorithm.
A pseudo code can be simply:
count ← 0
foreach side in polygon:
if ray_intersects_segment(P,side) then
count ← count + 1
if is_odd(count) then
return inside
else
return outside
Ray Casting algorithm procedure
• Might parameterize each ray:
r 𝑡 = 𝐶 + 𝑡(𝑃𝑖𝑗 − 𝐶)
where t > 0.
• Each object 𝑂 𝑘 returns 𝑡 𝑘 > 0 such that first
intersection with 𝑂 𝑘 occurs at r(𝑡 𝑘).
Implementation
 Easy to implement
 Easy to implement in hardware
 Incremental drawing calculations
 Pre-processing required
 If objects move, does it take more work than normal to draw
the frame.
 If the viewer moves, does it take more work than normal to
draw the frame
 Typically polygon based
 Efficient shading
 Handles transparency
Ray casting: Analysis
Ray casting algorithm by mhm

More Related Content

What's hot

Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processingHossain Md Shakhawat
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination modelAnkit Garg
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmMani Kanth
 
Camera model ‫‬
Camera model ‫‬Camera model ‫‬
Camera model ‫‬Fatima Radi
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.Mohd Arif
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESEzhilya venkat
 
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
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphicsSHIVANI SONI
 
Midpoint circle algo
Midpoint circle algoMidpoint circle algo
Midpoint circle algoMohd Arif
 
Video display devices
Video display devicesVideo display devices
Video display devicesMohd Arif
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
Back face detection
Back face detectionBack face detection
Back face detectionPooja Dixit
 
Parallel projection
Parallel projectionParallel projection
Parallel projectionPrince Shahu
 
computer Graphics
computer Graphics computer Graphics
computer Graphics Rozi khan
 

What's hot (20)

Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination model
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
 
Camera model ‫‬
Camera model ‫‬Camera model ‫‬
Camera model ‫‬
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTES
 
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
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Midpoint circle algo
Midpoint circle algoMidpoint circle algo
Midpoint circle algo
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Back face detection
Back face detectionBack face detection
Back face detection
 
3D Transformation
3D Transformation 3D Transformation
3D Transformation
 
Parallel projection
Parallel projectionParallel projection
Parallel projection
 
computer Graphics
computer Graphics computer Graphics
computer Graphics
 

Similar to Ray casting algorithm by mhm

Defect detection in circlips using image processing in ni lab view
Defect detection in circlips using image processing in ni lab viewDefect detection in circlips using image processing in ni lab view
Defect detection in circlips using image processing in ni lab viewSayali Bodhankar
 
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
 
Self-dependent 3D face rotational alignment using the nose region
Self-dependent 3D face rotational alignment using the nose regionSelf-dependent 3D face rotational alignment using the nose region
Self-dependent 3D face rotational alignment using the nose regionMehryar (Mike) E., Ph.D.
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfvikasmittal92
 
2007 EuRad Conference: Speech on Rough Layers (ppt)
2007 EuRad Conference: Speech on Rough Layers (ppt)2007 EuRad Conference: Speech on Rough Layers (ppt)
2007 EuRad Conference: Speech on Rough Layers (ppt)Nicolas Pinel
 
2007 EuRad Conference: Speech on Rough Layers (odp)
2007 EuRad Conference: Speech on Rough Layers (odp)2007 EuRad Conference: Speech on Rough Layers (odp)
2007 EuRad Conference: Speech on Rough Layers (odp)Nicolas Pinel
 
Visual odometry & slam utilizing indoor structured environments
Visual odometry & slam utilizing indoor structured environmentsVisual odometry & slam utilizing indoor structured environments
Visual odometry & slam utilizing indoor structured environmentsNAVER Engineering
 
“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...
“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...
“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...Edge AI and Vision Alliance
 
Soft Shadow Maps for Linear Lights
Soft Shadow Maps for Linear LightsSoft Shadow Maps for Linear Lights
Soft Shadow Maps for Linear Lightsstefan_b
 
Rapid Laser Scanning the process
Rapid Laser Scanning the processRapid Laser Scanning the process
Rapid Laser Scanning the processSeeview Solutions
 
Automatic vehicle license plate detection using VEDA
Automatic vehicle license plate detection using VEDAAutomatic vehicle license plate detection using VEDA
Automatic vehicle license plate detection using VEDARojith Thomas
 
Generation and weighting of 3D point correspondences for improved registratio...
Generation and weighting of 3D point correspondences for improved registratio...Generation and weighting of 3D point correspondences for improved registratio...
Generation and weighting of 3D point correspondences for improved registratio...Kourosh Khoshelham
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1qpqpqp
 
Green Custard Friday Talk 17: Ray Tracing
Green Custard Friday Talk 17: Ray TracingGreen Custard Friday Talk 17: Ray Tracing
Green Custard Friday Talk 17: Ray TracingGreen Custard
 
Cozzella presentation ICAPMMOMI 2010
Cozzella presentation ICAPMMOMI 2010Cozzella presentation ICAPMMOMI 2010
Cozzella presentation ICAPMMOMI 2010Lorenzo Cozzella
 
3-d interpretation from single 2-d image for autonomous driving II
3-d interpretation from single 2-d image for autonomous driving II3-d interpretation from single 2-d image for autonomous driving II
3-d interpretation from single 2-d image for autonomous driving IIYu Huang
 

Similar to Ray casting algorithm by mhm (20)

Defect detection in circlips using image processing in ni lab view
Defect detection in circlips using image processing in ni lab viewDefect detection in circlips using image processing in ni lab view
Defect detection in circlips using image processing in ni lab view
 
3d scanning techniques
3d scanning techniques3d scanning techniques
3d scanning techniques
 
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
 
Self-dependent 3D face rotational alignment using the nose region
Self-dependent 3D face rotational alignment using the nose regionSelf-dependent 3D face rotational alignment using the nose region
Self-dependent 3D face rotational alignment using the nose region
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
 
2007 EuRad Conference: Speech on Rough Layers (ppt)
2007 EuRad Conference: Speech on Rough Layers (ppt)2007 EuRad Conference: Speech on Rough Layers (ppt)
2007 EuRad Conference: Speech on Rough Layers (ppt)
 
2007 EuRad Conference: Speech on Rough Layers (odp)
2007 EuRad Conference: Speech on Rough Layers (odp)2007 EuRad Conference: Speech on Rough Layers (odp)
2007 EuRad Conference: Speech on Rough Layers (odp)
 
Hidden Surfaces
Hidden SurfacesHidden Surfaces
Hidden Surfaces
 
Visual odometry & slam utilizing indoor structured environments
Visual odometry & slam utilizing indoor structured environmentsVisual odometry & slam utilizing indoor structured environments
Visual odometry & slam utilizing indoor structured environments
 
D04432528
D04432528D04432528
D04432528
 
“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...
“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...
“CMOS Image Sensors: A Guide to Building the Eyes of a Vision System,” a Pres...
 
Soft Shadow Maps for Linear Lights
Soft Shadow Maps for Linear LightsSoft Shadow Maps for Linear Lights
Soft Shadow Maps for Linear Lights
 
Rapid Laser Scanning the process
Rapid Laser Scanning the processRapid Laser Scanning the process
Rapid Laser Scanning the process
 
Automatic vehicle license plate detection using VEDA
Automatic vehicle license plate detection using VEDAAutomatic vehicle license plate detection using VEDA
Automatic vehicle license plate detection using VEDA
 
Generation and weighting of 3D point correspondences for improved registratio...
Generation and weighting of 3D point correspondences for improved registratio...Generation and weighting of 3D point correspondences for improved registratio...
Generation and weighting of 3D point correspondences for improved registratio...
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1
 
Green Custard Friday Talk 17: Ray Tracing
Green Custard Friday Talk 17: Ray TracingGreen Custard Friday Talk 17: Ray Tracing
Green Custard Friday Talk 17: Ray Tracing
 
3DSensing.ppt
3DSensing.ppt3DSensing.ppt
3DSensing.ppt
 
Cozzella presentation ICAPMMOMI 2010
Cozzella presentation ICAPMMOMI 2010Cozzella presentation ICAPMMOMI 2010
Cozzella presentation ICAPMMOMI 2010
 
3-d interpretation from single 2-d image for autonomous driving II
3-d interpretation from single 2-d image for autonomous driving II3-d interpretation from single 2-d image for autonomous driving II
3-d interpretation from single 2-d image for autonomous driving II
 

More from Md Mosharof Hosen

Error Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptError Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptMd Mosharof Hosen
 
Osi model or open system interconnection by MHM
Osi model or open system interconnection by MHMOsi model or open system interconnection by MHM
Osi model or open system interconnection by MHMMd Mosharof Hosen
 
Project on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHMProject on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHMMd Mosharof Hosen
 
Matrix chain multiplication by MHM
Matrix chain multiplication by MHMMatrix chain multiplication by MHM
Matrix chain multiplication by MHMMd Mosharof Hosen
 
Measures of central tendency by MHM
Measures of central tendency by MHMMeasures of central tendency by MHM
Measures of central tendency by MHMMd Mosharof Hosen
 
Thermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, EntropyThermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, EntropyMd Mosharof Hosen
 
Electronics applications and components
Electronics applications and componentsElectronics applications and components
Electronics applications and componentsMd Mosharof Hosen
 
Computer Software & Hardware by MHM
Computer Software & Hardware by MHMComputer Software & Hardware by MHM
Computer Software & Hardware by MHMMd Mosharof Hosen
 
Differential Equation by MHM
Differential Equation by MHMDifferential Equation by MHM
Differential Equation by MHMMd Mosharof Hosen
 

More from Md Mosharof Hosen (12)

Error Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptError Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.ppt
 
SDLC Model by MHM
SDLC Model by MHMSDLC Model by MHM
SDLC Model by MHM
 
Osi model or open system interconnection by MHM
Osi model or open system interconnection by MHMOsi model or open system interconnection by MHM
Osi model or open system interconnection by MHM
 
Project on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHMProject on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHM
 
Ui design by mhm
Ui design by mhmUi design by mhm
Ui design by mhm
 
Matrix chain multiplication by MHM
Matrix chain multiplication by MHMMatrix chain multiplication by MHM
Matrix chain multiplication by MHM
 
Measures of central tendency by MHM
Measures of central tendency by MHMMeasures of central tendency by MHM
Measures of central tendency by MHM
 
Thermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, EntropyThermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
 
Environment vs Technology
Environment  vs TechnologyEnvironment  vs Technology
Environment vs Technology
 
Electronics applications and components
Electronics applications and componentsElectronics applications and components
Electronics applications and components
 
Computer Software & Hardware by MHM
Computer Software & Hardware by MHMComputer Software & Hardware by MHM
Computer Software & Hardware by MHM
 
Differential Equation by MHM
Differential Equation by MHMDifferential Equation by MHM
Differential Equation by MHM
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
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...
 
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...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Ray casting algorithm by mhm

  • 1. Md. Mosharof Hosen Id # 151002051 Computer Graphics
  • 2. A hidden-surface determination algorithm is a solution to the visibility problem, which was one of the first major problems in the field of 3D computer graphics. sometimes its called hiding and a hider. There are dozens of hidden surface algorithms. We look at prominent ones:  Ray casting Hidden Surface Algorithms
  • 3. Ray casting is the most basic of many computer graphics rendering algorithms that use the geometric algorithm of ray tracing. It is capable of creating a three-dimensional perspective in a two- dimensional map. Also considered one of the most basic graphics- rendering algorithms. Ray casting makes use the same geometric algorithm as ray tracing. Ray Casting Algorithm
  • 4. For each pixel center 𝑃𝑖𝑗 • Send ray from eye point (COP), C, through 𝑃𝑖𝑗 into scene. Š • Intersect ray with each object.Š • Select nearest intersection. Ray Casting Idea
  • 5. Pros:  It provides a realistic simulation of lighting.  Effects such as reflections and shadows Cons:  Much more expensive than local reflection  Still empirical  Only handles specular inter-object reflection  Entire calculation is view-dependent Ray Casting Pros & Cons
  • 6. Cast ray from viewpoint through each pixel to find front-most surface Based geometric optics method that trace rays of light Ray Casting Method (1/2)
  • 7. Light-ray paths backward from the pixels through the scene More effective detection method - Curved surface, particularly spheres a variation on the depth buffer method Conceptually simple, but not generally used Ray Casting Method (2/2)
  • 8. Given a point and a polygon, check if the point is inside or outside the polygon using the ray-casting algorithm. A pseudo code can be simply: count ← 0 foreach side in polygon: if ray_intersects_segment(P,side) then count ← count + 1 if is_odd(count) then return inside else return outside Ray Casting algorithm procedure
  • 9. • Might parameterize each ray: r 𝑡 = 𝐶 + 𝑡(𝑃𝑖𝑗 − 𝐶) where t > 0. • Each object 𝑂 𝑘 returns 𝑡 𝑘 > 0 such that first intersection with 𝑂 𝑘 occurs at r(𝑡 𝑘). Implementation
  • 10.  Easy to implement  Easy to implement in hardware  Incremental drawing calculations  Pre-processing required  If objects move, does it take more work than normal to draw the frame.  If the viewer moves, does it take more work than normal to draw the frame  Typically polygon based  Efficient shading  Handles transparency Ray casting: Analysis