Basic Texture Mapping // OpenGL Beginners Series
In this video we will go over the details of getting basic texture mapping working in OpenGL using C++.
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at https://youtube.com/playlist?list=PLA0dXqQjCx0S04ntJKUftl6OaOgsiwHjA
Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.
Link to source: https://github.com/emeiri/ogldev/blob/master/tutorial16_youtube
If you want to get the same version that was used in the video checkout the tag TUT_16_TEX_MAP.
OpenGL 4.6 specification: https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf
Get the STB image header: https://github.com/nothings/stb/blob/master/stb_image.h
Timecodes:
0:00 Intro
0:40 Challenges
1:02 Texture coordinates
2:00 Number of texture axes
2:32 Naming the texture axes
2:58 Minification and magnification
4:53 Filter types
6:08 Texture mapping arch in OpenGL
8:28 Texture mapping TODO list
10:34 Star of code review
10:37 Getting STB image
12:18 The Texture class
13:44 Loading the texture
17:22 Setting texture state
18:11 The bind function of the texture class
18:36 Shader changes
19:42 Handling texture coordinates
20:17 Misc changes to app code
20:55 Changes to the render loop
21:28 Build and run
21:34 Conclusion
Feel free to comment below.
Email: [email protected]
Facebook: https://www.facebook.com/Ogldev-188319114585587
GIthub: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon: https://www.patreon.com/ogldev
My gear (Amazon affiliate links):
Camera - Canon EOS M50: https://amzn.to/3duVIOh
Camera mic - Rode Videomic: https://amzn.to/3dsGVDs
Desktop mic - Rode NT-USB-Mini: https://amzn.to/3giMoif
Credits:
Music: "Smile" from https://bensound.com
Images:
http://wiki.polycount.com/w/images/7/73/Cubemap_Sorsele_humus.jpg
https://opengameart.org/node/31073
https://docs.blender.org/manual/en/latest/_images/editors_uv_introduction_main.png
https://opengameart.org/sites/default/files/oga-textures/31071/bark.png
https://upload.wikimedia.org/wikipedia/commons/6/6f/Lubang_Jeriji_Sal%C3%A9h_cave_painting_of_Bull.jpg
https://wallpaperaccess.com/pixar-logo
https://commons.wikimedia.org/wiki/File:Texture_mapping_demonstration_animation.gif
https://en.wikipedia.org/wiki/Edwin_Catmul #/media/File:VES_Awards_89_cropped.jpg
http://static1.1.sqspcdn.com/static/f/552576/6419248/1270507173137/catmull_thesis.pdf?token=efmbu8CsQ8zy5dK3qAcHxW%2BuGcU%3D
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Basic Texture Mapping // OpenGL Beginners Series», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.