Skip to toolbar
3.73 out of 5
3.73
62 reviews on Udemy

OpenGL and GLSL fundamentals with C++ (practical course)

Master the OpenGL and GLSL shading language - by writing code! Illustrated theory and practice (from basics to advanced)
Instructor:
Serhii K
2,379 students enrolled
English
Learn OpenGL and GLSL
Explore the modern rendering pipeline and shaders
Feed the vertex data - to buffers (VBO) and setup the buffer formats
Play with Shaders and GLSL
Make fun procedural computer graphics
Learn 3D transformations: rotation, scale and perspective projection
Load and draw textures (sprites)
Render the 3D geometry

Welcome to the OpenGL, GLSL and computer graphics course!

It is practical and illustrated program, designed to give you a visual intuition and practical skills to program computer graphics using OpenGL, GLSL and C ++

It is raw concentrated squeeze of OpenGL and GLSL knowledge (no “water”! no long talks that make you fall asleep)

The course is designed to start from fundamentals – and move to advanced topics like shaders, matrices, transformations, GLSL language, raster effects, texturing and shading.

In fact, the course is very easy to master. Because it is practical, visually illustrated and has code samples and live coding sessions.

It’s created to help you develop the visual intuition about 3D programming models (so I developed some beautiful illustrations and   visualizations – just to show you how things work “under the hood”)

It will help you to build the proper mental models, patterns, and coding skills – to grasp the underlying concepts and internal elegancy of OpenGL machinery, as well as 3D math (because they’re tricky)

There are live coding sessions and you get the full access to the source code

The course covers all important topics of modern OpenGL, such as:

– geometry, and buffers, VBOs and VAOs

– transformations and matrices, matrix hierarchy

– shaders and GLSL

– procedural art (and GLSL shaders-generated images)

– texturing

So feel free to explore it and I hope you’ll enjoy it just as I did during its creation

OpenGL basics

1
Computer graphics 101 and course introduction

Welcome to the OpenGL and computer graphics course.

The world of computer graphics is amazing! During this course you'll learn how to use modern OpenGL API and render beautiful 2d and 3d images.

This lecture is 101 (introduction) to the fundamental concepts of computer graphics

and typical problems like:

- drawing the basic shapes (circles, triangles)

- rasterizaton

- basic rendering algorithms

- the essence of the CG images

2
Intro to the OpenGL API

What is OpenGL?

It is a "state machine" that can be set up to perform rendering

Lets dive into the fundamentals of OpenGL machinery. Actually its easy to get the basic idea - OpenGL is a "server" and you apply C-function calls (as a "client") to "access" and "modify" its state. To setup the scene and the OpenGL renders it

Also in this lecture:

- the "phototable" metaphor

- feeding the OpenGL with the geometry (vertices)

- introduction to shaders

- the "rendering pipeline" concept

- OpenGL screen coordinates

3
MacOS setup of the GLFW helper library
4
Windows setup of the GLFW helper library
5
Basic GLFW & OpenGL app setup

Rendering and geometry

1
Drawing a circle procedurally
2
2D point rotation
3
More on 2D transformations
4
Stack of matrices

Shaders and GLSL

1
Intro to shaders
2
The rendering pipeline and shaders
3
GLSL, shaders attributes and geometry VBOs
4
Multiple VBOs and geometry, winding directions, etc

This is summary of the Section 3

I highlight some of the important concepts on the geometry (like CW and CCW directions of vertices, loading of multiple vertex buffer objects, setting up shader variables and varyings, etc)

Hope this help to summarize everything and build the general understanding of how the basic shaders machinery works

5
Vertex array objects (VAOs) and RAM buffers
6
Procedural graphics inside the shaders

How do the shadertoy.com masterpieces work?

They use full-screen rendering from within the shaders.

Lets explore the very basic principle to do so

7
Bonus: homogenous coordinates

Want to know more about 4D matrices and why we need them?

Let's explore the homogenous coordinates!

This is an elegant mathematical "trick" to make a uniform stack of 4D matrices - to represent not only rotation and scale but also translation (and concatenate the combined transformations easily!).

In real 2d and 3d games engines this ability gives us amazing boost in performance! Where each child sub-node has its own 4D node transformation defined relative to the parent node.

So we only apply the transformation once

ps. actually for the simplicity I explore 3D homogenous coordinate as we cannot think in 4D

but the same logic is applicable to 4D world as well! So just get the principal idea

Textures

1
Drawing a textured rectangle (sprite)
2
Loading a texture from the BMP file

3D rendering

1
Rotating the Cube

Lets enter the 3D space!

3D rendering has its own caveats and tricks.

So lets just start simple and build a rotating cube!

2
Adding the GLM math library

A small lesson of how to add the GLM math library.

It will be neccessary to use it to define the projection transformation later

3
Texturing the cube
4
Perspective projection
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
3.7
3.7 out of 5
62 Ratings

Detailed Rating

Stars 5
27
Stars 4
20
Stars 3
10
Stars 2
4
Stars 1
1
30-Day Money-Back Guarantee

Includes

2 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion
WP Twitter Auto Publish Powered By : XYZScripts.com