How to Make a 3D Game in Scratch | Minecraft in Scratch E1
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
big fan. glad to see another scratch content creator make sick projects
Your so underatted, This is such an understanding video btw!! U earned a new sub
6 subs left to 1k !!! 😮 Great work!
Bro, I loved this project! is the first real tutorial of 3D Minecraft that i see!
Actually someone made Minecraft before but unfortunately no tutorial and nobody understand anything
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)
thank you so much all the other 3d tutorials are so hard to understand this makes it so easy
this is underrated
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
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?
Thanks! I'm very glad to hear it!
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
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.
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!
@@FindingPepper So true XD.
@@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!
Woah! So cool! Hope you post part two this sunday!
I have been waiting for 6 days and I am so impatient
the best minecraft tutorial
You can make circles too by that. Its not only minecraft
No way I clicked on this video so fast.
This channel gets better every video you upload.
Good work, as usual! 😊
Thanks :)
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
Thanks! I know this one is quite slow as well but we'll make it faster next episode.
Teaching how actually code minecraft is nicest thing and most impressive thing you can probably do
Incredible.
awesome sauce
Almost a 1000 subs 🔥🔥🔥
So cool!
interesting, earned a sub
was watching this until 12 o’clock now it’s one
Cool projekt
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
instantly subbed
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!
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
griffpatch showed a thing for kids so they understand how it works and can easily change it how they want not more advanced thing
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)))
If there's something in particular you didn't understand/you'd like me to explain more let me know :)
@@FindingPepper i did your tutorial but it didn't work and i can't find the problem
not that it's your fault it's totally mine for making a mistake
ive been trying the find it but no luck :(
im not really good in formulaes since i didnt learn them yet
cool video
cool
griffpatch:So You Have Challenged Me In My Tutorial Mortal?
this is the first 3D minecraft tutorial for scratch
I suppose it is!
I mean not really, but it is one of the few.
Time for me: 24:35
Finding Pepper, will you remember me when you get famous?
Ok, if that ever happens :)
I hope you do because you can help people new to scratch get better.
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?
I clicked on this faster than my dad left for milk
was watching this until 12 o’clock now it’s one 1:59
WOW!!!!!!!!! DAMN!!!! This is amazing! :DD:D:D:DDDDDDDDD
Thanks!
Waiting for part 2...
I release videos weekly when possible so the next episode will be Sunday
@@FindingPepper okay... btw you deserve more subscribers :)
@@FindingPepper tomorrow is the day!🔥
you could use a square sprite and stamp that so that you get perfect pixels and not circles
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.
You have almost 1,000 subs! (944 subs)
I would recommend you to send the FOV to 70 because that’s the standard fov for Minecraft
The FOV scale is different here! An FOV of 70 would not work very well... try it and you'll see!
i wonder if this is gonna be combined with the terrain generation tutorial
I'll make a 3D perlin noise terrain generation tutorial at some point which I may combine with this
HERE WE GO AGAIN
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?
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.
@@FindingPepper ok!
@@FindingPepper for some reason, the comment is not showing, can you check the 'held for review' comments? i think youtube thought it was bad
@@plooshie... You have to do it on scratch because youtube eats links
@@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
ive never seen a raycasting engine using a tile grid
Tile grids are the best, I love them
i cant wait for episode 2 :)
you could stamp small squares instead of pen dots, correct?
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.
Wow, so creative you have to wait 35 hours just to do recasting
Then why did you watch the video?
When will u drop ep 2 So i can watch it early
I release videos weekly when possible so the next episode will be Sunday
@@FindingPepper ok ty!
Is raycasting how Minecraft made?! (Probably not)
idk why, but my blocks are not showing :(
Me neither
YOOOOOOOO
yo!!😄
Very Hard so FindingPepper is oh really this turboWarp
My brain is trying to process every variable
Griffpatch 2.0
perfect 999 sub
Can you upload the sb3 file? I followed the tutorial but right at the end everything turned into a line!
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.
@@FindingPepper ok
cool and impressive, but way too fast
If you'd like me to explain anything in more detail let me know
view, WE'LL DELETE ALL OF YOU: 23:54 (put 0.5 x speed for greater effect)
I was trying to say "we'll delete all of view" but that's funnier
@@FindingPepper yeah, i noticed that. but it also sounded like that
also, could you help me understand your code a bit better please
especially the unit circle and how you get those formulaes
also, there is another problem in my code
i think i did something wrong it does not render the cubes
fixed it i never set the height amount
why didn't it work i put the exact same thing
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.
23:10 I swear this is the worst part
J
K
L
M
this is to confusing for me
If there's anything you'd like me to explain in more detail let me know
@@FindingPepper yeah this tutorial is actually making a really working minecraft i'm gonna see if i can fix the coding for mine
but nice job i will give you a free subscribe and i also liked the video
@@FindingPepper for me steve is forever spinning lol
WAIT I MADE IT PAST 23:16 I GOT CONFUSED LAST TIME YAY
your tutorials are just griffpatch's
Factually incorrect
They are expansion, like mentioned in the videos.
19:49 WWWWHHHHHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Ye long equations are always scary
how do you memorize this?????????????
I have notes :)