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

rendering
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Rendering

Fall 2016 - 591/691

slide-2
SLIDE 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
slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10

What to render and how to render?

slide-11
SLIDE 11

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

slide-12
SLIDE 12

OpenGL insights

  • Chapter 1

○ Teaching Computer Graphics Starting with Shader-Based OpenGL

  • OpenGL Versions
slide-13
SLIDE 13

Hello World in OpenGL: Old Style

slide-14
SLIDE 14

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

slide-15
SLIDE 15

Simplified OpenGL pipeline - OLD vs NEW

slide-16
SLIDE 16

Simplified OpenGL pipeline - OLD vs NEW

slide-17
SLIDE 17

Programmable pipeline

  • GLSL - OpenGL Shading Language

○ Glew library - http://glew.sourceforge.net/ ○ Similar to C/C++

  • Read, Compile, Link
slide-18
SLIDE 18

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

slide-19
SLIDE 19

Hello World: New Style

slide-20
SLIDE 20

Hello World: New Style

slide-21
SLIDE 21

Hello World: New Style