you can add an extra 2-10 FPS by making a variable called "Rotated". then wrap an if statement around the variable blocks that calculate the sin and cos of the directions, make the condition "ïf Rotated = 1". at the start of move camera, set rotated to 0 and set rotated to 1 if the camera changes direction, this makes it so that you dont have to constantly calculate the sin and cos of the directions
Next episode will be about collision! Unfortunately raycasting is just really slow, so optimizing further is difficult. I may do a "better" 3D tutorial at some point based on triangles/vertices.
For anyone that needs it, if your blocks aren't rendering correctly (appears black) then I have the answer. When you export the file for the scanner one list has nothing in it but is very crucial for the image scanning. Which is the ghost values list. Griffpatch's video explains what values to put but basically you need to manually put in the values for the ghost values
im proud that you have 1k subs the reason im recreating minecraft on scratch becuz i miss alot of my friends they quit and unstailed minecraft one by one and they tell they saw creepy ghost then i got a virus so i unstailed minecraft and all of my memories of minecraft was gone thanks findingpepper you made my mood better
i got a waring and i looked in minecraft myself and i saw textureless blocks and my other worlds was gone and i was scared of seeing a ghost or smthing cuz im a scaredy cat
Could the next episode in this series (after collisions) be about placing blocks? We could use the "place block at…" custom block, but I am not sure how we could define where to place it with the mouse, since it could theoretically be anywhere…
Sure, I can do a poll when we get closer! Placing blocks isn't actually too hard because we can make use of our raycasting and the "view x" and "view y" variables.
i believe you can make the ray that shoots directly in the middle of the screen a crosshair, and make it to where if the mouse is pressed and the ray is casting on a block it should remove the block at the position the ray casted, its the same for placing a block but change the mouse button to another button and check for the position of the ray before it collides with a block to place a block on a block face your looking at.
For people who want to boost the FPS u can use Turbowarp and set the FPS to "250" which is the max fps you can set. But if you want to add delta time to the movement you use Griffpatch's fps system he uses in his "Raycasting EP 6 Performance" and have the camera movement multiplied by the "DELTA" variable.
@@joshuabarqueesimeth4530 we get 2 seperate month long vacations around the middle of the year and around a month off in december idk how its like in other countries
TIP I FOUND: If the texture is cut off (like one block shows 2 textures) Do this: • Go to the textures costume in the Scanner sprite • Switch it to bitmap • Carefully select one texture • Copy and paste the texture to a new costume • Center the image • Then look at the costume and it will show you the actual texture size. NOTE: If there are 2 different numbers when you look at the costume, you selected the texture wrong.
1k subs!!!! Tip: It might be very complicated, but try to make it so the raycaster doesn't render any faces that are "inside" other faces You could also have them fade out the closer they are to the edge of view
Yeah I was meaning to do the fade out thing but I felt the video was getting a bit long. What do you mean by "inside" other faces? If you mean going inside blocks, I don't intend for that to stay possible.
when someone creates a walking animation they egt 100K views, now when you make minecraft 3d in scratch you gain 800 views.. how this fair?? + nice work
I want the textures to be scanned vertically because otherwise it would be difficult to differentiate the different columns. If there were multiple columns in the texture costume, the rows of pixels in the displayed textures would alternate between multiple textures and not display the full texture of any of them. If you need more textures you could add multiple texture costumes.
I have 4 Questions and ideas For the next videos. 1. Can you add a 3D Skybox 2. I've done that but can you add like a mouse drag camera instead of looking with the arrows. 3. Can you make it have Less lag i need it to not lag. 4. Idk but maybe optimization and bug fixes.
Can someone help me? My movement is bugged, when I look anywhere and try to walk forward, it doesn't follow the direction, and starts to move as if I were looking forward (I fixed it)
Cool tutorial! I wonder when there will be E3 to this! Also i started to watch your Paper Minecraft tutorial. Can you do episode 7 please? Edit: You just got +1 subcriber!
I think I found it. 🎉 It’s probably that in the scan sprite, where you switch costume to « textures » , it is still the old one even thought you deleted it. Switch it to the updated « textures » costume. The reason for this problem is that it doesn’t have anything to scan so it goes on forever.
Rectangles would be farely easy. Circles (or in this case speres would be kinda hard (if you wanna add shading to them, otherwise its just a sigle dot.)
@@TheKlad I'll probably do a standalone tutorial on 3D generation (probably in mid August), then combine it with the Minecraft project afterward. So probably episode 4 or 5.
Hey, im really stuck on this and ive checked it 5 times, when i run the project, the top and bottom and 2 of the x pictures are perfect but 2 of the scanned pictures stretch based on where i move, how do i resolve this?
You can see what happens when you set the resolution to a low number (higher quality) -- it's incredibly laggy. It's hard to make less laggy without using a different 3D method (involving triangles) which is what is generally used for 3D. I went with this method because it's simpler.
@@sssamson1768 Yeah it's very wasteful but it's easier to code :) And scanning doesn't need to be done at all during gameplay so the speed isn't too important.
I do have question, why u have the textures to go vertical and not horizontal like Grffpatch's engine. Because using Griffpatch's method it will be a bit easier to add more textures. Also have fun with your vacation! :D
for some reason when I have more than i cube, when I click the green flag, the cubes are split into a stair case and it looks like the cubes are being split apart by rows. Idk how else to explain it I wish I can show a picture
Using this tutorial, I've tried to make procedural generating terrain using noise, collisions, trees, gravity and breaking and placing blocks. I've tried casting a ray directly in front of the player and get the block info, but for some reason my ray is being casted from the centre to the top-right screen, instead of the centre to centre. Can you explain the mechanics of how the rays move? Anyways, thanks for this tutorial!
hey, i have a suggestion for which texture goes on which face you could make 1 or more lists for the texture/textures on each side of the block, so for example grass could be grasstop, grass, grass, grass, grass, dirt, and for dirt it could be dirt, dirt, dirt, dirt, dirt, dirt
I have a question. Whenever I run the scanner, It'll start but then freeze up after a few seconds. If I turn off Warp Timer, the tab crashes. I double checked and everything looks to be identical, is there any explanation for this?
I found a problem in my code the whole thing works fine but when I ran it to see if the textures work the textures were just plain black- How Do I fix this??
Well I can't do it on youtube because it doesn't support links, so could you give me your project link on finding pepper's scratch profile? (Could you also give me your username so I can identify you because there are A LOT of people asking for help) If I can't find the bug, I will give you the project link of my project so you can save it to your computer, then load it on your own project.
Do you mean in the scan textures? If yes, then it probably is because you "switch costume to textures" but the old costume that was deleted. Switch it to the updated costume. If that wasn't the problem or the problem still isn't fixed, then please explain in detail what the bug is.
Lovely stuff! But at this point one should proceed only for the fun of it. In, say, Unity, everything up to this point would be possible in about 3 minutes. But great work nonetheless!
you can add an extra 2-10 FPS by making a variable called "Rotated". then wrap an if statement around the variable blocks that calculate the sin and cos of the directions, make the condition "ïf Rotated = 1". at the start of move camera, set rotated to 0 and set rotated to 1 if the camera changes direction, this makes it so that you dont have to constantly calculate the sin and cos of the directions
Oh that's a good idea!
@@FindingPepper :)
Hello friend@@RonicTheEgg
@@Gamedevanimatorbunny hai
Can`t wait for a next episode!
Glad to hear it! It will sadly be a decent wait, as I'll be traveling next month.
Incredible! I wonder What the next episode will be about! (Hope we get more optimizations next month!)
Next episode will be about collision! Unfortunately raycasting is just really slow, so optimizing further is difficult. I may do a "better" 3D tutorial at some point based on triangles/vertices.
@@FindingPepper cool i wonder how u do it
@@FindingPepper i guess my python version will just have to stay at 2 fps.
@@user-nc7tk4zi9v loll
@@FindingPepper mesh rendering :0
oh wow this is super under rated ❤ you should have 100k subs❤
Been on scratch for almost 5 years now, first time seeing something like this, excited to see what happenes next, sub earned.
For anyone that needs it, if your blocks aren't rendering correctly (appears black) then I have the answer. When you export the file for the scanner one list has nothing in it but is very crucial for the image scanning. Which is the ghost values list. Griffpatch's video explains what values to put but basically you need to manually put in the values for the ghost values
I am sure that will help a lot of people! Thanks.
An fps counter might be a good idea and maybe transparent blocks would look epic maybe also entities
I can't believe this series is real, keep up the great work!
AMAZING! Your channel has growed alot and it HIT 1K SUBSCRIBERS!!!
im proud that you have 1k subs
the reason im recreating minecraft on scratch becuz i miss alot of my friends they quit and unstailed minecraft one by one and they tell they saw creepy ghost then i got a virus so i unstailed minecraft and all of my memories of minecraft was gone thanks findingpepper you made my mood better
how to you get a virus over Minecraft? 💀
i got a waring and i looked in minecraft myself and i saw textureless blocks and my other worlds was gone and i was scared of seeing a ghost or smthing cuz im a scaredy cat
@@blackiedape765 were you playing Error 422? 💀
@@blackiedape765 if thats not error 422, thats a virus from somewere else thats also affecting minecraft
@@endermanthony12467 IM PLAYING ON MOBILE my mobile is weird so idk everything on it
Could the next episode in this series (after collisions) be about placing blocks?
We could use the "place block at…" custom block, but I am not sure how we could define where to place it with the mouse, since it could theoretically be anywhere…
Sure, I can do a poll when we get closer! Placing blocks isn't actually too hard because we can make use of our raycasting and the "view x" and "view y" variables.
i believe you can make the ray that shoots directly in the middle of the screen a crosshair, and make it to where if the mouse is pressed and the ray is casting on a block it should remove the block at the position the ray casted, its the same for placing a block but change the mouse button to another button and check for the position of the ray before it collides with a block to place a block on a block face your looking at.
@@FindingPepper what about the the "Z" so we know how far it is from the camera?
@@jeandang8376 You could use the dist variable
@@FindingPepper ok
For people who want to boost the FPS u can use Turbowarp and set the FPS to "250" which is the max fps you can set. But if you want to add delta time to the movement you use Griffpatch's fps system he uses in his "Raycasting EP 6 Performance" and have the camera movement multiplied by the "DELTA" variable.
The problem is that Scratch can't even run the project at 30 fps.
i had a week off school and the week went by so fast i thought this video was released super early
dont you get the summer off? its 3 months off.
@@joshuabarqueesimeth4530 no its different where i live
@@realafarzan damn i feel bad bro.
@@joshuabarqueesimeth4530 we get 2 seperate month long vacations around the middle of the year and around a month off in december idk how its like in other countries
TIP I FOUND: If the texture is cut off (like one block shows 2 textures) Do this:
• Go to the textures costume in the Scanner sprite
• Switch it to bitmap
• Carefully select one texture
• Copy and paste the texture to a new costume
• Center the image
• Then look at the costume and it will show you the actual texture size.
NOTE: If there are 2 different numbers when you look at the costume, you selected the texture wrong.
how do i fix the weird line under blocks
THE MOST UNDERRATED YTBER I'VE FOUND
Thanks!
1k subs!!!!
Tip: It might be very complicated, but try to make it so the raycaster doesn't render any faces that are "inside" other faces
You could also have them fade out the closer they are to the edge of view
Yeah I was meaning to do the fade out thing but I felt the video was getting a bit long. What do you mean by "inside" other faces? If you mean going inside blocks, I don't intend for that to stay possible.
@@FindingPepperthey mean that if a side of a block is behind another face (you cant see it becuase there is a different block side in front of it)
Man please e3 I love you.
when someone creates a walking animation they egt 100K views, now when you make minecraft 3d in scratch you gain 800 views.. how this fair?? + nice work
put the texture costume top left so u have more room to add textuers
I want the textures to be scanned vertically because otherwise it would be difficult to differentiate the different columns. If there were multiple columns in the texture costume, the rows of pixels in the displayed textures would alternate between multiple textures and not display the full texture of any of them. If you need more textures you could add multiple texture costumes.
could you add terrain generation based on seed in nexr episode?
underrated
I have 4 Questions and ideas For the next videos.
1. Can you add a 3D Skybox
2. I've done that but can you add like a mouse drag camera instead of looking with the arrows.
3. Can you make it have Less lag i need it to not lag.
4. Idk but maybe optimization and bug fixes.
Mouse controls might be in the next episode. Unfortunately it's hard to optimize this further as Scratch is just very laggy.
1. czcams.com/video/s2mBL3_tUZI/video.html at 3:55
2. czcams.com/video/uO9RUgXuNK8/video.html
3. put higher resolution and lower render distance
@@RonicTheEgg thanks
@@FindingPepper thanks
@@EBT_227-xb4uk np
Early! And you have amazing talent
how you gonna do the grass and flowers
AMAZING!!! You gonna try to add Entitys?
Thanks! I may do entities, though if I do it won't be for a while.
hey I can't access scratch on my computer because of a bug o I use GANDI and can't download the scanner :(
can you make reflections and shadows
i love scratch but i am too lazy to build this. still watching the full playlist as it comes out!
Can someone help me? My movement is bugged, when I look anywhere and try to walk forward, it doesn't follow the direction, and starts to move as if I were looking forward (I fixed it)
Welp i can give you my project link.
@@nokhinsiu7210i fixed it
@@nokhinsiu7210I fixed it… but now I have another problem, every time I look left or right, my project start lagging until it frezzes.
Can you upload the file? My project is not drawing the blocks. (I fixed)
how did you fixed it?
Cool tutorial! I wonder when there will be E3 to this!
Also i started to watch your Paper Minecraft tutorial. Can you do episode 7 please?
Edit: You just got +1 subcriber!
Episode 3 will release when I'm back from my trip, at the beginning of August.
@@FindingPepper The fact that i named this sprite "Game" before i knew that you named this "Game" too
Yes!
bro you are going to vacation just like ceebee a scratch team
please help when i run my project it gets stuck on the 2nd scan pass and doesnt run the rest of the project
I think I might know the problem. Hang on…
I think I found it. 🎉 It’s probably that in the scan sprite, where you switch costume to « textures » , it is still the old one even thought you deleted it. Switch it to the updated « textures » costume. The reason for this problem is that it doesn’t have anything to scan so it goes on forever.
@@jeandang8376 thanks! (Im gonna remake from first EP cuz I stole someones copy and try this)
Noice!
save the individual 6 faces as block data so you dont have to run all that ifs in the raycasts
can you teach me how to add custom block shapes like circles and rectangles thank you.
Rectangles would be farely easy. Circles (or in this case speres would be kinda hard (if you wanna add shading to them, otherwise its just a sigle dot.)
@@Coder64-Castle alright thx
Can you make in 3rd episode about generation and inventory? Your tutorials are amazing!
Next episode will be on physics/collisions, then I'll turn to some 3D generation the following episodes. After that, maybe breaking/placing blocks.
@@FindingPepper Oh, so... approximately in which episode will the generation be?
@@TheKlad I'll probably do a standalone tutorial on 3D generation (probably in mid August), then combine it with the Minecraft project afterward. So probably episode 4 or 5.
@@FindingPepper Ok!
My project isn't working and the textures are appearing swirls of blue and black. Somebody help.
If you comment your project link on my scratch profile I may be able to help
good video bro!
Hey, im really stuck on this and ive checked it 5 times, when i run the project, the top and bottom and 2 of the x pictures are perfect but 2 of the scanned pictures stretch based on where i move, how do i resolve this?
Could you send a link to your (shared) project on scratch?
@@rebeccaxing74 sadly it won't let me share it onto scratch it's on turbo warp
@@Sd7m15 save to your computer, then go to scratch create a project, then in file, click load from your computer.
You can now share this project.
@@rebeccaxing74I did it now, the project is called "please fix girl from yt" (it is the name of the project I'm not joking)
@@Sd7m15 Great! 👍 I will look into that.
This is awesome!
Great video, how would you go about up-ing the resolution of each block at a farther distance? Thanks!
You can see what happens when you set the resolution to a low number (higher quality) -- it's incredibly laggy. It's hard to make less laggy without using a different 3D method (involving triangles) which is what is generally used for 3D. I went with this method because it's simpler.
How would I make the project detect for separate columns of textures as well? Instead of just the single column?
You could add multiple texture sprites, each a single column (episode 4 establishes a framework for this)
@@FindingPepper I feel like that’s wasteful, I mean you can fit like 29 more columns of textures.
@@sssamson1768 Yeah it's very wasteful but it's easier to code :)
And scanning doesn't need to be done at all during gameplay so the speed isn't too important.
Hey, i'm watching the series, but my blocks have infinite lenght, i looked at all the scripts but didn't find nothing wrong, could you help me?
nevermind i solved it
I do have question, why u have the textures to go vertical and not horizontal like Grffpatch's engine. Because using Griffpatch's method it will be a bit easier to add more textures.
Also have fun with your vacation! :D
Check the comment below.
It's so that they are easier to define which is first and with is last as the scanning scripts might not do it the way you intend it to.
@@rebeccaxing74 ah I see
1k subs!!! 🎉🎉🎉
Thanks for your support on these videos and previous ones!
P L S T O E P I S O D E 3
for some reason when I have more than i cube, when I click the green flag, the cubes are split into a stair case and it looks like the cubes are being split apart by rows. Idk how else to explain it I wish I can show a picture
Did you set the pen size to « resolution*1.4 »
@@jeandang8376 yes
@@Polaar54 could you sent your project link on findingpepper’s profile, if he has time he might be able to fix it
u gonna add occlusion?
Next episode
When I do the faster raycasting optimization, my cube is only two pixels tall and the inside of the cube is not rendered
The inside is not supposed to be rendered
Did you set all the variables in the beginning of the video?
How can we like make other shapes and how is it possible to make the blocks smother and not that choppy
Decrease the RES variable for better resolution.
Using this tutorial, I've tried to make procedural generating terrain using noise, collisions, trees, gravity and breaking and placing blocks. I've tried casting a ray directly in front of the player and get the block info, but for some reason my ray is being casted from the centre to the top-right screen, instead of the centre to centre. Can you explain the mechanics of how the rays move?
Anyways, thanks for this tutorial!
That's awesome! A ray of view x/y of 0/0 is in the center of the screen (different from most other coding languages where 0/0 is in the corner).
@@FindingPepper Oh, that helps, thanks!
@@FindingPepper I've implemented it. I used the player to cast a ray instead of a separate ray and now it casts from the centre to the centre.
hey, i have a suggestion for which texture goes on which face
you could make 1 or more lists for the texture/textures on each side of the block, so for example grass could be grasstop, grass, grass, grass, grass, dirt, and for dirt it could be dirt, dirt, dirt, dirt, dirt, dirt
That's a pretty good idea! But I think it might be a bit more complicated than necessary especially when we don't have many blocks.
@@FindingPepper you will have much block
noice
W VID!!
Nice project
I have a question. Whenever I run the scanner, It'll start but then freeze up after a few seconds. If I turn off Warp Timer, the tab crashes. I double checked and everything looks to be identical, is there any explanation for this?
oh wait. I forgot to change the costume from the original to the new one.
I found a problem in my code the whole thing works fine but when I ran it to see if the textures work the textures were just plain black- How Do I fix this??
Did you make sure it was the « scan » list that you were setting the colour variable to?
It’s a very important part
@@jeandang8376 yeah
@@jeandang8376 can you give me a scratch link to this because I remember downloading in my files but its not there so I dont have it.
Well I can't do it on youtube because it doesn't support links, so could you give me your project link on finding pepper's scratch profile? (Could you also give me your username so I can identify you because there are A LOT of people asking for help) If I can't find the bug, I will give you the project link of my project so you can save it to your computer, then load it on your own project.
Bro.can you make 3d triangle collison in scratch?i want to make 3d obj file rendeeing.
Maybe someday
When ep 3
august bc he is travelling
@@LucasD. Ok
Is this textures supposed to load very long?
Do you mean in the scan textures? If yes, then it probably is because you "switch costume to textures" but the old costume that was deleted. Switch it to the updated costume.
If that wasn't the problem or the problem still isn't fixed, then please explain in detail what the bug is.
Lovely stuff! But at this point one should proceed only for the fun of it. In, say, Unity, everything up to this point would be possible in about 3 minutes.
But great work nonetheless!
True, though I find it to be a fun challenge!
this looks like minecraft 4k
what a super hard code
What up
The sky
Is that in the next episode?
@@Coocoding No it's above me :)
hi
Last video my things weren't rendering
Did you sent a link to findingpepper’s profile on scratch?
I'm gonna make a rick roll animation >:D
69th like