How to Make a 3D Game in Scratch | Minecraft in Scratch E1

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • In this video we will code a 3D Renderer which we'll use to display 3D blocks. In future episodes we will work on turning this into an actual game like Minecraft.
    We will use raycasting, which is used for 3D maze games and such (which are really just 2D games) but can also be used in fully 3D games.
    Chapters
    00:00 Intro and explanations
    04:12 Grid
    08:40 Collision detection
    10:40 Camera variables
    11:40 Ray movement explanation
    15:05 Variable setup
    18:15 Casting rays
    23:35 Displaying camera view
    26:28 Camera movement
    30:00 Shading
    32:00 End
  • Věda a technologie

Komentáře • 150

  • @Bungungus
    @Bungungus Před 2 dny +5

    big fan. glad to see another scratch content creator make sick projects

  • @TheDudes421
    @TheDudes421 Před dnem +3

    Your so underatted, This is such an understanding video btw!! U earned a new sub

  • @jeandang8376
    @jeandang8376 Před 20 hodinami +2

    6 subs left to 1k !!! 😮 Great work!

  • @CarlCraftGamesyt
    @CarlCraftGamesyt Před dnem +3

    Bro, I loved this project! is the first real tutorial of 3D Minecraft that i see!

    • @dramagnertal6660
      @dramagnertal6660 Před 20 hodinami

      Actually someone made Minecraft before but unfortunately no tutorial and nobody understand anything

  • @DemidCode
    @DemidCode Před 6 dny +9

    that's cool dude ngl. Maybe you remember me, im continue python but with pyray now (raylib wrapper for python), 3d pretty easy with raylib. Also switched from windows 10 to linux mint, learning some stuff rn :) Interested in this series to see scratch 3d implementation, keep going)

  • @user-wc2wo6bg8s
    @user-wc2wo6bg8s Před dnem +1

    thank you so much all the other 3d tutorials are so hard to understand this makes it so easy

  • @ChisSorinYT
    @ChisSorinYT Před 2 dny +3

    this is underrated

  • @NotBigSurprise
    @NotBigSurprise Před 15 hodinami

    if i may suggest
    since you're using a grid, you could base your raycasting on a dda algorithm, adapted to work in 3d
    dda (digital differential analyzer) is a line-generation algorithm, optimized to use the least amount of checks it can by using variable step sizes
    for the most part, it's used to draw lines on a screen, to figure out which pixels a line intersects
    but given a raycaster essentially makes lines, dda would let the game render faster, and more accurately, than the usual raycasting with a fixed step size

  • @TheKlad
    @TheKlad Před 6 dny +2

    YOOOO, LET'S GO!!!! I'm super happy when i see this tutorial!!! I just love your mind blowing tutorials! And can you make like Pen+ tutorials?

  • @Quake_129
    @Quake_129 Před 18 hodinami +1

    When the video came out a saw it only had 12 likes but now 300 and its now your second popular video also you only had 700 subscribers now you have 1k great job

  • @-TerraPixl-
    @-TerraPixl- Před 5 dny +1

    Incredible! That fact that we did this with only *372* blocks!!! (If you have more or less you are doing something wrong.)
    -- =Tips for anyone following this tutorial= --
    - *_MOST IMPORTANTLY_* : Make sure that your variable names are matching. Putting a variable in the wrong place can mess everything up.
    - Make *_ABSOLUTE SURE_* that your variables are set when shown as set, and change when they are shown as change. *_DO NOT_* mix these!!
    - Of all else, make sure to do this: _If it's getting late, come back and pick it up tomorrow._ There have been times when I couldn't find the problem, but getting a good night of rest gave me a *_HUGE_* boost of energy in the morning and I almost immediately solved the problem.

    • @FindingPepper
      @FindingPepper  Před 5 dny +2

      Good advice! It's definitely true that it's easy to make little mistakes. You have no idea how many hours I've spent in pain trying to fix a bug when the issue was just that an x and y got mixed up somewhere!

    • @-TerraPixl-
      @-TerraPixl- Před 5 dny

      @@FindingPepper So true XD.

    • @-TerraPixl-
      @-TerraPixl- Před 5 dny

      @@FindingPepper Looking forward to part two! At this rate, I'm sure that this will be an incredible tutorial used by many. Probably even a top tutorial someday!

  • @user-nc7tk4zi9v
    @user-nc7tk4zi9v Před 9 hodinami

    Woah! So cool! Hope you post part two this sunday!

    • @Willbin23
      @Willbin23 Před 4 hodinami

      I have been waiting for 6 days and I am so impatient

  • @DimaDZisHere
    @DimaDZisHere Před 3 dny +2

    the best minecraft tutorial

    • @stavros222
      @stavros222 Před 2 dny +1

      You can make circles too by that. Its not only minecraft

  • @DaAlphaDawg
    @DaAlphaDawg Před 2 dny +3

    No way I clicked on this video so fast.

  • @zardyfilms3466
    @zardyfilms3466 Před 6 dny

    This channel gets better every video you upload.

  • @Ez_the_red_head
    @Ez_the_red_head Před 4 dny +2

    Good work, as usual! 😊

  • @bread6851
    @bread6851 Před 4 dny +2

    This video is really nice and simple to understand! I remember trying to make a ray marcher engine like this but it's super slow

    • @FindingPepper
      @FindingPepper  Před 3 dny +1

      Thanks! I know this one is quite slow as well but we'll make it faster next episode.

  • @jnixie
    @jnixie Před 4 dny

    Teaching how actually code minecraft is nicest thing and most impressive thing you can probably do

  • @chedbely
    @chedbely Před dnem +1

    Incredible.

  • @cubeoi
    @cubeoi Před 3 dny +1

    awesome sauce

  • @LolNoUsernameL
    @LolNoUsernameL Před dnem +1

    Almost a 1000 subs 🔥🔥🔥

  • @jeandang8376
    @jeandang8376 Před 6 dny

    So cool!

  • @Shadow-Silver-Reboot
    @Shadow-Silver-Reboot Před 3 dny +1

    interesting, earned a sub

  • @zappilg
    @zappilg Před 4 dny

    was watching this until 12 o’clock now it’s one

  • @Luilu
    @Luilu Před 3 dny

    Cool projekt

  • @blackiedape765
    @blackiedape765 Před dnem +1

    i have seen a lot of people commenting:why did you add pen down instead of stamp
    stamping can not be changed by alot of things

  • @MegaGameBeaast
    @MegaGameBeaast Před 13 hodinami

    instantly subbed

  • @user-nc7tk4zi9v
    @user-nc7tk4zi9v Před 9 hodinami

    This tutorial even works in python! (i went through the tutorial twice ¯\_(ツ)_/¯ ) also, for some reason, it's faster in scratch. probably because python is slow. ): Cool Video though! keep up the good work!

  • @blackiedape765
    @blackiedape765 Před dnem +1

    when griffpatch was making a 3d game i thought it was a 3d minecraft game. BUT you ye somehow better thank you
    pls dont hate me for saying he is better than griffpatch

    • @yrurgrhhr
      @yrurgrhhr Před 22 hodinami +1

      griffpatch showed a thing for kids so they understand how it works and can easily change it how they want not more advanced thing

  • @Shaan-pj7zg
    @Shaan-pj7zg Před 4 dny +1

    I am amazed in your works... (10/10 tutorial(my brain didn't understand much tho(i dont know why im putting this many brackets tbh)))

    • @FindingPepper
      @FindingPepper  Před 4 dny

      If there's something in particular you didn't understand/you'd like me to explain more let me know :)

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 4 dny

      @@FindingPepper i did your tutorial but it didn't work and i can't find the problem

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 4 dny

      not that it's your fault it's totally mine for making a mistake

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 4 dny

      ive been trying the find it but no luck :(

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 4 dny

      im not really good in formulaes since i didnt learn them yet

  • @MasterScratchhandle
    @MasterScratchhandle Před 5 dny

    cool video

  • @Kazan0309
    @Kazan0309 Před 10 hodinami +1

    cool

  • @user-masum2220
    @user-masum2220 Před 5 dny

    griffpatch:So You Have Challenged Me In My Tutorial Mortal?

  • @banana4882
    @banana4882 Před 4 dny +1

    this is the first 3D minecraft tutorial for scratch

  • @kasonmakesstuffs
    @kasonmakesstuffs Před 2 dny +2

    Time for me: 24:35

  • @webdevvg
    @webdevvg Před 6 dny +2

    Finding Pepper, will you remember me when you get famous?

    • @FindingPepper
      @FindingPepper  Před 5 dny

      Ok, if that ever happens :)

    • @RaeRae.22
      @RaeRae.22 Před 5 dny

      I hope you do because you can help people new to scratch get better.

  • @dramagnertal6660
    @dramagnertal6660 Před 20 hodinami +1

    It's soo cool!!! But when I look down at the cube it is completely distorted(diagonal) and the controls are also diagonal. I've already checked but couldn't find any errors.
    Maybe someone could Help me?

  • @Coocoding
    @Coocoding Před 23 hodinami +1

    I clicked on this faster than my dad left for milk

  • @zappilg
    @zappilg Před 4 dny

    was watching this until 12 o’clock now it’s one 1:59

  • @Clippermakesgames
    @Clippermakesgames Před 3 dny

    WOW!!!!!!!!! DAMN!!!! This is amazing! :DD:D:D:DDDDDDDDD

  • @StevoPero
    @StevoPero Před 3 dny +2

    Waiting for part 2...

    • @FindingPepper
      @FindingPepper  Před 2 dny +2

      I release videos weekly when possible so the next episode will be Sunday

    • @Oitato-os4rl
      @Oitato-os4rl Před dnem +2

      @@FindingPepper okay... btw you deserve more subscribers :)

    • @Oitato-os4rl
      @Oitato-os4rl Před 18 hodinami +1

      @@FindingPepper tomorrow is the day!🔥

  • @villagerzock5468
    @villagerzock5468 Před 3 dny

    you could use a square sprite and stamp that so that you get perfect pixels and not circles

    • @FindingPepper
      @FindingPepper  Před 3 dny

      I wish, but the problem comes with setting the color. There is no saturation effect for some strange reason so not all colors can be achieved. This will be important when we do texture scanning later on.

  • @DimaDZisHere
    @DimaDZisHere Před 20 hodinami

    You have almost 1,000 subs! (944 subs)

  • @zappilg
    @zappilg Před 4 dny

    I would recommend you to send the FOV to 70 because that’s the standard fov for Minecraft

    • @FindingPepper
      @FindingPepper  Před 3 dny

      The FOV scale is different here! An FOV of 70 would not work very well... try it and you'll see!

  • @realafarzan
    @realafarzan Před 6 dny +1

    i wonder if this is gonna be combined with the terrain generation tutorial

    • @FindingPepper
      @FindingPepper  Před 6 dny +2

      I'll make a 3D perlin noise terrain generation tutorial at some point which I may combine with this

  • @Thecuberminecraftarchitect

    HERE WE GO AGAIN

  • @plooshie...
    @plooshie... Před dnem +1

    This video is really cool! However, there is. bug when I go to the other side of the block and everything is flipped... is this a bug I made? or is it happening to you as well? will you be mentioning this fix in part 2?

    • @FindingPepper
      @FindingPepper  Před dnem

      Nope it's not in mine. If you send me a link over Scratch to your project I can try to find the issue there.

    • @plooshie...
      @plooshie... Před dnem

      @@FindingPepper ok!

    • @plooshie...
      @plooshie... Před dnem

      ​@@FindingPepper for some reason, the comment is not showing, can you check the 'held for review' comments? i think youtube thought it was bad

    • @FindingPepper
      @FindingPepper  Před dnem

      ​@@plooshie... You have to do it on scratch because youtube eats links

    • @plooshie...
      @plooshie... Před 23 hodinami

      @@FindingPepper oh no, sorry for the inconvenience, i just fixed it because i put a 'sin rot h + 90' variable instead of a 'sin rot v + 90', sorry

  • @Quake_129
    @Quake_129 Před 6 dny +2

    ive never seen a raycasting engine using a tile grid

  • @blue_toad299
    @blue_toad299 Před 2 dny +1

    you could stamp small squares instead of pen dots, correct?

    • @FindingPepper
      @FindingPepper  Před dnem

      That would be ideal, but then you wouldn't be able to get the full range of color because there's no saturation effect for some reason.

  • @zappilg
    @zappilg Před 3 dny

    Wow, so creative you have to wait 35 hours just to do recasting

  • @Gamedevbunny
    @Gamedevbunny Před 2 dny +2

    When will u drop ep 2 So i can watch it early

    • @FindingPepper
      @FindingPepper  Před 2 dny

      I release videos weekly when possible so the next episode will be Sunday

    • @Gamedevbunny
      @Gamedevbunny Před 2 dny

      @@FindingPepper ok ty!

  • @nyanlinnko
    @nyanlinnko Před 7 hodinami

    Is raycasting how Minecraft made?! (Probably not)

  • @therealmobs
    @therealmobs Před dnem +2

    idk why, but my blocks are not showing :(

  • @RonicTheEgg
    @RonicTheEgg Před 6 dny

    YOOOOOOOO

  • @BrunoAgripino
    @BrunoAgripino Před 5 dny

    yo!!😄

  • @andresguevara4469
    @andresguevara4469 Před 5 dny

    Very Hard so FindingPepper is oh really this turboWarp

  • @zappilg
    @zappilg Před 4 dny

    My brain is trying to process every variable

  • @funnysilver123
    @funnysilver123 Před 3 dny

    Griffpatch 2.0

  • @minhhoangle-jn4kf
    @minhhoangle-jn4kf Před 19 hodinami

    perfect 999 sub

  • @CheesyAnimates
    @CheesyAnimates Před 3 dny

    Can you upload the sb3 file? I followed the tutorial but right at the end everything turned into a line!

    • @FindingPepper
      @FindingPepper  Před 3 dny

      If you share your scratch project I can try to find the bug. The link will have to be sent over Scratch though or else youtube will eat it.

    • @CheesyAnimates
      @CheesyAnimates Před 3 dny

      @@FindingPepper ok

  • @user-xn3sm6dt8m
    @user-xn3sm6dt8m Před 3 dny

    cool and impressive, but way too fast

    • @FindingPepper
      @FindingPepper  Před 3 dny

      If you'd like me to explain anything in more detail let me know

  • @Shaan-pj7zg
    @Shaan-pj7zg Před 3 dny +1

    view, WE'LL DELETE ALL OF YOU: 23:54 (put 0.5 x speed for greater effect)

    • @FindingPepper
      @FindingPepper  Před 3 dny

      I was trying to say "we'll delete all of view" but that's funnier

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 2 dny

      @@FindingPepper yeah, i noticed that. but it also sounded like that

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 2 dny

      also, could you help me understand your code a bit better please

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 2 dny

      especially the unit circle and how you get those formulaes

    • @Shaan-pj7zg
      @Shaan-pj7zg Před 2 dny

      also, there is another problem in my code

  • @anonymoususer7667
    @anonymoususer7667 Před 3 dny

    i think i did something wrong it does not render the cubes

  • @somewhatawesomegames915

    why didn't it work i put the exact same thing

    • @jeandang8376
      @jeandang8376 Před dnem

      Me to. 😂 Most of the people got it right, so I guess I better continue searching again. There are alot of places where you could have made a mistake, like a "cos rot v" to a "cos rot h" or a "sin rot h" to a "cos rot h" or simply a x and y mix. There are really a lot of places where you could mess up.

  • @zappilg
    @zappilg Před 3 dny

    23:10 I swear this is the worst part

  • @BitBloxDevs
    @BitBloxDevs Před 5 dny +1

    J

  • @somewhatawesomegames915

    this is to confusing for me

    • @FindingPepper
      @FindingPepper  Před 2 dny

      If there's anything you'd like me to explain in more detail let me know

    • @somewhatawesomegames915
      @somewhatawesomegames915 Před 2 dny +1

      @@FindingPepper yeah this tutorial is actually making a really working minecraft i'm gonna see if i can fix the coding for mine

    • @somewhatawesomegames915
      @somewhatawesomegames915 Před 2 dny +1

      but nice job i will give you a free subscribe and i also liked the video

    • @somewhatawesomegames915
      @somewhatawesomegames915 Před 2 dny +1

      @@FindingPepper for me steve is forever spinning lol

    • @somewhatawesomegames915
      @somewhatawesomegames915 Před 2 dny

      WAIT I MADE IT PAST 23:16 I GOT CONFUSED LAST TIME YAY

  • @fnf_pros
    @fnf_pros Před 3 dny +1

    your tutorials are just griffpatch's

  • @ArcherNesbitt
    @ArcherNesbitt Před 3 dny

    19:49 WWWWHHHHHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

  • @ArcherNesbitt
    @ArcherNesbitt Před 3 dny

    how do you memorize this?????????????