Minecraft clone in Python tutorial EP2: Drawing stuff to the screen

preview_player
Показать описание
I encourage you to experiment with these vertex coordinates and indices to get a feel for how they relate to eachother!

One think I would like to quickly add that I forgot to mention in this video: I really appreciate your feedback! I don't know if I'm going too fast, too slow, brushing over stuff too much, ... you tell me! Have a nice day and see you next episode!

Further reading:

Chapters:

0:00 Intro
0:04 Small correction
0:16 GitHub repo
0:22 Ctypes
0:28 Creating the VAO
0:52 Creating the VBO
1:08 Creating the IBO
1:16 Explanation of indices
1:28 Drawing to the screen
1:30 Making the viewport resize
1:41 Outro
Рекомендации по теме
Комментарии
Автор

heads up for anyone that might fall for this trap: the above code is only rendering since pyglet is installing default shaders behind the scenes. If there are no shaders (which there isn't in this example), there won't be any rendering. Easy solution, just skip to the next episode for the shaders!
ps - awesome work on these videos!

phargobikcin
Автор

i did what you did, but it didn't show me a pink window, it showed me this (Traceback (most recent call last):
File "C:\Users\faris\Desktop\my minecraft\main.py", line 2, in <module>
import pyglet
ModuleNotFoundError: No module named 'pyglet') idk why, could you please me help how to solve it

F_A_R_I_S
Автор

I like how you are doing this video, but I cannot keep up with how fast you are going! It would be easier if you typed in the code at a typeable pace.

KindaMC
Автор

where did you learn all of this it is incredible

ArbreLuisant
Автор

Hey i mustve missed it but i cannot find what you defined "self" as, when i use "self" it is not defined

adagio
Автор

For some reason my window is black instead of pink, yet the gl.ClearColor has the correct input (1.0, 0.5, 1.0, 1.0).
The white rectangle isn't even centered, it isn't synced with the resizing of the window...

Marvelnerds-wvwv
Автор

can you please make a tutorial to add mobs in minecraft

Sp_Ibad
Автор

When i run the code the screen doesn't show up

fennecx
Автор

lowkey mine says Vertex_Positions is not defined

MyMMTopMusic
Автор

I have problem. The background is not pink, instead it was white. How to fix it?

fordgt
Автор

Help it says glGenVertexArrays is not exported by the available open gl driver. ARB_vertex_array_object is required for this functionality.

randomguy-gbge
join shbcf.ru