OpenGL [Episode 31] Building The View Matrix with glm::lookat (and moving forward and backwards)

  Рет қаралды 1,094

Mike Shah

Mike Shah

7 ай бұрын

►Full OpenGL Series Playlist: • Introduction to OpenGL
►Find full courses on: courses.mshah.io/
►Join as member to get perks: / @mikeshah
►Lesson Description: In this lesson we introduce a small abstraction for creating a camera using glm's lookAt matrix. We then implement the ability to move forward and backwards in our camera. I leave you at a cliff hanger to think about how to otherwise implement first person camera.
►Please like and subscribe to help the channel!
►KZbin Channel: / mikeshah
►Join our free community: courses.mshah.io/communities/...

Пікірлер: 9
@kubolor1234
@kubolor1234 7 ай бұрын
Just finishing the current playlist. Feeling like Hideo Kojima already.
@MikeShah
@MikeShah 7 ай бұрын
😁
@Beholden28
@Beholden28 7 ай бұрын
Perhaps we should rename g_uOffset and g_uRotate. they're not uniforms anymore. g_offset and g_rotate would be fine.
@MikeShah
@MikeShah 7 ай бұрын
Agreed, that's probably not a bad idea :)
@Beholden28
@Beholden28 7 ай бұрын
Whenever my camera's z position is less than 0, it horseshoe's back around moving in a positive direction. Any idea what the issue could be? Also i'm following along in C so the code below is a bit different.
@Beholden28
@Beholden28 7 ай бұрын
For anyone having this problem, I'm pretty sure mike did this on purpose. I've watched the video and followed everything to the letter. The issue still persists and I'm pretty sure he knows why cause I think I can see him trying to move the quad in such a way that its hard to tell the bug is happening. I also noticed he doesn't move left or right at all in the video. Whenever I do, my camera spirals along the z axis. He was right. There's definitely a better way to do this lol.
@MikeShah
@MikeShah 7 ай бұрын
@@Beholden28 Will be fixed in the next video :) This behavior was done on purpose to give folks some time to think about it (You'll see me make an update to glm::lookat in the upcoming videos, as well as implement left and right)
@Beholden28
@Beholden28 7 ай бұрын
@@MikeShah Thanks! I thought I was going crazy lol
@MikeShah
@MikeShah 7 ай бұрын
@@Beholden28 Cheers!
OpenGL [Episode 32] Camera -- first person mouse look
33:31
Mike Shah
Рет қаралды 2 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 134 М.
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 57 МЛН
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 55 МЛН
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
2000000❤️⚽️#shorts #thankyou
00:20
あしざるFC
Рет қаралды 13 МЛН
[Episode 24] Projection Matrix and glm::perspective
18:45
Mike Shah
Рет қаралды 2,9 М.
C++ Insights - Episode 21: How noexcept works
4:15
Andreas Fertig
Рет қаралды 5 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 162 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 95 М.
Perspective Projection Matrix (Math for Game Developers)
29:13
Camera/View Space // OpenGL Tutorial #13
21:59
OGLDEV
Рет қаралды 18 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 758 М.
but what is 'a lifetime?
12:20
leddoo
Рет қаралды 58 М.
LookAt - Interactive 3D Graphics
2:46
Udacity
Рет қаралды 25 М.
С ноутбуком придется попрощаться
0:18
Up Your Brains
Рет қаралды 413 М.
Best Beast Sounds Handsfree For Multi Phone
0:42
MUN HD
Рет қаралды 340 М.
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 753 М.
Самый топовый ПК без RGB подсветки
1:00
CompShop Shorts
Рет қаралды 167 М.
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 2,1 МЛН