Modern OpenGL programming in Python - part 18 - simple lighting

preview_player
Показать описание
In this video we are going to create a simple light, and move the light source from model space to world space.After that i am going to show you, how the lighting looks on a smooth shaded monkey head.

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

Thank you AtiByte for taking the time for creating this tutorial series, I've finally finished it.. However I am not finished with the 8 vertices texture challenge that I had set myself.
I will start your second series soon, I am going to play with the code I have to see what I can produce, I already have one idea if it goes to plan I'll make a short clip and upload it,

ProgrammingWithRook
Автор

This tutorial is a good example of how fast you can create or prototype things in Python. I'm used to C and C++. In python you can do all kinds of crazy hacks that is not possible in C/C++. Importlib also makes it super easy to import modules anywhere in the pythonpath dynamically making plugins so much easier to deal with.

SuperGrimmy
Автор

Why do you have to use rot_y in glUniformMatrix4fv(light_loc, 1, GL_FALSE, rot_y)? What if you have multiple objects with different rotations and you want your light source in one specific location?

computervisiondev
Автор

please create PyOpenGL tutorial with particles 🙏

Raflyalk
visit shbcf.ru