Rendering Multiple Objects 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 anyone who sees their FPS dropping drastically, check if you are instantiating, binding and set uniform of Texture INSIDE the while loop. That's the point: you have to move it outside, because you don't need to reload the texture source every frame and you also don't need to reset the uniform value every frame.

redsanso
Автор

I came from LearnOpenGL and I can't lie, your tutorials are way clearer and much neater. I love this channel so much, I feel like I understand what's actually going on behind all these crazy GL function calls, and how the library actually works <3

doctor_who
Автор

I definitely would like to see batch rendering.

Also, it turns out the labels you set for imGui are important. If they're the same, they will affect eachother's values, instead of just their own.

JorneDeSmedt
Автор

finaly i have what i need to build a game with the engine :) here is some movement for the first texture, it needs to be in the while loop:

if (glfwGetKey(windowE, GLFW_KEY_D) == GLFW_PRESS)
{
translationA = translationA + glm::vec3(10, 0, 0);
}

//Moves left
if (glfwGetKey(windowE, GLFW_KEY_A) == GLFW_PRESS)
{
translationA = translationA + glm::vec3(-10, 0, 0);
}

//Moves Up
if (glfwGetKey(windowE, GLFW_KEY_W) == GLFW_PRESS)
{
translationA = translationA + glm::vec3(0, 10, 0);
}

//Moves Down
if (glfwGetKey(windowE, GLFW_KEY_S) == GLFW_PRESS)
{
translationA = translationA + glm::vec3(0, -10, 0);
}

seidsvik
Автор

Another great OpenGL tutorial by the magnificent Cherno. Batch Rendering in Vid#28 after the (3) Test/Framework videos.

nox
Автор

Ironically, this is the first video I watched from the GL series!Fantastic job, and well explained!

ETXAlienRobot
Автор

Bro, this series is fckng amazing.
Love it from Brazil

SuperCacazinho
Автор

Batch rendering then materials please! Also, I would like to see a 3D or at least parallax type tutorial for the rest of this series, instead of 2D. Thanks for the awesome videos!

spikespaz
Автор

Nice Video I love it
Maybe a Video about Perspective Rendering

yannickmonjeamb
Автор

I also wonder if OpenGL material continues somehow inside the game engine series. I started the game engine series, reached the events episode and went back here to finish off this one first.

adamodimattia
Автор

If y’all want to see batch rendering, Cherno has a video on that in his Sparky game engine tutorial!

astronime
Автор

15:20
Tried to make a for-loop out of pure curiosity.
CPU is a Ryzen 7 3800X, GPU is an Nvidia GTX 1050 TI.
Looping 5000 times drops the FPS to about 20.
Looping 1500 keeps it just about steady on the 60 mark, occasionally drops a few lower.

I mean I don't see the point of rendering my company logo 5000 times, I'm not that much of an egomaniac, but it was interesting to see just how inefficient this would be.

The interesting part is that the FPS drops quite a bit lower at first and then jumps up by about 10 FPS to a stable point where I was giving those numbers earlier.

cyqry
Автор

Love your videos! I'd really like to see how you can calculate indices from an array of vertices i.e. when read in from an obj file. Keep up the good work!!

rob-
Автор

Can't wait for batch rendering and materials!

haykav
Автор

Instanced rendering is my favorite, I hope he covers that so I can refine my knowledge of it.

jamesmnguyen
Автор

I started learning OpenGL because I had trouble Minecraft forge modding and I can feel that I'm getting closer to solving it

tmvkrpxl
Автор

5 years later here I am wishing he'd have shown how to feed two separate vertex buffers to the shader...

Wanderlust
Автор

Very helpful thank you
I'm trying to render a cube and cylinder separately and couldnt figure out why the MVP changed both at same time

RobertMurphy-wmge
Автор

So at first my sliders were moving both objects at the same time despite the translationA or translationB variables being where they needed to be to keep them separate but it turns out because I didn't label each Slider differently ("Translation A" and "Translation B") that's why they didn't work right. It's really weird that a char[] made it not work properly.

dagger
Автор

haha that's so funny, I don't know why I struggled so much with this when trying to think of it myself, it makes a lot of sense

maxthomarino
welcome to shbcf.ru