Lecture 7:

Real-Time Rendering (2nd Edition)

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 ECE 595 / CS 491 / CS 591 Real-Time Rendering & Graphics Hardware Pradeep Sen Advanced Graphics Lab Class 7 February 7, 2007 Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 Announcements Intro project due Monday Feb 12 by midnight Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 Last time Graphics engines Real-time graphics APIs (OpenGL) Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 Today More on vertex and fragment programs Live coding! DirectX Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 Vertex program Extension GL_ARB_vertex_program Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 Simple vertex program !!ARBvp1.0 ATTRIB v = vertex.position; # vertex position # pass in the mvp matrix PARAM mvp[4] = { state.matrix.mvp }; # define the output OUTPUT oPos = result.position # output vertex # transform the vertex v by the mvp matrix DP4 oPos.x, mvp[0], v; DP4 oPos.y, mvp[1], v; DP4 oPos.z, mvp[2], v; DP4 oPos.w, mvp[3], v; END Real-time Rendering & Graphics Hardware Pradeep Sen Class 7 February 7, 2007 Simple vertex program !!ARBvp1.0 ATTRIB v = vertex.position; # vertex position= vertex....
View Full Document

Page1 / 3

Lecture 7: - 1 Real-time Rendering & Graphics...

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

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