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 ● ● Non-photorealistic Rendering ● Scientific Visualization Illustrative Visualization ●
What to render and how to render?
Old OpenGL vs New OpenGL References: OpenGL Insights - Chapter One Opengl Super Bible Red Book OpenGL Anton's OpenGL 4 Tutorials
OpenGL insights ● Chapter 1 ○ Teaching Computer Graphics Starting with Shader-Based OpenGL ● OpenGL Versions
Hello World in OpenGL: Old Style
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
Simplified OpenGL pipeline - OLD vs NEW
Simplified OpenGL pipeline - OLD vs NEW
Programmable pipeline ● GLSL - OpenGL Shading Language ○ Glew library - http://glew.sourceforge.net/ ○ Similar to C/C++ ● Read, Compile, Link
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
Hello World: New Style
Hello World: New Style
Hello World: New Style
Recommend
More recommend