OpenGL glEnable Depth Test

  Рет қаралды 23,884

Jamie King

Jamie King

10 жыл бұрын

Shows how to turn on the depth test (z test) using glEnable(GL_DEPTH_TEST) to enable a write to the depth buffer (z-buffer). You must sort your geometry in the Z dimension. Also shows clearing the depth buffer using glClear(GL_DEPTH_BUFFER_BIT) and how these operations affect what is rendered to the screen.

Пікірлер: 22
@VictorRodriguez-zp2do
@VictorRodriguez-zp2do 4 жыл бұрын
This tutorials may be 6 years old but even today they continue to be very helpful. Thank you.
@raymondlu9232
@raymondlu9232 5 жыл бұрын
Greate explanation, thank you Jamie.
@veenusav
@veenusav 7 жыл бұрын
good one. thanks
@ajsamart2445
@ajsamart2445 10 жыл бұрын
#reallygoodtutorials :)
@ashutoshrautela3454
@ashutoshrautela3454 7 жыл бұрын
I paused!!
@MrSaemichlaus
@MrSaemichlaus 10 жыл бұрын
1:55 who paused the video? Guys, come on :D
@JamieKingCS
@JamieKingCS 10 жыл бұрын
Hehe. Did you? You better have!
@MrSaemichlaus
@MrSaemichlaus 10 жыл бұрын
No time for pausing, I'm searching for help, good sir :D I can't get gluPerspective() to work...no clipping lanes, picture has wrong aspect ratio. Have been searching for days, aargh :(
@JamieKingCS
@JamieKingCS 10 жыл бұрын
Yikes. Fixed function pipeline huh?
@MrSaemichlaus
@MrSaemichlaus 10 жыл бұрын
No idea...I checked an example that comes with my IDE, that gave my program a blackout :) I guess the headerfiles are complete, libs and bins included and linked. Btw, I'm a freetime programmer, so ... xD But man, that's probably the biggest knot I've ever had in coding...
@JamieKingCS
@JamieKingCS 10 жыл бұрын
Ya, sounds like you are doing fixed function. That's deprecated. Good to learn, but not if it's worth it.
OpenGL Depth Interpolation
9:40
Jamie King
Рет қаралды 12 М.
OpenGL Sending Triangles in Parts Using glBufferSubData
18:30
Jamie King
Рет қаралды 12 М.
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 8 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 363 М.
g-squad assembles (skibidi toilet 74)
00:46
DaFuq!?Boom!
Рет қаралды 11 МЛН
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 16 МЛН
OpenGL Depth Buffer
13:37
Jamie King
Рет қаралды 26 М.
OpenGL Attribute vs Uniform
10:59
Jamie King
Рет қаралды 13 М.
WegGL 2: Transparency & Depth
12:56
Andrew Adamson
Рет қаралды 1,6 М.
OpenGL - transparency (alpha blending)
16:43
Brian Will
Рет қаралды 11 М.
OpenGL - depth and stencil buffers
10:01
Brian Will
Рет қаралды 17 М.
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 8 МЛН