Batch Rendering in LWJGL3 | Coding a 2D Game Engine in Java #11

Опубликовано: 05 Май 2020
на канале: GamesWithGabe
18,003
441

Join the Discord:   / discord  

I apologize in advance for this lengthy tutorial, unfortunately there is no easy way to create a batched renderer in 20 mintues, so this one is a bit long :)

In this tutorial, I go over how to create a 2D batched renderer, that is able to render thousands of sprites at 60 FPS. This will increase framerates from 1 FPS, to 60 FPS. What I go over, is how to use the game objects transform to create a set of vertices for every single quad inside the batch renderer, and then upload that vertex buffer to the GPU every frame.

Then, I go over how to create a Renderer class that finds a RenderBatch that has room for a quad, or creates a new RenderBatch if there is none, and then adds the quad to that RenderBatch. The renderer will also sort the batches and render them to the screen.

Source Code: https://github.com/codingminecraft/Ma...

Supplemental videos
===================
   • Batch Rendering - An Introduction  
   • Batch Rendering - Colors  
   • Batch Rendering - Textures  

---------------------------------------------------------------------
Website: https://ambrosiogabe.github.io/
Github: https://github.com/ambrosiogabe

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:
Game Engine Architecture: https://www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): https://www.amazon.com/Game-Physics-C...
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-E...
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/

My Recommended Beginning Game Programming Books:
JavaScript Game Design: https://www.apress.com/gp/book/978143...

My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structure...
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-g...

Outro Music: https://www.bensound.com/royalty-free...


Смотрите видео Batch Rendering in LWJGL3 | Coding a 2D Game Engine in Java #11 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь GamesWithGabe 05 Май 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 18,003 раз и оно понравилось 441 людям.