1 / 8

y /h = d/z

d. y. y /h = d/z. point in screen space. y = h*d/z. h. point in camera space. z. y world. x world , y world , z world. translate. project. x camera , y camera , z camera. x proj , y proj. scale. x screen , y screen. x camera = x world – cameraX. translate.

miyoko
Download Presentation

y /h = d/z

An Image/Link below is provided (as is) to download presentation 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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. d y y/h = d/z point in screen space y = h*d/z h point in camera space z

  2. yworld

  3. xworld, yworld, zworld translate project xcamera, ycamera, zcamera xproj, yproj scale xscreen, yscreen

  4. xcamera = xworld – cameraX translate ycamera = yworld – cameraY zcamera = zworld – cameraZ xproj = xcamera * d/zcamera project yproj = ycamera * d/zcamera xscreen = (w/2) + (w/2)*xproj scale yscreen = (h/2) – (h/2)*yproj … where (w,h) = canvas width and height

  5. (0,0) canvas +ve (w,h) (0,1) +ve (-1,0) (1,0) (0,0) projection plane (0, -1)

  6. tan(fov/2) = 1/d fov⁰ d d = 1/tan(fov/2) 1

  7. roadWidth segmentLength rumbleLength (# segments) p2 p1

  8. curves accumulate curve curve curve

More Related