Real-Time Rendering (2nd Edition)

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

View Full Document Right Arrow Icon
1 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 # pass in the mvp matrix PARAM mvp[4] = { state.matrix.mvp }; # define the output OUTPUT oPos = result.position # output vertex # temporaries TEMP temp;
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern