I added water to my C++ Minecraft Clone

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 381

  • @wsalevan
    @wsalevan  Місяць тому +59

    Hey guys! I hope you enjoyed the video! Quick announcement: When the Discord server gets to 100 members, I'm going to host a mini game jam! The server is so close to 100 already, so if you're interested in the game jam, join the server here: discord.gg/G9zSDfMcZg

    • @anthonywong-b1x
      @anthonywong-b1x Місяць тому

      would like to see villages to add more life

    • @Ne4to_Pon
      @Ne4to_Pon Місяць тому

      Add sky to your game

    • @albertnotdx
      @albertnotdx Місяць тому

      The video was pretty good tbh

    • @nightslayer1581
      @nightslayer1581 Місяць тому

      Hey may I get your discord I have a few questions I’d really like to ask

    • @budgetarms
      @budgetarms 7 днів тому

      WSAL meaning?

  • @null-0
    @null-0 Місяць тому +108

    Minecraft Bedrock at home:
    Awesome video demonstrating the power of C++ :]

    • @theSoulPlayzz
      @theSoulPlayzz Місяць тому +2

      I was gonna say something like this but I couldn’t think of a good way to type it so thank you for being better at coming up with thing to say than me ❤

    • @Capi_sigma_pro_coder
      @Capi_sigma_pro_coder 5 днів тому

      Awsomeway of showing showing off c++? Unreal is written in c++

  • @Venstras
    @Venstras Місяць тому +295

    3:36 Ain't the far lands, that's the fart lands 😭

    • @COWDOBB
      @COWDOBB Місяць тому +5

      underrated

    • @seanernst-c7r
      @seanernst-c7r 29 днів тому +1

      bro got the whole squad laughing 😒

    • @WadbeRoblox
      @WadbeRoblox 29 днів тому +8

      @@seanernst-c7r i thought it was pretty funny ngl

    • @tibr
      @tibr 27 днів тому +5

      9:53 shit seas

    • @ACEMesa69
      @ACEMesa69 12 днів тому

      🍑💨⛰️

  • @NelsonTheAwesome
    @NelsonTheAwesome Місяць тому +55

    Honestly I wish we could get videos like this from Mojang for normal Minecraft development

    • @okolenmi7511
      @okolenmi7511 25 днів тому +4

      In this case it will be a 5 minutes video per month.

  • @debianer
    @debianer Місяць тому +215

    "It works, but why?" - WSAL, 2024

    • @Twitaside
      @Twitaside Місяць тому +1

      it's 2024

    • @Alexminecrafter1
      @Alexminecrafter1 Місяць тому +11

      pretty much every programmer ever, and if i learn java this well be me to lol

    • @elongated_musket6353
      @elongated_musket6353 Місяць тому +2

      IF IT AINT BROKE DONT FIX IT

    • @Bigleyp
      @Bigleyp 19 днів тому +2

      Every programmer has said this at least once in the last 3 hours.

    • @KatTheOneAndOnly
      @KatTheOneAndOnly 14 днів тому

      @@Bigleyp I can confirm I just said that cause of some insanely broken code that still somehow worked lmao

  • @K3rhos
    @K3rhos Місяць тому +31

    5:39 From experience there is two types of crashes:
    - Crash that make sense and are actual errors in your program (under some conditions or whatever)
    - "Random" crashes generally caused by forgetting about thread sync issues, idk about your project but if you have multiples threads doing different tasks and reading or pushing items inside arrays, make sure you lock your threads using std::lock.
    If you find that your game sometimes randomly crashes and you cannot find out what really causing the crash, this is generally a threads sync issue !

    • @nikkiofthevalley
      @nikkiofthevalley Місяць тому +2

      Not in C++. C++ doesn't have as much memory safety as a lot of other languages, so you can easily reference nonexistent data, and get random crashes depending on the random data that's in that spot in RAM. This looks more like they screwed up an index somewhere and it accesses stuff it isn't supposed to.

    • @K3rhos
      @K3rhos Місяць тому +5

      ​@@nikkiofthevalley I was actually talking about fully random crashes, the one due to thread sync issues happening at random timing (bcs of data read/written at the same time sometimes). The non referenced data can be easily debugged and found, because reading random data will always lead to a crash, so it's not really what I would call a "random" crash.

    • @nikkiofthevalley
      @nikkiofthevalley Місяць тому

      @@K3rhos Reading random data doesn't necessarily lead to an outright crash. It could load nonsense data out of view, but as soon as it tries modifying it (which would be random because of the feature system being random) it may or may not crash because it could be allocated but not used memory.

  • @angrygamez7750
    @angrygamez7750 Місяць тому +48

    I love watching this series. Getting to see first hand what developers face while creating what seems a simple game is quite entertaining and inspiring. Keep up the hard work! 😁

  • @mxlo4539
    @mxlo4539 Місяць тому +16

    Now imagine a opensource c++ fully compatible minecraft client. Supporting the whole minecraft protocol, would be awesome.

    • @wsalevan
      @wsalevan  Місяць тому +24

      That sounds like a recipe for a lawsuit lol

    • @mxlo4539
      @mxlo4539 Місяць тому +1

      @@wsalevan Yes, I’ve thought that too lol 😂. There’s no crime in dreaming yet 😭 Who knows one day, without the mobile first way of bedrock being

    • @vidal9747
      @vidal9747 27 днів тому

      ​@@wsalevan If it just accesses the API, Oracle vs Google shows that this is perfectly legal!

    • @okolenmi7511
      @okolenmi7511 25 днів тому +4

      @@wsalevancreate a product that can be easily modified, create mods for it from different anonymous accounts to make it look like minecraft after installing all mods.

  • @SuperchargedW12
    @SuperchargedW12 27 днів тому +4

    This might be my favourite type of devlog. I much prefer when the technical side is explored than when jokes are thrown in every second. Would love to see you work on the visuals in the future (AO, shadows, coloured lighting, direct lighting, global illumination, or anything really)

  • @fioletov.y
    @fioletov.y Місяць тому +7

    "That's all I have for this episode" I swear this ginormous work

  • @real_minty_fresh
    @real_minty_fresh Місяць тому +4

    I love these videos and the progression so far! Please dont give up, a finished version would be sick! Can't wait for other dimensions

  • @fnFoondu
    @fnFoondu Місяць тому +9

    Execellent series. You are a great developer and great editor. Keep going bro (btw i aint a bot).

  • @iamunamed5800
    @iamunamed5800 15 днів тому +3

    "why did that fix it" is a mood

  • @MohsenFarajYT
    @MohsenFarajYT Місяць тому +3

    Bro I'm so hooked up to this series that i can't resist not subscribing. Well done! Btw i like your new logo

  • @ChaosAttorney
    @ChaosAttorney Місяць тому +5

    loving the VODs on YT, and this project so far is looking extremely promising

    • @wsalevan
      @wsalevan  Місяць тому +1

      Thanks!

    • @ChaosAttorney
      @ChaosAttorney Місяць тому

      @@wsalevan you're welcome! keep up the work, it's fun to watch how far you've come on C++

  • @pollo_frito22
    @pollo_frito22 Місяць тому +4

    I was watching all your Minecraft videos today and suddenly you gift us with another one, thank you

  • @minerminer2753
    @minerminer2753 Місяць тому +2

    The underwater effect... ITS PERFECT!

  • @b4con321
    @b4con321 24 дні тому +1

    i dont understand a singular bit about the code but i just like seeing the bug he has to fix and allat, its just fun to watch lol

  • @squarex8659
    @squarex8659 Місяць тому +3

    Did I like it?! Dude, I look forward to new videos and news from you!

  • @juancamacho2205
    @juancamacho2205 26 днів тому

    I wish I knew how to code because I've always wanted to do this, it's fun seeing you go through it. I think a nice spin to the minecraft clone idea would be to make the world spherical and not infinite

  • @SGM1066Official
    @SGM1066Official Місяць тому +123

    first person who's not evan

    • @nicole8275
      @nicole8275 Місяць тому +2

      Do you mean even

    • @GoogleDothBetray
      @GoogleDothBetray Місяць тому

      ​No, I think they meant evan
      @@nicole8275

    • @EvroTheDevro
      @EvroTheDevro Місяць тому

      @@nicole8275 No, the UA-camr is named Evan

    • @nicole8275
      @nicole8275 Місяць тому

      @@EvroTheDevro thanks

    • @SoftPankekULTRA
      @SoftPankekULTRA 27 днів тому

      how os this before the video upload tho

  • @peixeman
    @peixeman 23 дні тому

    I’m in an entry-level C++ programming course in college, and this video made my nerd brain’s day. Thank you sir

  • @aquss33
    @aquss33 Місяць тому +1

    gotta love a good sine function

  • @dr33dzmusic
    @dr33dzmusic 25 днів тому +2

    I didnt understand anything, but its fun to watch

  • @aidandonnelly6976
    @aidandonnelly6976 Місяць тому +1

    How about working on world weather? Higher up you go, colder it gets. And time of day would be neat. Loving the series so far!

  • @MarkreplierR-zv5nj
    @MarkreplierR-zv5nj 26 днів тому

    normal programmers: make a 5 minute video explaning an entire development on their game.
    wsan evan: explains for 14 minutes how he added water to his mc clone.
    wsan evan has the best videos on utub.

  • @atheneite
    @atheneite Місяць тому

    around half a year ago I went through the same journey and seeing you essentially take the same steps is kinda nostalgic already lmao

  • @PokeNebula
    @PokeNebula Місяць тому +2

    Bro whatever the hell you’re doing, you’re doing good work. Make sure to pace yourself, too many creators get burned out making quality creations as fast as this.

    • @wsalevan
      @wsalevan  Місяць тому

      Thanks! So far, this seems to be a pretty good pace for me

  • @arashi7693
    @arashi7693 Місяць тому +1

    I'm starting to get pretty invested in this series 😂

  • @grimgarde
    @grimgarde Місяць тому +1

    NIce stuff. Excited to see what comes next

  • @shadow_blader192
    @shadow_blader192 Місяць тому +30

    You can disable face culling, so it will draw back faces and you wont need double amount of vertices for water. (Dont forget enabling it after)
    Also cool video

    • @redotix9952
      @redotix9952 Місяць тому +1

      doesnt disabling backface culling basically just tell the gpu to render the vertices a second time but with flipped normals?
      The end result is the same no? Both process double the vertecies

    • @shadow_blader192
      @shadow_blader192 Місяць тому

      @@redotix9952 no, it disables check if face is facing camera.

    • @celdaemon
      @celdaemon Місяць тому +1

      ​@@redotix9952Not quite, itll skip the backface culling check itself, and all the data stays the same.
      Technically it could be implemented by the driver the way you said it, but its unlikely as that would be unnecessary inefficient

    • @redotix9952
      @redotix9952 Місяць тому

      @@celdaemon Oh interesting, I wasnt aware, I thought backface culling was a natural side effect of rendering and turning it off requires more processing, not the other way around.

    • @wsalevan
      @wsalevan  Місяць тому

      The reason I didn't do that is because only the top water faces need face culling disabled, so doing that would mean I would need 2 VAOs and 2 render calls, and I figured that a few extra faces would be better. Maybe I'm wrong, though. I would have to test it

  • @ghost-animation-YT_gg
    @ghost-animation-YT_gg Місяць тому +2

    I love your Minecraft

  • @proyer2508
    @proyer2508 Місяць тому

    Bro you are the best u literally making a new better bedrock edition, all of these in your first entry to c++ , if i had money i was going to donate 40 dollars ❤❤❤❤

  • @bibekdas7449
    @bibekdas7449 28 днів тому

    0:24 This is exactly what rice fields look from high ground. I am not kidding.
    You created a rice field in minecraft... A NEW BIOME?

  • @WhatsDown
    @WhatsDown Місяць тому

    It's so fun to watch you make this project, I'm so glad I found out about this! Do you have plans to add any sort of survival mechanics, and if so, when? Very excited to see where this goes!

  • @rigbyb
    @rigbyb Місяць тому

    It's sort of a habit to watch Minecraft being continually recreated, but it's still interesting every time

  • @MeLikeApplez
    @MeLikeApplez Місяць тому

    Dude this is really coming together. This is so cool bro keep it up bro

  • @csiguszfoxoup
    @csiguszfoxoup Місяць тому +1

    interesting and fun, love this video

  • @EndoTheBear
    @EndoTheBear День тому

    looking at the water shader, i wonder if its possible to make a shader behave like the water shader in terraria, where it interacts with objects and entities. I think you do that by using a movement buffer but I might be wrong.
    Anyways, I found this video series recently and I think the way you narrate and show stuff is really cool and comprehensible, at least for me(I have some coding knowledge but I'm not that familiar with the apis you are using).
    I will watch the other videos and start to follow this project, its very interesting.
    Keep up the good work :D

  • @Dude2dsofficial
    @Dude2dsofficial Місяць тому

    Just got recommended this after watching Phillips dev log on HIS Minecraft clone, lol

  • @beanmchocolate3900
    @beanmchocolate3900 22 дні тому

    I’ve got an idea to make the water look more unique. Remove the texture, have it render as a solid color. The low parts of the waves render darker, and the high parts of the waves render the brightest, giving a fake reflective look. Also, try making the waves more noisy for even cooler looking results.

  • @omri.h
    @omri.h Місяць тому

    i read the title as "I added C++ to my Water Minecraft Clone" at first and I was SO confused
    crazy vid

  • @cod.yiscool_
    @cod.yiscool_ Місяць тому +1

    You should try to add a player movement system so you can actually walk and run around instead of just flying. It would be cool if you could start/stop flying by double-tapping space

  • @Thurzin_hz
    @Thurzin_hz Місяць тому

    This channel so fun ngl
    It reminds me of the funny videos I used to watch.

  • @Treqz
    @Treqz Місяць тому

    Super underrated channel - really entertaining video! Keep it up! 💪🙌

  • @Secretalim
    @Secretalim Місяць тому

    You can add soft lighting and make the grass texture more like the newer versions of Minecraft. 👍

  • @EliasWolfy
    @EliasWolfy Місяць тому +1

    When you feel satisfied with the engine, please try to create more games on it. 😭🙏

  • @Mkminokushi
    @Mkminokushi Місяць тому +1

    Love the videos!! Keep up the work bro🔥 One question tho, can you stream on YT pls?

  • @paperdeck
    @paperdeck Місяць тому

    I can' believe someone added C++ to their Water Minecraft Clone

  • @ElectricoGamez
    @ElectricoGamez 28 днів тому

    If infinite generation is ever added to this pet project, I really hope we'll get to teleport to the farlands.

  • @Mariollllo
    @Mariollllo Місяць тому +1

    great job and good luck

  • @Traczu1
    @Traczu1 Місяць тому +2

    8:54 movies when desert

  • @fexio1
    @fexio1 20 днів тому

    11:45 good idea for extra settings

  • @alexandresilkin5494
    @alexandresilkin5494 5 днів тому

    fr ur a programming monster :0

  • @noairdnb
    @noairdnb Місяць тому

    Wow, really impressed by your videos. I'd love to see some ambient occlusion in the future :D

  • @thesadchicken5256
    @thesadchicken5256 Місяць тому +1

    I feel like finally being able to walk around would be cool, it's a bit of a jump though (no pun intended)

  • @irolup
    @irolup Місяць тому

    You should add PBR materials (Sending arrays) of materials to the frag shader like adding every texture needed (diffuse, normal, ao...) for the regular block if not implemented yet

  • @BrentLoaf
    @BrentLoaf Місяць тому

    i cant wait for him to realase this game it looks so good

  • @mrbadwithnames4708
    @mrbadwithnames4708 Місяць тому

    nice water, gotta love a sine-wiggle

  • @alberve
    @alberve Місяць тому

    If you keep developing this it might actually turn out better and faster than the original minecraft (I think)

  • @The_Hambone_88
    @The_Hambone_88 Місяць тому +1

    This is great!

  • @asdru
    @asdru Місяць тому

    This is the kind of video you watch while eating 💯👍

  • @kuil
    @kuil 13 днів тому

    It would make perfect sense for sea level to be Y=0. Then underground would usually be negative and above ground would be positive.

  • @gccrazy17
    @gccrazy17 Місяць тому

    You should try adding mountains to the world with changing weather!

  • @dennisfechner7
    @dennisfechner7 Місяць тому +1

    Amazing Video as always :D

  • @Thermotyp
    @Thermotyp Місяць тому

    Bro created the stripe lands! 9:48

  • @demetriojunior164
    @demetriojunior164 Місяць тому +1

    I'm mesmerized.

  • @iosefka7774
    @iosefka7774 Місяць тому

    The random way in which water faces failed to appear seemed very much like memory corruption; junk data was being used somewhere.

  • @Randi_MyMan
    @Randi_MyMan Місяць тому

    idea: adjust some terrain generations numbers and make height limit 128 to make minecraft alpha terrain

  • @meem2Greene-ju3cs
    @meem2Greene-ju3cs Місяць тому

    Kudos to making it in C plea plea. I could never.

  • @emir.unreal
    @emir.unreal Місяць тому

    yo before adding more stuff i think adding sky to your game would be so cool including some clouds too

  • @waterisblued7764
    @waterisblued7764 Місяць тому

    Maybe add Day and night Cycle next, keep up great work!

  • @bibekdas7449
    @bibekdas7449 28 днів тому

    Ready to see what your creative shenanigans take you to.
    I wish you make a Minecraft Bedrock edition someday free from the saucy microsoft touch.

  • @RealUnHoly
    @RealUnHoly День тому

    bro made microsoft paint, in minecraft, in C++
    Legend

  • @Drifys1
    @Drifys1 Місяць тому +17

    microsoft already made minecraft in C++

    • @renren_does_programming
      @renren_does_programming Місяць тому

      Yep, people dont know bedrock edition is written in C++, no wonder why his is just as buggy...

    • @Drifys1
      @Drifys1 Місяць тому

      @@renren_does_programming go find out what the unedited one said

    • @d3stinyroblox
      @d3stinyroblox Місяць тому

      This one is a minecraft clone

    • @Drifys1
      @Drifys1 Місяць тому +1

      @@d3stinyroblox same with bedrock

    • @d3stinyroblox
      @d3stinyroblox Місяць тому

      @@Drifys1 but the same company developed it

  • @Robert-cn8bh
    @Robert-cn8bh 20 днів тому +1

    Very cool

  • @ThrowawayAccountToComment
    @ThrowawayAccountToComment Місяць тому

    Maybe you could add more blocks like sand and gravel for under the water? (It also makes you think about the pain of adding biomes)

  • @thearizonaranger7376
    @thearizonaranger7376 Місяць тому +1

    "I got this wrong, I have no idea how it worked"
    Story of my life coding lmao

  • @adamasteway4828
    @adamasteway4828 Місяць тому

    Awesome now make the water flow

  • @AndrieMC
    @AndrieMC 29 днів тому +1

    next video you should add se- I mean Physics (Collisions and Gravity)

  • @NOTREALCREEK
    @NOTREALCREEK Місяць тому

    This is already 1000 times better than bedrock edition

  • @LabFox132
    @LabFox132 Місяць тому

    add jumping & placing & mining & block collision!

  • @px9720
    @px9720 Місяць тому +1

    very cool

  • @onedeadperson5583
    @onedeadperson5583 Місяць тому

    You should make blocks check if they are under water and if they are look like either sand or gravel.

  • @eliteengineer7340
    @eliteengineer7340 Місяць тому +1

    The lighting is so cursed lmao

  • @brokendoop
    @brokendoop 29 днів тому +1

    Coding really is a whole lot of "why did it do this" or "why is this fixed now?" But as long as it works!

    • @wsalevan
      @wsalevan  29 днів тому +1

      Yeah pretty much lol

  • @Banjimate
    @Banjimate Місяць тому

    Its funny that his game isnt playable yet he decided to give the water a shader

  • @deilos
    @deilos Місяць тому +1

    love ur videos! cant wait when will be new video :D

  • @MINECRAFTGAMERS233
    @MINECRAFTGAMERS233 Місяць тому

    cool project !

  • @AnnasVirtual
    @AnnasVirtual Місяць тому

    3:14 that's my opengl experience right there

  • @uwuuu1591
    @uwuuu1591 Місяць тому

    I Luke this bro continue please

  • @etheraelespeon1986
    @etheraelespeon1986 Місяць тому

    The random crashes with the refactored chunk rendering mighttt be an issue with chunk meshes getting copy-constructed and freeing their GPU memory prematurely. I've made that mistake a lot, and I'd recommend always putting logs into custom destructors when you're first testing them.

  • @herrmagicnils3716
    @herrmagicnils3716 Місяць тому

    I think day and night cycle would be a cool feature

  • @oxayafan29
    @oxayafan29 4 дні тому

    at 12:39
    if you made it faster you could use it as nausea if you ever get that far

  • @arsbd_
    @arsbd_ Місяць тому

    I support you bro.

  • @Shinous.
    @Shinous. Місяць тому +2

    Cool

  • @Alonso_Cid
    @Alonso_Cid День тому +1

    Bro is fixing Minecraft bedrock for free 💀

  • @krinjii
    @krinjii Місяць тому

    Evan you ddi a good job!!!

  • @MrSkullis
    @MrSkullis Місяць тому

    add a fov fog and now that you have different billboard blocks, try adding in as many types of blocks as you can even try experimenting w/ glass

  • @EsaynF04
    @EsaynF04 27 днів тому

    Alguien: Omg eres software engendering! Y qué haces con tu profesión?
    Yo: pues…