rendering
play

Rendering Fall 2016 - 591/691 Who am I? Allan Rocha Email: - PowerPoint PPT Presentation

Rendering Fall 2016 - 591/691 Who am I? Allan Rocha Email: rocha.allanc@gmail.com or acarocha@ucalgary.ca Subject: [CPSC591] Tutorial Page: http://pages.cpsc.ucalgary.ca/~acarocha/CPSC591/index.html Topics of Interest: Real-time Rendering


  1. Rendering Fall 2016 - 591/691

  2. Who am I? Allan Rocha Email: rocha.allanc@gmail.com or acarocha@ucalgary.ca Subject: [CPSC591] Tutorial Page: http://pages.cpsc.ucalgary.ca/~acarocha/CPSC591/index.html Topics of Interest: Real-time Rendering ● ● Non-photorealistic Rendering ● Scientific Visualization Illustrative Visualization ●

  3. What to render and how to render?

  4. Old OpenGL vs New OpenGL References: OpenGL Insights - Chapter One Opengl Super Bible Red Book OpenGL Anton's OpenGL 4 Tutorials

  5. OpenGL insights ● Chapter 1 ○ Teaching Computer Graphics Starting with Shader-Based OpenGL ● OpenGL Versions

  6. Hello World in OpenGL: Old Style

  7. Hello World in OpenGL: Old Style ● Major issues with this code ○ Use of immediate mode ■ callings between CPU vs GPU ○ Reliance on the fixed-function pipeline ■ complex geometry == slow rendering, why??? ○ Use of default values for state variables ■ multitude of state variables

  8. Simplified OpenGL pipeline - OLD vs NEW

  9. Simplified OpenGL pipeline - OLD vs NEW

  10. Programmable pipeline ● GLSL - OpenGL Shading Language ○ Glew library - http://glew.sourceforge.net/ ○ Similar to C/C++ ● Read, Compile, Link

  11. Hello World: New Style ● First application ○ Setup shaders ■ Init, compile, link ○ Sends data to the CPU to GPU ■ Immediate-mode programing (VAO and VBO) ○ Render the data on the GPU

  12. Hello World: New Style

  13. Hello World: New Style

  14. Hello World: New Style

Recommend


More recommend