Тёмный

OpenGL - textures 

Brian Will
Подписаться 96 тыс.
Просмотров 16 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@hackpulsar
@hackpulsar 2 года назад
short, understandable, nothing excessive, brilliant tutorial.
@ProgrammingWithRook
@ProgrammingWithRook 9 месяцев назад
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 4 года назад
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.
@JarppaGuru
@JarppaGuru 2 года назад
2:49 by no logic lol. mayby idea was change those invidually lol now its water shader get it?
@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"
@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 - create a window
9:35
Просмотров 15 тыс.
LOLLIPOP-SCHUTZ-GADGET 🍭 DAS BRAUCHST DU!
00:28
Просмотров 12 млн
Textures in OpenGL | How to Code Minecraft Ep. 4
25:38
Basic Texture Mapping // OpenGL Tutorial #16
22:01
Просмотров 35 тыс.
Textures in OpenGL
31:44
Просмотров 171 тыс.
OpenGL - vertex attributes and uniforms
13:27
Просмотров 8 тыс.
My 10 “Clean” Code Principles (Start These Now)
15:12
OpenGL - draw a triangle
21:02
Просмотров 23 тыс.
6. C++ OpenGL Texture Loading - Celeste Clone
13:02
Просмотров 3,7 тыс.
Object-Oriented Programming is Bad
44:35
Просмотров 2,3 млн