Textures in OpenGL | How to Code Minecraft Ep. 4

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 108

  • @barj
    @barj 2 года назад +59

    I haven't done too much OpenGL but when I did, I HATED textures. Really enjoying the series so far :)

    • @sleep3017
      @sleep3017 2 года назад +1

      Whoa man didnt expect to see you here lmao

  • @MieysoFelix
    @MieysoFelix 2 года назад +43

    Is there going to be a Part 5?

  • @CeilingPanda
    @CeilingPanda 2 года назад +76

    Random fact, texture element or “texel” is the same as picture element or “pixel” which maybe should be called picel instead for consistency.

    • @Zilten_
      @Zilten_ 2 года назад +16

      but then we would need to start calling voxels volels...

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +16

      This is the first time I've ever heard that connection. I never bothered to look up why it's called a texel, but that makes so much sense now haha

    • @nukeandbeans
      @nukeandbeans 2 года назад +4

      There is actually a difference here. Yes, a texel refers to a single pixel of a texture, but there is also "texel density", which refers to how many pixels of a single texture occupy any given triangle, hence why it's called a texel and not a pixel.
      en.m.wikipedia.org/wiki/Texel_(graphics)

    • @dovahkiin2108
      @dovahkiin2108 2 года назад

      yeah ok...

    • @miweneia
      @miweneia 2 года назад

      @@Zilten_ lel

  • @spandanroy8380
    @spandanroy8380 Год назад +5

    Hello, I don't want to sound rude or anything, but I really love your channel and its been so long since you posted something. Are you alright or busy? I wish you would keep making these videos

    • @benonardo
      @benonardo Год назад +1

      You might have noticed already a month later, but he works on an animation program for his videos, since he struggled a lot in the previous ones.

  • @loscaballerosdebronzodia8211
    @loscaballerosdebronzodia8211 Год назад +3

    Is there going to be new videos?

  • @cthutu
    @cthutu Год назад +2

    What happened to this series? Did you lose motivation, Gabe?

  • @gutzimmumdo4910
    @gutzimmumdo4910 2 года назад +2

    "some clever game developers" ROFL, u mean some clever computer scientists mathematicians and engineers working togheter in computer graphics.

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +2

      I wasn't aware that a game developer couldn't be a computer scientist, mathematician or engineer lol. My degree is in CS and Math, but I consider myself a game dev as well ¯\_(ツ)_/¯

  • @SpikedSpy_
    @SpikedSpy_ 2 года назад +5

    this is exactly what I was always curious about.
    thank you so much for making these!

  • @danisob3633
    @danisob3633 2 года назад +12

    this is amazing! thanks for the good work you put in this series

  • @Ironium265
    @Ironium265 2 года назад +13

    I've already tried to make a minecraft clone few months before you started this series. I blocked on multithreading and "face discarding" between chuncks. I'm waiting for the next epsodes!

    • @BusinessWolf1
      @BusinessWolf1 2 года назад

      Look up how minecraft did it, there's articles on it

    • @Ironium265
      @Ironium265 2 года назад

      @@BusinessWolf1 If u have any link i would be happy !

  • @kebapich
    @kebapich 2 года назад +2

    WHERE.. NEW... VIDEO¿¿¿¡

  • @ArachnidAbby
    @ArachnidAbby 2 года назад +1

    This came out and no one told me!?!

  • @hatkidchan_
    @hatkidchan_ 2 года назад +2

    13:56 it's in fact grayscale, grayalpha, RGB and RGBA, so it's not really a direct relation between GL_RED, GL_RG, GL_RGB and GL_RGBA; it can be used to store them though

  • @NotLanny
    @NotLanny 2 года назад +2

    Could you add survival mode (including fall damage and progression) and tools, as well as player models?

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +2

      I'm working on it right now :)

    • @NotLanny
      @NotLanny 2 года назад

      @@GamesWithGabe Cool!

  • @finnf2462
    @finnf2462 2 года назад +1

    Pls we need the cubemap video

  • @lixun7390
    @lixun7390 2 года назад +1

    I like how you use Minecraft as the concept because of its popularity, nice strategy for RUclips algorithm

  • @movingheadmau8128
    @movingheadmau8128 2 года назад +2

    Great video! I will have to dig into graphics programming when I have some off-time from university & work again :D

    • @GamesWithGabe
      @GamesWithGabe  2 года назад

      Thanks! Graphics programming can be a pain, but it usually yields really cool apps that you can show off :D

  • @VoylinsLife
    @VoylinsLife 2 года назад +2

    Is this the end to the series?

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +9

      It shouldn't be. I've just run into major burnout and don't want to make any promises on when I'll be uploading the next episode. I have the video edited halfway, but working on the animation editor has taken much longer than I expected :/

    • @VoylinsLife
      @VoylinsLife 2 года назад

      @@GamesWithGabe Good luck and take it easy to recover from your burnout, those things are nasty to fully recover from (speaking out of experience).

    • @samochreno
      @samochreno 2 года назад +1

      @@GamesWithGabe good luck man

  • @roblayton3190
    @roblayton3190 2 месяца назад

    I will pay you to continue this tutorial series 🙏 Seriously. Let me know.

  • @caspianahlberg9027
    @caspianahlberg9027 2 года назад +1

    Small mistake in the video - OpenGL is only deprecated past 4.1 on MacOS

    • @bennyuoppd33
      @bennyuoppd33 2 года назад

      I've never used MacOS, but I've heard of people having issues running a few features past 3.3

    • @caspianahlberg9027
      @caspianahlberg9027 2 года назад

      @@bennyuoppd33 Yes - the Apple OpenGL drivers are a bit iffy

  • @TheGreatProphecy
    @TheGreatProphecy Год назад +2

    So no more updates?

  • @Destroyer19941995
    @Destroyer19941995 2 года назад +1

    Man you really have that narrator/tutor talent with all those sounds like I am watching history channel or Discovery

  • @oneandonlyarajivp
    @oneandonlyarajivp Год назад +1

    Hi this series is amazing. Will there be more or is this the end? Thanks

  • @200iqpotato4
    @200iqpotato4 2 года назад +1

    🤓

  • @devanshpatil1065
    @devanshpatil1065 2 года назад +2

    Is he going to come back?

    • @josecarlosmoreno9731
      @josecarlosmoreno9731 2 года назад +1

      I hope so, but who knows.

    • @asherhaun
      @asherhaun 2 года назад

      Yes, see his post in the community tab, he has had some delays but I think it will be somewhat soon.

  • @_shadow_1
    @_shadow_1 2 года назад +2

    Nice series of videos here showcasing different coding things. If you ever decide to bring this to a prototype state, it would be cool to make some play test type of videos where you demonstrate certain mechanics and then explain how those things are coded, inventories, player stats, player physics, mobs movement mechanics, multiplayer servers...etc. Also maybe even try addressing/fixing some of the issues present in the Minecraft from a coder's perspective and maybe even try adding better systems or better ways to do existing system than how Minecraft implemented them.

    • @asherhaun
      @asherhaun 2 года назад

      Although this isn't exactly what you are looking for, you might enjoy Gabe's crumble series. He posts devlogs for it every so often.

    • @janeannothanks8371
      @janeannothanks8371 2 года назад

      He already does this, but they're typically 1-3 hour long videos.

  • @gatligator4425
    @gatligator4425 Год назад +1

    this series is epic, best of luck making the next vid

  • @Petereoooo
    @Petereoooo 2 года назад +3

    Great video! I have been waiting for it this whole month.

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +1

      Thanks! And sorry it took so long haha. It's been a struggle balancing everything the past month, but hopefully they'll be coming a bit more regularly from here :)

    • @Petereoooo
      @Petereoooo 2 года назад +1

      @@GamesWithGabe Nothing to apologise for man, take your time! As long as the quality is as good as it has been, I think I speak for everyone when I say I don't mind waiting a couple of months :)

    • @BackTasty
      @BackTasty 2 года назад +3

      @@GamesWithGabe :death: what happend to the series

  • @menaced.
    @menaced. 2 года назад +1

    I just learned so much about the settings that i use in games

  • @FrozenSnowDropRoses
    @FrozenSnowDropRoses 2 года назад +1

    This was very interesting. Great info

  • @beaumanVienna
    @beaumanVienna 2 года назад +1

    Amazing content quality!

  • @mohammadazad8350
    @mohammadazad8350 2 года назад +1

    Did you use manim for the text? if so I don't see a link to it in the description, for credits

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +1

      I do use manim community edition and I don't try to hide that fact, so I didn't mean anything malicious by this haha. Manim is MIT license which only requires that you redistribute a copy of the license with any changes made. But that's besides the point, the animations are a byproduct of manim. The tool itself is OSS, which means you can use it however you want and you are not required to give credit. For example, blender is also OSS, but that doesn't mean you're forced to add credits that say created with blender every time you use it. Same deal with Da Vinci Resolve free edition, which isn't OSS. Or the Linux operating system. You don't have to credit it everytime you create something on a Linux OS haha.
      Anyways, this wasn't malicious behavior on my part and I'll update the description. It just never occurred to me to do that since that's not how copyright works :)

  • @ImDuck42
    @ImDuck42 Год назад +1

    Aaaahhhhhhh my brain 🤯

  • @khaledx4964
    @khaledx4964 2 года назад +1

    Thank you for your brilliant content

  • @turkeyleg72
    @turkeyleg72 2 года назад

    Hey could youaubey make a .jar for geometry dash so It can be loaded in J2ME loader it would be cool I mean I have the original but I really want to play the Java version on mobile.

  • @BoyceBailey
    @BoyceBailey 2 года назад +1

    this was a treat to watch. thank you.

  • @blvnktek
    @blvnktek 9 месяцев назад

    opengl on mac is stressful

  • @mihai140
    @mihai140 2 года назад

    Talking about the video where you made a Mario level, can you make 1 or 2 more part(s) about bossfights and level tranzitions plz?

  • @utkarshmadhav4411
    @utkarshmadhav4411 2 года назад +1

    hey Gabe, I have a question, do I need to know javafx or swing before I start your course on 2d game engine or is it that I do not need to know javafx or swing to start using openGL?
    thank you for your amazing videos I hope you reach new heights in your life.

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +1

      This is probably a better question for the 2d game engine episodes haha. But JavaFX and swing are orthogonal to OpenGL. You don't need to know them. They're software renderers, which means they don't use the GPU for any rendering. Whereas OpenGL is a hardware accelerated rendering API, so it allows you to leverage the GPU :)

    • @utkarshmadhav4411
      @utkarshmadhav4411 2 года назад

      @@GamesWithGabe thank you Gabe

  • @nia5370
    @nia5370 2 года назад

    Funny you mention that about the sized and internal format, lol.
    I got so fed up with it that I took the table from the doc page, read all the rules and values and made functions an some template magic for validation and mapping between sized/internal format.. big headache but at least they're enforced via concepts at compile time now, phew.

  • @youessmati3806
    @youessmati3806 2 года назад +1

    now port it to ps2 lol

  • @razvanpsp6350
    @razvanpsp6350 Год назад +1

    Hay Gabe, do you still work on the game?

    • @GamesWithGabe
      @GamesWithGabe  Год назад +11

      Yep! It's taken me much longer than I thought it would to develop some software to help with making videos, but once I get it stable I should be releasing videos again :)

  • @fluffy_tail4365
    @fluffy_tail4365 2 года назад

    curios fact about arbitrary txture data, the new unreal nanite tech basically transform mesh data into 2D arrays of x,y,z positions and use the innate texture sampling and filtering of GPUs to retrive different but contnous lods meshes and not pop in like discrete classical lod models

  • @WillFordStudios
    @WillFordStudios 2 года назад

    I don't know how I got here, I'm not interested in minecraft coding, but I watched the whole damn video

  • @Abdullahmoukarrame
    @Abdullahmoukarrame Год назад

    Can anyone tell me if it's possible at all to take this to android?

  • @ItIsYouAreNotYour
    @ItIsYouAreNotYour Год назад

    Did you give up on this series? Man, it was just getting good.

  • @TheThouZands
    @TheThouZands 2 года назад

    you said you were going to use opengl because it was simpler than both directx and vulkan; however, if you had rather used one of those two instead, what would have changed, exactly of what you have done until now would be harder or easier to do in say, directx?

    • @GamesWithGabe
      @GamesWithGabe  2 года назад

      I think I just said OpenGL is one of the simpler APIs. I didn't mean to say it's simpler than DX, although it definitely is simpler than vulkan from what I hear haha. The main reason I use it is because DX is vendor locked to Microsoft, and Vulkan requires more boilerplate. But most of the concepts are transferable, they just use different terminology and syntax, and sometimes require more work :)

  • @Slender303YT
    @Slender303YT 2 года назад

    I subscribed to your channel when you had like 552 - 998 subscribers out there and now I see your channel and you have more than 38K subs wow...

    • @GamesWithGabe
      @GamesWithGabe  2 года назад

      Thanks for sticking with me for so long :D . And I'm just as amazed as you haha

  • @CeilingPanda
    @CeilingPanda 2 года назад

    Where is the other thumbnail /s :) good video

  • @FrenchArmedForcesBrookhaven
    @FrenchArmedForcesBrookhaven 2 года назад

    u look like the successful version of yandere dev

  • @mcshorts7520
    @mcshorts7520 Год назад

    Coke back

  • @marcussacana
    @marcussacana Год назад

    shit, i'm using GLES2

  • @crobatgaming5661
    @crobatgaming5661 2 года назад

    cool

  • @menaced.
    @menaced. 2 года назад

    You make tutorials as interesting to watch as videos from reducible or standup maths its actually amazing keep up the good work

  • @Nafiur13
    @Nafiur13 2 года назад +2

    If this game is for android then this will blew up the whole internet
    I will also download it

  • @iercan1234
    @iercan1234 2 года назад

    nice, maybe one day i will really learn opengl it looks fun

  • @openroomxyz
    @openroomxyz Год назад

    Will the series continue?

  • @nixon6216
    @nixon6216 Год назад

    cant wait for the next 1111111

  • @cvabds
    @cvabds 2 года назад +1

    Nerd

    • @emilianobustamante5013
      @emilianobustamante5013 2 года назад +1

      @@voxelrifts I laughed

    • @GamesWithGabe
      @GamesWithGabe  2 года назад +5

      Nerds rule the world my man ;)

    • @cvabds
      @cvabds 2 года назад +1

      @@GamesWithGabe it was a joke lol, of course nerds rule

  • @NoTengoIdeaGuey
    @NoTengoIdeaGuey Год назад

    There's actually technically a 3rd dimension in UV mapping, the W dimension, which makes sense because then in order you get the coordinates UVWXYZ.

    • @fahd2372
      @fahd2372 Месяц назад

      Whats the third dimention for?

    • @NoTengoIdeaGuey
      @NoTengoIdeaGuey Месяц назад

      @@fahd2372 i'm not entirely sure, you are translating 3D values into 2D and certain forms of projection like perspective projection do use a Z value in part of the calculations. You still need that 3rd value to be stored somewhere but at the end of the day what matters for most 3D artists is the final UV coordinates. I'm just spit balling but this is my guess.

  • @gdelacerda
    @gdelacerda 2 года назад

    Perfect! 💥👏🏻

  • @minitr3143
    @minitr3143 Год назад

    What programs do you use for editing your videos

    • @zakzwop7251
      @zakzwop7251 Год назад

      ruclips.net/video/iydG-e1dQGA/видео.html

  • @kurciqs8355
    @kurciqs8355 Год назад

    bEeN a WhiLe

    • @crazycdn8327
      @crazycdn8327 Год назад +2

      People get burned out. He works full time, codes on live streams, and is now making these videos which take a lot of time to edit and make animations for etc. Let me know when your OpenGL Minecraft coding series is coming out.

    • @kurciqs8355
      @kurciqs8355 Год назад +2

      @@crazycdn8327 slow down. i didn't wanna offend anyone. i totally understand. i have been following gabe's streams and stuff. it was kinda meant as a joke

  • @cybermats2004
    @cybermats2004 2 года назад +1

    I am currently learning about collection framework, your videos are a little bit more beginner stuff but thats ok for me

  • @NickProkhorenko
    @NickProkhorenko Год назад

    Херню какую-то посмотрел. Где весь код? Что за дурацкое обьяснение. Что мне блин писать надо? Еще и с С++ переводить твои каракули...

  • @anonymus_the_real
    @anonymus_the_real 2 года назад

    hello what's your discord name and #?