Maths in OpenGL

preview_player
Показать описание


Thank you to the following Patreon supporters:
- Dominic Pace
- Kevin Gregory Agwaze
- Sébastien Bervoets
- Tobias Humig
- Peter Siegmund
- Kerem Demirer

Gear I use:
-----------------

Рекомендации по теме
Комментарии
Автор

For those of you using the newest version of glm, it has a file with a new feature (modules) from a more recent version of C++ that is not supported by the compiler (at least for me). To fix it, exclude glm.cppm from the project, because we are using glm.hpp instead.

Arcangel
Автор

I'm really glad you're covering maths for computer graphics. Please do more. If anyone is interested in visualizing vector and matrix maths I recommend watching 3blue1browns essence of linear algebra playlist. Its so good for understanding what the maths is actually doing.

joshuageorge
Автор

I love when you slam the enter key. It's so satisfying.

gameking
Автор

My 3-year old son asked: "Is that guy at our grand mom's?"

mikamulperi
Автор

Cherno, thank you so much! You are really making game programming in general so much easier because you really take the time and explain the "stuff"/concepts so well. It can be really seen that you are putting in a lot of effort. Keep up the great work and don't quit! 💯💫

aljosaskorjanc
Автор

If anyone is getting some errors related to glm's glm.cppm file and exports (C3378, C2230), just go ahead and exclude that .cppm file from your project. I don't believe it's necessary for this.

Mortalitor
Автор

6:44 "header only library" awesome 😎

GmanGavin
Автор

These overview videos are great, it gives us a bit of context before we dive into the details. I think people who don't like them are mostly just impatient for the next steps :)

Max-wkcg
Автор

If you get a black screen double-check this line "glm::mat4 proj = glm::ortho(-2.0f, 2.0f, -1.5f, 1.5f, -1.0f, 1.0f);" I accidentally had 02.0f instead of -2.0f. Finger slipped and hit 0 instead of -. It happens. :\

vertigo
Автор

@TheChernoProject
Use more of these Power Point Presentations, they are extremely helpful for us!!!!

nikoszervo
Автор

A 'position' is still a vector in the traditional sense! It is a direction and magnitude needed to get to the position from the origin!

headshiphero
Автор

Can you do a project on ray tracing and ray casting

peteoo
Автор

I think most of us can acess this technical details in books, what we need is your own quick explanations wich is what you are doing and your style of doing code! Maybe more details in things more complex like Shadows, Scattering, GI but for now keep advancing, im looking foward to OBJ readers and the 3d part!

mandre
Автор

Just in case you have the same error as me, make sure you use mat4 in the declaration of the uniform "u_MVP", insted of vec4. I made that mistake and after hours of searching y saw that, I just keep having an GL_INVALID_OPERATION in the glUniformMatrix4fv on the Shader class.
Hope I'm helping someone :)

diegoarmandocastellanosbea
Автор

As a freshman in the U.S, you learn quadratics, which are equations relating to what you might see in tv show business meetings, so stonks

featherless
Автор

Last semester I did a course in computer graphics, and watching your series on opengl while learning it also in class was amazing!
I would love if you would really start the game engine series.. :)

msme
Автор

GLM the easy way on Arch linux:
yay -Syu glm
#include <glm/glm.hpp>
#include

donfreiday
Автор

Weird one, but if anyone is having trouble including the glm.cpp headers in VS2019, delete 'glm/' from the start of the includes. Fixed it for me anyways.

miles
Автор

The aspect ratio thing with matrices works, nice! I hope to eventually figure out why only bottom left corner of any image i give it, gets shown on the window! Well I did not think about changing the 1st and 2nd column coordinates of positions, but I tried it since you suggested it at the end of this video. I was changing just the 3rd and 4th columns (with no result, only left bottom corner of any pic showing). But now I changed 1st and 2nd columns of positions array and I can see entire picture. So I completely misunderstood how the positions array works. Practically I played with values on column 1 and 2 (3, and 4 don't change anything for me), trial and error, and got to the array that works for me:

float positions[] = {
-0.0f, -0.0f, 0.0f, 0.0f, //0
1.0f, -0.0f, 1.0f, 0.0f, //1
1.0f, 1.0f, 1.0f, 1.0f, //2
-0.0f, 1.0f, 0.0f, 1.0f //3
};

Also when setting glm::ortho, it depends on how we want the aspect ratio (depends on the image aspect ratio), right?

emanuelkokovics
Автор

I made sure to extra confuse myself by getting the projection thing from the width and height of the window

taurasandaras