Wireframe Simulator - PowerPoint PPT Presentation

About This Presentation
Title:

Wireframe Simulator

Description:

... http://www1.istockphoto.com/file_thumbview_approve/235138/2 ... Perform grungy math on each of the vertices: Rotating left/right ... – PowerPoint PPT presentation

Number of Views:40
Avg rating:3.0/5.0
Slides: 7
Provided by: roo46
Learn more at: http://web.mit.edu
Category:

less

Transcript and Presenter's Notes

Title: Wireframe Simulator


1
Wireframe Simulator
  • Sarah Cheng
  • 6.111
  • Spring 2007

2
Project Functionality
  • Read user-specified 3D coordinates from ROM
  • Transform (rotate, pan, zoom) coordinates if
    respective buttons are pressed
  • Generate wireframe model on-the-fly

Source http//www1.istockphoto.com/file_thumbview
_approve/235138/2/istockphoto_235138_car_frontend_
wireframe.jpg
3
Transformations
  • Perform grungy math on each of the vertices
  • Rotating left/right
  • (x, y, z) (x cos ? y sin ?, x sin ?
    y cos ?, z)
  • Rotating up/down
  • (x, y, z) (x cos f z sin f, y, x
    sin f z cos f)
  • Panning left/right
  • (x, y, z) (x a, y, z)
  • Panning up/down
  • (x, y, z) (x, y, z a)
  • Zooming in/out
  • (x, y, z) (x, y a, z)

4
Perspective Projection
viewer
screen
object
Projected coordinates (xp1, yp1) onto screen z
a (zv - a) / (zv - z1) (xv - xp1) / (xv - x1)
(yv - yp1) / (yv - y1) Solve for xp1, yp1!
(x1, y1, z1), (x2, y2, z2),
xv, yv, zv
z a
5
Implementation
6
Display Module
Write a Comment
User Comments (0)
About PowerShow.com