1 / 31

Viewing - PowerPoint PPT Presentation

Viewing. The Camera and Projection. Gail Carmichael ([email protected]). The Goal. Understand the process of getting from 3D line segments to images of these lines on the screen. Canonical View Volume. Windowing transform brings points to pixels: M W. Canonical View Volume. =. M w.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

PowerPoint Slideshow about ' Viewing' - fell

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Viewing

The Camera and Projection

Gail Carmichael ([email protected])

Understand the process of getting from 3D line segments to images of these lines on the screen.

Windowing transform brings points to pixels: MW

Orthographic

Perspective

Move to

Origin

Scale

World to Canonical Coordinates

World to Canonical Coordinates

Mo=Mw MscaleMmove_to_origin

= Mo

Top of cameragoes this way

Camera is looking this way

Camera is centered here

w = - (g / ||g||)

u = (t × w) / || t × w ||

v = w × u

p = (xp,yp) ≡ o + xpx + ypy

p = (up,vp) ≡ e + upu + vpv

p = (xp,yp) ≡ o + xpx + ypy

p = (up,vp) ≡ e + upu + vpv

p = (xp,yp) ≡ o + xpx + ypy

p = (up,vp) ≡ e + upu + vpv

?

?

=

p = (xp,yp) ≡ o + xpx + ypy

p = (up,vp) ≡ e + upu + vpv

=

ys= y(d/z)

Everything up until now used the more common right-hand coordinate system.

Direct3D uses the left-hand coordinate system.

See:http://msdn.microsoft.com/en-us/library/windows/desktop/bb204853%28v=vs.85%29.aspx