OpenGL 3D Game Tutorial 2: VAOs and VBOs

preview_player
Показать описание
LWJGL tutorial series on how to create a 3D Java game with OpenGL!

This week we learn how to render a model using VAOs and VBOs.

Here are the vertices that we used:

float[] vertices = {
-0.5f, 0.5f, 0f,
-0.5f, -0.5f, 0f,
0.5f, -0.5f, 0f,
0.5f, -0.5f, 0f,
0.5f, 0.5f, 0f,
-0.5f, 0.5f, 0f
};

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

Took you 30 seconds to clearly explain VAOs and VBOs where all other tutorials I found on the subject either did not make sense or did not even bother to explain.

Thank you so much.

Stenodyon
Автор

Even in 2021 these tutorials are still a treasure! Thanks for making them and helping me understand OpenGL!!

OneEgg
Автор

Finally, someone who explains vbos and writes one completely from scratch. Thanks

NterpriseCEO
Автор

Friend. do not delete the video, I'll soon learn English, and finally I'll take a look at your lessons. Thank you

snaim
Автор

After 5 days sitting at the computer screen programming non-sense I finally managed to display one triangle on the screen. I am so happy and also very tired right now. THANK YOU for this tutorial series. I managed to get it working in C# after a lot of google searching and hours of access violation exceptions that occoured all over the place. It was crazy! Glad that that is over and I can finally move on :D

Jet-Pack
Автор

I like it at 2:42 you just drop it and goes "let's get coding" xD Great work

azlego
Автор

Do not worry if your quad is black and not white - we haven't specified the colour of the quad at this stage so it simply depends on your system's defaults!

ThinMatrix
Автор

If you're getting a function not supported exception this might be because of an error I made in the first tutorial! When setting the ContextAttribs in the DisplayManager class it should all be done in one line:

ContextAttribs attribs = new ContextAttribs(3,

If you get a long "Access Violation Error" then make sure that you created the display before doing anything else in the main method. Don't initialize the RawModel before creating the display!

ThinMatrix
Автор

For the folks on Linux the quad will also not render till episode five but just keep going on.

mkukri
Автор

The graphic in the beginning, with the VAO table made this really easy! Thanks!

EivindDahl
Автор

This is literally the best explanation on 3D rendering I have ever heard. Thanks for this!

polymetric
Автор

My hero <3






I found this video after days of unsuccessful trial and error

カラスKarasu
Автор

Just passing here to write how incredible knowledge this boy has about the subject. Soon I'll be working with this tool. Because as a Java programmer I want to learn how to work with all the tools. Hugs from Brazil!

matheustavares
Автор

Shit escalated quickly, and all we did was render a rectangle.

HeshComps
Автор

This is probably one of the best, simplest and easy to understand description of what a VAO and VBO is that I have seen. Well done.

NeilRoy
Автор

2:22 to 2:49:

We're going to be rendering the simplest of 3D models: a rectangle, which is made of just 2 triangles, and we're going to be taking the vertex position or data of those triangles, creating a VBO, storing the data into the VBO, creating a VAO, storing the VBO data into one of the attribute lists of the VAO, and then we'll use the ID of the VAO to tell OpenGL to render the VAO we desire let's get coding.

So you were really excited huh?

P.S. I really like your videos though.

have
Автор

I know I'm late but just started going through this playlist and it's great. You're very good at explaining things clearly and without taking ages! Thanks dude.

peterhall
Автор

Not using java but VAOs and VBOs explanation helped me a bunch. Thanks!

dn
Автор

Oh my god, this is the best explanation of VAO vs VBO ever. Read tons of books and tutorials and never understood what they were and the difference, now i understand it.

AkimboFennec
Автор

LOVE YOUR TUTORIALS: i never comment on videos hardly ever but you have dev blogs your entertaining you have helped me out a ton with my game making sure its only a 2d rectangle but your epic

nerddivision