Python OpenGL and PyOpenGL - s02e02 - draw multiple cubes

preview_player
Показать описание
Let's draw multiple cubes with different transformations, and apply to them three different textures.

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

Hi, I am new to OpenGL and I've got a question refering to lines 156 to 171 in your GitHub file. glUniformMatrix4fv is called once for each cube. The only difference between the calls is the argument rotX / rotY / rotZ. The only information those arguments yield are the position of the cube which is meant to be rotated, and a rotation angle and axis. How come that if we call glDrawElements, only the vertices of that current cube are affected and rotated? Why do the other cubes stay unaffected from those rotations or any other weird stuff? Where lies the information that only that 8 particular vertices should be rotated although we just change this single model matrix everytime and glDrawElements draws all our triangles again everytime? Thanks

Bretinator
Автор

Hey, i was curious about a lot of questions that python can do . Where can i can i ask you ? on here ?

ogkinglyle
Автор

I feel like some videos are missing between season 1 and 2, you know use a texture loader you didn't have at the end of season 1

namenloss
visit shbcf.ru