SlideShare une entreprise Scribd logo
1  sur  23
Visible SurfaceVisible Surface
DetectionDetection
Visible Surface Detection
●
Visible surface detection or hidden surface
removal.
●
Realistic scenes: closer objects occludes the
others.
●
Classification:
– Object space methods
– Image space methods
Object Space Methods
●
Algorithms to determine which parts of the shapes
are to be rendered in 3D coordinates.
●
Methods based on comparison of objects for their 3D
positions and dimensions with respect to a viewing
position.
●
For N objects, may require N*N comparision
operations.
●
Efficient for small number of objects but difficult to
implement.
●
Depth sorting, area subdivision methods.
Image Space Methods
●
Based on the pixels to be drawn on 2D. Try to
determine which object should contribute to that
pixel.
●
Running time complexity is the number of pixels
times number of objects.
●
Space complexity is two times the number of pixels:
– One array of pixels for the frame buffer
– One array of pixels for the depth buffer
●
Coherence properties of surfaces can be used.
●
Depth-buffer and ray casting methods.
Depth Cueing
●
Hidden surfaces are not removed but displayed with
different effects such as intensity, color, or shadow
for giving hint for third dimension of the object.
●
Simplest solution: use different colors-intensities
based on the dimensions of the shapes.
Back-Face Detection
●
Back-face detection of 3D polygon surface is
easy
●
Recall the polygon surface equation:
●
We need to also consider the viewing
direction when determining whether a
surface is back-face or front-face.
●
The normal of the surface is given by:
0<+++ DCzByAx
),,( CBA=N
Back-Face Detection
●
A polygon surface is a back face if:
●
However, remember that after application of
the viewing transformation we are looking
down the negative z-axis. Therefore a
polygon is a back face if:
0view >⋅NV
0ifor
0)1,0,0(
<
>⋅−
C
N
Back-Face Detection
●
We will also be unable to see surfaces with
C=0. Therefore, we can identify a polygon
surface as a back-face if:
0≤C
Back-Face Detection
●
Back-face detection can identify all the
hidden surfaces in a scene that contain non-
overlapping convex polyhedra.
●
But we have to apply more tests that contain
overlapping objects along the line of sight to
determine which objects obscure which
objects.
Depth-Buffer Method
●
Also known as z-buffer method.
●
It is an image space approach
– Each surface is processed separately one pixel
position at a time across the surface
– The depth values for a pixel are compared
and the closest (smallest z) surface
determines the color to be displayed in the
frame buffer.
– Applied very efficiently on polygon surfaces
– Surfaces are processed in any order
Depth-Buffer Method
Depth-Buffer Method
●
Two buffers are used
– Frame Buffer
– Depth Buffer
●
The z-coordinates (depth values) are usually
normalized to the range [0,1]
Depth-Buffer Algorithm
●
Initialize the depth buffer and frame buffer so that
for all buffer positions (x,y),
depthBuff (x,y) = 1.0, frameBuff (x,y) =bgColor
●
Process each polygon in a scene, one at a time
– For each projected (x,y) pixel position of a polygon,
calculate the depth z.
– If z < depthBuff (x,y), compute the surface color at
that position and set
depthBuff (x,y) = z, frameBuff (x,y) = surfCol (x,y)
Calculating depth values efficiently
●
We know the depth values at the vertices.
How can we calculate the depth at any other
point on the surface of the polygon.
●
Using the polygon surface equation:
C
DByAx
z
−−−
=
Calculating depth values efficiently
●
For any scan line adjacent horizontal x
positions or vertical y positions differ by 1
unit.
●
The depth value of the next position (x+1,y)
on the scan line can be obtained using
C
A
z
C
DByxA
z
−=
−−+−
=′
)1(
Calculating depth values efficiently
●
For adjacent scan-lines we can compute the
x value using the slope of the projected line
and the previous x value.
C
BmA
z
m
xx
+
+=′⇒
−=′
/
z
1
Depth-Buffer Method
●
Is able to handle cases such as
View from the
Right-side
Z-Buffer and Transparency
●
We may want to render transparent surfaces (alpha ≠1)
with a z-buffer
●
However, we must render in back to front order
●
Otherwise, we would have to store at least the first
opaque polygon behind transparent one
Partially
transparent
Opaque
Opaque 1st
2nd
3rd
Front
1st or 2nd
1st or 2nd
Must recall this
color and depth
3rd: Need depth
of 1st and 2nd
OK. No Problem Problematic Ordering
A-Buffer Method
●
Extends the depth-buffer algorithm so that
each position in the buffer can reference a
linked list of surfaces.
●
More memory is required
●
However, we can correctly compose different
surface colors and handle transparent
surfaces.
A-Buffer Method
●
Each position in the A-buffer has two fields:
– a depth field
– surface data field which can be either surface
data or a pointer to a linked list of surfaces
that contribute to that pixel position
Scan Line Method
●
Extension of the scan-line algorithm for filling
polygon interiors
 For all polygons intersecting each scan line

Processed from left to right

Depth calculations for each overlapping
surface

The intensity of the nearest position is entered
into the refresh buffer
Tables for The Various Surfaces

Edge table
 Coordinate endpoints for each line
 Slope of each line
 Pointers into the polygon table
o
Identify the surfaces bounded by each line

Polygon table
 Coefficients of the plane equation for each surface
 Intensity information for the surfaces
 Pointers into the edge table
Active List & Flag

Active list
 Contain only edges across the current scan line
 Sorted in order of increasing x

Flag for each surface
 Indicate whether inside or outside of the surface
 At the leftmost boundary of a surface

The surface flag is turned on
 At the rightmost boundary of a surface

The surface flag is turned off

Contenu connexe

Tendances

Composite transformations
Composite transformationsComposite transformations
Composite transformations
Mohd Arif
 
Video display devices
Video display devicesVideo display devices
Video display devices
Mohd Arif
 
Graphic hardware and software
Graphic hardware and softwareGraphic hardware and software
Graphic hardware and software
rafhat
 

Tendances (20)

3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer Graphics - clipping
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Unit 3
Unit 3Unit 3
Unit 3
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
Hidden surface removal algorithm
Hidden surface removal algorithmHidden surface removal algorithm
Hidden surface removal algorithm
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer Graphics
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
Clipping
ClippingClipping
Clipping
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
 
Computer graphics chapter 4
Computer graphics chapter 4Computer graphics chapter 4
Computer graphics chapter 4
 
Computer Graphics: Visible surface detection methods
Computer Graphics: Visible surface detection methodsComputer Graphics: Visible surface detection methods
Computer Graphics: Visible surface detection methods
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
Windows to viewport transformation
Windows to viewport transformationWindows to viewport transformation
Windows to viewport transformation
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Graphic hardware and software
Graphic hardware and softwareGraphic hardware and software
Graphic hardware and software
 

Similaire à Visible surface detection in computer graphic

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
rajivagarwal23dei
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determination
Patel Punit
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
Ankit Garg
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Ayaelshiwi
 
Visible surface detection methods
Visible surface detection methodsVisible surface detection methods
Visible surface detection methods
KABILESH RAMAR
 
rural marketing ppt
rural marketing pptrural marketing ppt
rural marketing ppt
elaya1984
 
Visual surface detection i
Visual surface detection   iVisual surface detection   i
Visual surface detection i
elaya1984
 

Similaire à Visible surface detection in computer graphic (20)

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
 
visible surface detection
visible surface detectionvisible surface detection
visible surface detection
 
Visible surface identification
Visible surface identificationVisible surface identification
Visible surface identification
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determination
 
3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)3 d display-methods-in-computer-graphics(For DIU)
3 d display-methods-in-computer-graphics(For DIU)
 
Depth image recognition using isomorphic graph theory
Depth image recognition using isomorphic graph theoryDepth image recognition using isomorphic graph theory
Depth image recognition using isomorphic graph theory
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
UNIT-V
UNIT-VUNIT-V
UNIT-V
 
Graphics a buffer
Graphics a bufferGraphics a buffer
Graphics a buffer
 
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
 
regions
regionsregions
regions
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
Visible surface detection methods
Visible surface detection methodsVisible surface detection methods
Visible surface detection methods
 
Paris Master Class 2011 - 07 Dynamic Global Illumination
Paris Master Class 2011 - 07 Dynamic Global IlluminationParis Master Class 2011 - 07 Dynamic Global Illumination
Paris Master Class 2011 - 07 Dynamic Global Illumination
 
Single Image Depth Estimation using frequency domain analysis and Deep learning
Single Image Depth Estimation using frequency domain analysis and Deep learningSingle Image Depth Estimation using frequency domain analysis and Deep learning
Single Image Depth Estimation using frequency domain analysis and Deep learning
 
Hidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-bufferHidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-buffer
 
rural marketing ppt
rural marketing pptrural marketing ppt
rural marketing ppt
 
Visual surface detection i
Visual surface detection   iVisual surface detection   i
Visual surface detection i
 

Dernier

Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...
Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...
Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...
Angela Justice, PhD
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
ZurliaSoop
 
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...
only4webmaster01
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
Ken Fuller
 
➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men 🔝bhavnagar🔝 Esc...
➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men  🔝bhavnagar🔝   Esc...➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men  🔝bhavnagar🔝   Esc...
➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men 🔝bhavnagar🔝 Esc...
amitlee9823
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
 
➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men 🔝Satara🔝 Escorts S...
➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men  🔝Satara🔝   Escorts S...➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men  🔝Satara🔝   Escorts S...
➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men 🔝Satara🔝 Escorts S...
amitlee9823
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men 🔝Mirzapur🔝 Escor...
➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men  🔝Mirzapur🔝   Escor...➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men  🔝Mirzapur🔝   Escor...
➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men 🔝Mirzapur🔝 Escor...
amitlee9823
 
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night StandCall Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
poojakaurpk09
 
➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men 🔝Pallavaram🔝 E...
➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men  🔝Pallavaram🔝   E...➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men  🔝Pallavaram🔝   E...
➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men 🔝Pallavaram🔝 E...
amitlee9823
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
deejay178
 
Call Girls In Madiwala ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Madiwala ☎ 7737669865 🥵 Book Your One night StandCall Girls In Madiwala ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Madiwala ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Dernier (20)

Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...
Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...
Simple, 3-Step Strategy to Improve Your Executive Presence (Even if You Don't...
 
Presentation for the country presentation
Presentation for the country presentationPresentation for the country presentation
Presentation for the country presentation
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
 
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hosur Road Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 9155563397 👗 Top Class Call Girl Service Ban...
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
 
➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men 🔝bhavnagar🔝 Esc...
➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men  🔝bhavnagar🔝   Esc...➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men  🔝bhavnagar🔝   Esc...
➥🔝 7737669865 🔝▻ bhavnagar Call-girls in Women Seeking Men 🔝bhavnagar🔝 Esc...
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men 🔝Satara🔝 Escorts S...
➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men  🔝Satara🔝   Escorts S...➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men  🔝Satara🔝   Escorts S...
➥🔝 7737669865 🔝▻ Satara Call-girls in Women Seeking Men 🔝Satara🔝 Escorts S...
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men 🔝Mirzapur🔝 Escor...
➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men  🔝Mirzapur🔝   Escor...➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men  🔝Mirzapur🔝   Escor...
➥🔝 7737669865 🔝▻ Mirzapur Call-girls in Women Seeking Men 🔝Mirzapur🔝 Escor...
 
Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.
 
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night StandCall Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Devanahalli ☎ 7737669865 🥵 Book Your One night Stand
 
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
 
➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men 🔝Pallavaram🔝 E...
➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men  🔝Pallavaram🔝   E...➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men  🔝Pallavaram🔝   E...
➥🔝 7737669865 🔝▻ Pallavaram Call-girls in Women Seeking Men 🔝Pallavaram🔝 E...
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
 
Call Girls In Madiwala ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Madiwala ☎ 7737669865 🥵 Book Your One night StandCall Girls In Madiwala ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Madiwala ☎ 7737669865 🥵 Book Your One night Stand
 

Visible surface detection in computer graphic

  • 2. Visible Surface Detection ● Visible surface detection or hidden surface removal. ● Realistic scenes: closer objects occludes the others. ● Classification: – Object space methods – Image space methods
  • 3. Object Space Methods ● Algorithms to determine which parts of the shapes are to be rendered in 3D coordinates. ● Methods based on comparison of objects for their 3D positions and dimensions with respect to a viewing position. ● For N objects, may require N*N comparision operations. ● Efficient for small number of objects but difficult to implement. ● Depth sorting, area subdivision methods.
  • 4. Image Space Methods ● Based on the pixels to be drawn on 2D. Try to determine which object should contribute to that pixel. ● Running time complexity is the number of pixels times number of objects. ● Space complexity is two times the number of pixels: – One array of pixels for the frame buffer – One array of pixels for the depth buffer ● Coherence properties of surfaces can be used. ● Depth-buffer and ray casting methods.
  • 5. Depth Cueing ● Hidden surfaces are not removed but displayed with different effects such as intensity, color, or shadow for giving hint for third dimension of the object. ● Simplest solution: use different colors-intensities based on the dimensions of the shapes.
  • 6. Back-Face Detection ● Back-face detection of 3D polygon surface is easy ● Recall the polygon surface equation: ● We need to also consider the viewing direction when determining whether a surface is back-face or front-face. ● The normal of the surface is given by: 0<+++ DCzByAx ),,( CBA=N
  • 7. Back-Face Detection ● A polygon surface is a back face if: ● However, remember that after application of the viewing transformation we are looking down the negative z-axis. Therefore a polygon is a back face if: 0view >⋅NV 0ifor 0)1,0,0( < >⋅− C N
  • 8. Back-Face Detection ● We will also be unable to see surfaces with C=0. Therefore, we can identify a polygon surface as a back-face if: 0≤C
  • 9. Back-Face Detection ● Back-face detection can identify all the hidden surfaces in a scene that contain non- overlapping convex polyhedra. ● But we have to apply more tests that contain overlapping objects along the line of sight to determine which objects obscure which objects.
  • 10. Depth-Buffer Method ● Also known as z-buffer method. ● It is an image space approach – Each surface is processed separately one pixel position at a time across the surface – The depth values for a pixel are compared and the closest (smallest z) surface determines the color to be displayed in the frame buffer. – Applied very efficiently on polygon surfaces – Surfaces are processed in any order
  • 12. Depth-Buffer Method ● Two buffers are used – Frame Buffer – Depth Buffer ● The z-coordinates (depth values) are usually normalized to the range [0,1]
  • 13. Depth-Buffer Algorithm ● Initialize the depth buffer and frame buffer so that for all buffer positions (x,y), depthBuff (x,y) = 1.0, frameBuff (x,y) =bgColor ● Process each polygon in a scene, one at a time – For each projected (x,y) pixel position of a polygon, calculate the depth z. – If z < depthBuff (x,y), compute the surface color at that position and set depthBuff (x,y) = z, frameBuff (x,y) = surfCol (x,y)
  • 14. Calculating depth values efficiently ● We know the depth values at the vertices. How can we calculate the depth at any other point on the surface of the polygon. ● Using the polygon surface equation: C DByAx z −−− =
  • 15. Calculating depth values efficiently ● For any scan line adjacent horizontal x positions or vertical y positions differ by 1 unit. ● The depth value of the next position (x+1,y) on the scan line can be obtained using C A z C DByxA z −= −−+− =′ )1(
  • 16. Calculating depth values efficiently ● For adjacent scan-lines we can compute the x value using the slope of the projected line and the previous x value. C BmA z m xx + +=′⇒ −=′ / z 1
  • 17. Depth-Buffer Method ● Is able to handle cases such as View from the Right-side
  • 18. Z-Buffer and Transparency ● We may want to render transparent surfaces (alpha ≠1) with a z-buffer ● However, we must render in back to front order ● Otherwise, we would have to store at least the first opaque polygon behind transparent one Partially transparent Opaque Opaque 1st 2nd 3rd Front 1st or 2nd 1st or 2nd Must recall this color and depth 3rd: Need depth of 1st and 2nd OK. No Problem Problematic Ordering
  • 19. A-Buffer Method ● Extends the depth-buffer algorithm so that each position in the buffer can reference a linked list of surfaces. ● More memory is required ● However, we can correctly compose different surface colors and handle transparent surfaces.
  • 20. A-Buffer Method ● Each position in the A-buffer has two fields: – a depth field – surface data field which can be either surface data or a pointer to a linked list of surfaces that contribute to that pixel position
  • 21. Scan Line Method ● Extension of the scan-line algorithm for filling polygon interiors  For all polygons intersecting each scan line  Processed from left to right  Depth calculations for each overlapping surface  The intensity of the nearest position is entered into the refresh buffer
  • 22. Tables for The Various Surfaces  Edge table  Coordinate endpoints for each line  Slope of each line  Pointers into the polygon table o Identify the surfaces bounded by each line  Polygon table  Coefficients of the plane equation for each surface  Intensity information for the surfaces  Pointers into the edge table
  • 23. Active List & Flag  Active list  Contain only edges across the current scan line  Sorted in order of increasing x  Flag for each surface  Indicate whether inside or outside of the surface  At the leftmost boundary of a surface  The surface flag is turned on  At the rightmost boundary of a surface  The surface flag is turned off