Рет қаралды 94,709
Join the Discord: / discord
Follow me on Twitch: / gameswthgabe
In this episode I go over textures in OpenGL. There are several different ideas related to textures. Some of the concepts I go over include things like mipmapping, anisotropic filtering, texture sample filtering and more. By the end of this episode, you should be able to create a small field of cubes if you've also completed the past few episodes :)
Challenges: github.com/codingminecraft/Mi...
My code: github.com/codingminecraft/Mi...
NOTE: This is super helpful to print out any OpenGL state errors. It catches a lot of simple bugs.
OpenGL Error Callback: www.khronos.org/opengl/wiki/O...
STB Image Library: github.com/nothings/stb/blob/...
glTexParameter: www.khronos.org/registry/Open...
glTexImage2D: www.khronos.org/registry/Open...
GLSL Sampler Types: www.khronos.org/opengl/wiki/S...
GLSL texture Functions: www.khronos.org/opengl/wiki/S...
--- Bookmarks ---
0:00 Intro
1:13 The Anatomy of a Cube
2:57 UVs (Concept)
6:16 Texture Slots (Concept)
6:59 Texture Use Cases
10:26 Texture Parameters
13:08 Loading an Image with STB (Code)
14:03 Generating a Texture (Code)
14:21 Setting Texture Parameters (Code)
16:14 Uploading Pixels to the GPU (Code)
18:25 Textures in a Shader (Code)
19:46 Texture Slots (Code)
21:48 Debugging
24:35 Challenges
--- Music ---
"Night Snow", by Asher Fulero (from KZfaq Studio Audio Library)
"The World's Fair", by Godmode (from KZfaq Studio Audio Library)
"Dolphin-esque", by Godmode (from KZfaq Studio Audio Library)
"No. 7 Alone With My Thoughts", by Esther Abrami (from KZfaq Studio Audio Library)
"Web Weaver's Dance", by Asher Fulero (from KZfaq Studio Audio Library)
"Bike Sharing to Paradise", by Dan Bodan (From KZfaq Studio Audio Library)
-- Other Credits --
Image of Ed Catmull: www.prhspeakers.com/speaker/e...
Ed Catmull's Paper: ia801307.us.archive.org/2/ite...
Arrows icons created by Creative Stall Premium - Flaticon: www.flaticon.com/free-icons/a...
---------------------------------------------------------------------
Website: ambrosiogabe.github.io/
Github: 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: www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): www.amazon.com/Game-Physics-C...
Game Physics (Ian Millington): www.amazon.com/Game-Physics-E...
Game Programming Patterns (Free): gameprogrammingpatterns.com/
My Recommended Beginning Game Programming Books:
JavaScript Game Design: www.apress.com/gp/book/978143...
My Recommended Java Books:
Data Structures/Algorithms: www.amazon.com/Data-Structure...
LWJGL (Free, but I haven't read this thoroughly): lwjglgamedev.gitbooks.io/3d-g...