OpenGL - textures

  Рет қаралды 16,625

Brian Will

Brian Will

Күн бұрын

Пікірлер: 10
@hackpulsar
@hackpulsar 2 жыл бұрын
short, understandable, nothing excessive, brilliant tutorial.
@ProgrammingWithRook
@ProgrammingWithRook Жыл бұрын
If I am not mistaken, if you split the buffers... so vertices in one, colours in another and texture coords in another, then then stride/offset can remain as 0
@artie5913
@artie5913 5 жыл бұрын
thank you for the video and for this playlist!
@Sedokun
@Sedokun 5 жыл бұрын
8:22 WIDTH Only valid for images that have clipping UV. And only for GL version 2.1 (legacy) and can be 0 or 1. For the rest - only 0.
@sreyascreations2498
@sreyascreations2498 3 жыл бұрын
how to set up stb_image in code block? pls...
@pxolqopt3597
@pxolqopt3597 3 жыл бұрын
dude just switch to msvc it is superior in every wau
@alexjulius69
@alexjulius69 2 жыл бұрын
Download stb_image.h header file from the internet and paste it to your solution's root folder, then just do #include "stb_image.h"
@JarppaGuru
@JarppaGuru 3 жыл бұрын
2:49 by no logic lol. mayby idea was change those invidually lol now its water shader get it?
@rokasbarasa1
@rokasbarasa1 3 жыл бұрын
If anyone is struggling with Rust version of importing and applying texture: let data = image::open(&std::path::Path::new("C:\\Users\\Rokas\\Desktop\ ust minecraft\\minecraft_rust\\texture.png")).unwrap().into_rgb(); let (width ,height) = data.dimensions(); let img_data = data.into_raw(); let img_ptr: *const c_void = img_data.as_ptr() as *const c_void; gl::TexImage2D( gl::TEXTURE_2D, 0, gl::RGB as i32, width as i32, height as i32, 0, gl::RGB, gl::UNSIGNED_BYTE, img_ptr ); This would give you some basic functionality using the "Image" crate
@rokasbarasa1
@rokasbarasa1 3 жыл бұрын
Also, if image is crooked or grey make sure the width and height is divisible by 2 or 4
OpenGL - lighting with the Phong reflection model (part 2 of 2)
13:59
OpenGL - draw a triangle
21:02
Brian Will
Рет қаралды 23 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Tutorial 16 - Texture Mapping in OpenGL
14:33
Jeffrey Chastine
Рет қаралды 88 М.
OpenGL - lighting with the Phong reflection model (part 1 of 2)
16:32
6. C++ OpenGL Texture Loading - Celeste Clone
13:02
Cakez
Рет қаралды 4,9 М.
OpenGL - camera movement
12:34
Brian Will
Рет қаралды 38 М.
Basic Texture Mapping // OpenGL Tutorial #16
22:01
OGLDEV
Рет қаралды 38 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 579 М.
OpenGL - introduction
4:27
Brian Will
Рет қаралды 68 М.
OpenGL Tutorial 6 - Textures
9:31
Victor Gordan
Рет қаралды 78 М.