mixed ie - 6.837 Introduction to Computer Graphics Fredo...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Transformations & Homogeneous Coordinates 6.837 Introduction to Computer Graphics Fredo Durand, MIT EECS
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6.837 Fall 06 – Durand 2 Administrivia Linear algebra review tomorrow Wednesday at 7:30 in 32-D507 You should be well started with assignment 1 (due next week)
Background image of page 2
6.837 Fall 06 – Durand 3 Eugene has setup a remote Athena Hi all, I've recently set up an Athena Linux machine for remote logins (so you folks can work at home). Before I continue though, let me just say that this is not an officially supported solution (which is why I'm sending it to 6837-discuss rather than 6837-students, because 6837-students is reserved for official announcements). This means: * Use the machine at your own risk. If you're working on it, and it happens to crash two hours before the assignment, it's not an excuse for lateness. * The official course staff answer to any setup questions will be: we encourage you to work in a cluster, since we don't have the resources to offer technical support on personal machines. With that stated, the machine is (drumroll): eraser.csail.mit.edu I've only enabled login access to all people that currently have turnin directories. And here are basic usage instructions: LINUX: If you have a Linux machine at home, you should be able to ssh -X into the machine and run applications remotely. I've tried this on several Linux machines, and it only worked on some of them, and that's all I can say about that. WINDOWS: MIT has XWin32 available from their software distrubtion page ( http://web.mit.edu/software/ ). You can use this to connect to eraser remotely and run applications. Note that you need to disable "Advanced Window Caching" in the configuration (otherwise, OpenGL windows will pop up blank). MAC: In theory, OS X allows you to run X applications remotely, but I've never tried it. See the following: http://www.apple.com/downloads/macosx/apple/x11formacosx.html Good luck. Eugene
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6.837 Fall 06 – Durand 4 Assignment 0 Fixed size array Kind of dirty, but OK for asst0 But make sure they are big enough!!!! Now you should use vectors (variable-size array) putting glBegin(GL_TRIANGLES)/glEnd() inside of the loop instead of outside is not optimal: slower drawing. ..
Background image of page 4
6.837 Fall 06 – Durand 5 Pinhole Camera
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6.837 Fall 06 – Durand 6 Synthetic Camera Viewing Modeling
Background image of page 6
6.837 Fall 06 – Durand 7 Modeling Problem Write an OpenGL procedure that draws a 2D rectangle with one corner at (lox, loy) and another at (hix, hiy).
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6.837 Fall 06 – Durand 8 Solution drawBox(lox, loy, hix, hiy) { glBegin(GL_QUADS); glVertex2f(lox, loy); glVertex2f(hix, loy); glVertex2f(hix, hiy); glVertex2f(lox, hiy); glEnd(); }
Background image of page 8
6.837 Fall 06 – Durand 9 Another Solution Assume drawUnitBox() procedure draws a unit box: This is a solution you should use in almost all graphics application: speed, modularity, flexibility, … drawBox(lox, loy, hix, hiy) { glTranslate(lox, loy); glScale(hix-lox, hiy-loy); drawUnitBox(); } (0,0) (1,1)
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6.837 Fall 06 – Durand
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 78

mixed ie - 6.837 Introduction to Computer Graphics Fredo...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online