DOC PREVIEW
MIT 6 111 - Real-time Lightsaber Generator

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Real-time Lightsaber Generator•Goals: – Generate live video of Star Wars lightsaber beam – Demonstrate realistic behavior in a duel•Inputs:– Inertial sensors in lightsaber prop–NTSC video• Output: VGA display• Design challenges:– Obtaining accurate, uncorrupted sensor data– Tracking the lightsaber pose– Properly accounting for perspective in the shape of the lightsaber• Cool, optional features:– Stereo sound with Doppler effect– Glow and motion blur– Multiple lightsabersJoyce Chen, Michael Price, Hui Ying WenBlock DiagramInertial Sensors• Accelerometer: Analog Devices ADXL213– Low Cost 1.2g Dual Axis Accelerometer Measure both dynamic and static acceleration– Use Cx and Cy capacitors to select bandwidth.– Output typically has bandwidth of 2.5 kHz• Gyroscope: Analog Devices ADIS16100– ±300°/sec Yaw Rate Gyro with SPI Interface– z-axis rate detection : positive output voltage for clockwise rotation about axis.Joyce ChenVideo Input & Marker Detection• Staff video module with ZBT video memory• Marker detected by colour• Position of marker filtered for noise and returned to Video Output moduleJoyce ChenPerspective transformation• A cylindrical lightsaber beam is: – Parallelogram if viewed in an orthographic projection– Trapezoidal in reality (each of 4 corners must be treated separately)•Problems– Rotate and translate to match real position and orientation of lightsaber– Convert a field-of-view volume (global coordinates) into a flat rectangle (screen coordinates)Michael PriceMath module• Numerical format– 18 bit, fixed point, two’s complement– Range: -8 to 8 meters– Resolution: 0.25 mm– Homogeneous coordinates [x, y, z, w]• Parameters and inputs– Measured angles [phi, theta]– Measured position of marker on screen– Lightsaber coordinates (X_local): 4 points at corners– Boundaries of view volume (assume symmetry to reduce number of variables)• Method: 3 phases – matrix storage in RAM– Generate matrices based on sensor input• Rotation/translation (R) and perspective projection (P)– Multiply: X_global = R * X_local– Multiply: X_screen = P * X_globalModule connectionsMichael PriceBlock diagram (not shown)Dependence on intermediate RAMsUpdate signal triggers sequence of matrix calculationsOther modules access screen coordinates from memoryVideo OutputHui Ying WenInputs- hcount, vcount, hsync, vsync- From Video Input module: saber_xbase [10:0], saber_ybase [9:0]- From Math module: x and y values of 4 points of saberOutputs- pixel (RGB, to monitor)Description- Sprite module: draws light-saber on top of camera input- Tests whether current hcount, vcount inputs fit within four boundaries of saber- Complexity: multiplication and division on fixed-point values of 18-bit precision. No significant RAM memory.- Also handles video output from ZBT memory, Y'CbCr to RGB conversion- Extras: shading, blurTimelineNov. 27 (after Thanksgiving Break)- already have operational individual modules- start interfacing between modulesDec. 4- have handle built and interfacedDec. 11- presentation and


View Full Document

MIT 6 111 - Real-time Lightsaber Generator

Documents in this Course
Verilog

Verilog

21 pages

Video

Video

28 pages

Bass Hero

Bass Hero

17 pages

Deep 3D

Deep 3D

12 pages

SERPENT

SERPENT

8 pages

Vertex

Vertex

92 pages

Vertex

Vertex

4 pages

Snapshot

Snapshot

15 pages

Memories

Memories

42 pages

Deep3D

Deep3D

60 pages

Design

Design

2 pages

Frogger

Frogger

11 pages

SkiFree

SkiFree

81 pages

Vertex

Vertex

10 pages

EXPRESS

EXPRESS

2 pages

Labyrinth

Labyrinth

81 pages

Load more
Download Real-time Lightsaber Generator
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Real-time Lightsaber Generator and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Real-time Lightsaber Generator 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?