Minecraft in Scratch E2 | Texturing Blocks and Optimization

Sdílet
Vložit

Komentáře • 173

  • @RonicTheEgg
    @RonicTheEgg Před měsícem +13

    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

  • @Crazy_D0c
    @Crazy_D0c Před měsícem +9

    Can`t wait for a next episode!

    • @FindingPepper
      @FindingPepper  Před měsícem +5

      Glad to hear it! It will sadly be a decent wait, as I'll be traveling next month.

  • @user-nc7tk4zi9v
    @user-nc7tk4zi9v Před měsícem +8

    Incredible! I wonder What the next episode will be about! (Hope we get more optimizations next month!)

    • @FindingPepper
      @FindingPepper  Před měsícem +3

      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.

    • @maxwins112
      @maxwins112 Před měsícem

      @@FindingPepper cool i wonder how u do it

    • @user-nc7tk4zi9v
      @user-nc7tk4zi9v Před měsícem

      ​@@FindingPepper i guess my python version will just have to stay at 2 fps.

    • @avyansingh3972
      @avyansingh3972 Před měsícem

      @@user-nc7tk4zi9v loll

    • @KindOfWitch
      @KindOfWitch Před měsícem

      @@FindingPepper mesh rendering :0

  • @mateuszpragnacy8327
    @mateuszpragnacy8327 Před měsícem +7

    oh wow this is super under rated ❤ you should have 100k subs❤

  • @Shadow-dd1qp
    @Shadow-dd1qp Před měsícem

    Been on scratch for almost 5 years now, first time seeing something like this, excited to see what happenes next, sub earned.

  • @Jonathan-sp9un
    @Jonathan-sp9un Před měsícem +2

    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

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem

      I am sure that will help a lot of people! Thanks.

  • @slashthegreatxd7815
    @slashthegreatxd7815 Před měsícem +4

    An fps counter might be a good idea and maybe transparent blocks would look epic maybe also entities

  • @bowedwolfgaming
    @bowedwolfgaming Před měsícem

    I can't believe this series is real, keep up the great work!

  • @LucasD.
    @LucasD. Před měsícem +1

    AMAZING! Your channel has growed alot and it HIT 1K SUBSCRIBERS!!!

  • @blackiedape765
    @blackiedape765 Před měsícem +1

    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

    • @endermanthony12467
      @endermanthony12467 Před měsícem

      how to you get a virus over Minecraft? 💀

    • @blackiedape765
      @blackiedape765 Před měsícem +1

      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

    • @endermanthony12467
      @endermanthony12467 Před měsícem

      @@blackiedape765 were you playing Error 422? 💀

    • @endermanthony12467
      @endermanthony12467 Před měsícem

      @@blackiedape765 if thats not error 422, thats a virus from somewere else thats also affecting minecraft

    • @blackiedape765
      @blackiedape765 Před měsícem

      @@endermanthony12467 IM PLAYING ON MOBILE my mobile is weird so idk everything on it

  • @jeandang8376
    @jeandang8376 Před měsícem +3

    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…

    • @FindingPepper
      @FindingPepper  Před měsícem +2

      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.

    • @joshuabarqueesimeth4530
      @joshuabarqueesimeth4530 Před měsícem +1

      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.

    • @jeandang8376
      @jeandang8376 Před měsícem +1

      @@FindingPepper what about the the "Z" so we know how far it is from the camera?

    • @FindingPepper
      @FindingPepper  Před měsícem

      @@jeandang8376 You could use the dist variable

    • @jeandang8376
      @jeandang8376 Před měsícem

      @@FindingPepper ok

  • @DaAlphaDawg
    @DaAlphaDawg Před měsícem +1

    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.

    • @FindingPepper
      @FindingPepper  Před měsícem +1

      The problem is that Scratch can't even run the project at 30 fps.

  • @realafarzan
    @realafarzan Před měsícem +2

    i had a week off school and the week went by so fast i thought this video was released super early

    • @joshuabarqueesimeth4530
      @joshuabarqueesimeth4530 Před měsícem

      dont you get the summer off? its 3 months off.

    • @realafarzan
      @realafarzan Před měsícem

      @@joshuabarqueesimeth4530 no its different where i live

    • @joshuabarqueesimeth4530
      @joshuabarqueesimeth4530 Před měsícem

      @@realafarzan damn i feel bad bro.

    • @realafarzan
      @realafarzan Před měsícem

      @@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

  • @Xman-m5f
    @Xman-m5f Před 14 dny

    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.

  • @anonymoususer7667
    @anonymoususer7667 Před měsícem +2

    how do i fix the weird line under blocks

  • @cornfur6969
    @cornfur6969 Před měsícem

    THE MOST UNDERRATED YTBER I'VE FOUND

  • @user-nil_cyan
    @user-nil_cyan Před měsícem +1

    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

    • @FindingPepper
      @FindingPepper  Před měsícem +2

      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.

    • @sillyheadtv
      @sillyheadtv Před měsícem +1

      @@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)

  • @ROADMAKERS-jf9nt
    @ROADMAKERS-jf9nt Před měsícem +1

    Man please e3 I love you.

  • @Guy-21
    @Guy-21 Před měsícem +3

    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

  • @maxwins112
    @maxwins112 Před měsícem +2

    put the texture costume top left so u have more room to add textuers

    • @FindingPepper
      @FindingPepper  Před měsícem +2

      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.

  • @DinnerboneWiki
    @DinnerboneWiki Před měsícem +3

    could you add terrain generation based on seed in nexr episode?

  • @xoxogamewolf7585
    @xoxogamewolf7585 Před 2 dny

    underrated

  • @EBT_227-xb4uk
    @EBT_227-xb4uk Před měsícem +2

    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.

    • @FindingPepper
      @FindingPepper  Před měsícem

      Mouse controls might be in the next episode. Unfortunately it's hard to optimize this further as Scratch is just very laggy.

    • @RonicTheEgg
      @RonicTheEgg Před měsícem +1

      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

    • @EBT_227-xb4uk
      @EBT_227-xb4uk Před měsícem

      @@RonicTheEgg thanks

    • @EBT_227-xb4uk
      @EBT_227-xb4uk Před měsícem

      @@FindingPepper thanks

    • @RonicTheEgg
      @RonicTheEgg Před měsícem

      @@EBT_227-xb4uk np

  • @Friendlyclassic
    @Friendlyclassic Před měsícem

    Early! And you have amazing talent

  • @emerybrown6145
    @emerybrown6145 Před měsícem +1

    how you gonna do the grass and flowers

  • @user-wc2wo6bg8s
    @user-wc2wo6bg8s Před měsícem +2

    AMAZING!!! You gonna try to add Entitys?

    • @FindingPepper
      @FindingPepper  Před měsícem

      Thanks! I may do entities, though if I do it won't be for a while.

  • @Canarddelice
    @Canarddelice Před měsícem +1

    hey I can't access scratch on my computer because of a bug o I use GANDI and can't download the scanner :(

  • @-Bread123-
    @-Bread123- Před měsícem +1

    can you make reflections and shadows

  • @SpiritOfTheGalaxy143
    @SpiritOfTheGalaxy143 Před měsícem

    i love scratch but i am too lazy to build this. still watching the full playlist as it comes out!

  • @PedroGamer411
    @PedroGamer411 Před 25 dny +2

    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)

    • @nokhinsiu7210
      @nokhinsiu7210 Před 24 dny

      Welp i can give you my project link.

    • @PedroGamer411
      @PedroGamer411 Před 24 dny

      @@nokhinsiu7210i fixed it

    • @PedroGamer411
      @PedroGamer411 Před 24 dny

      @@nokhinsiu7210I fixed it… but now I have another problem, every time I look left or right, my project start lagging until it frezzes.

  • @TheKlad
    @TheKlad Před měsícem +4

    Can you upload the file? My project is not drawing the blocks. (I fixed)

  • @Kurczaq
    @Kurczaq Před měsícem

    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!

    • @FindingPepper
      @FindingPepper  Před měsícem

      Episode 3 will release when I'm back from my trip, at the beginning of August.

    • @Kurczaq
      @Kurczaq Před 19 dny

      @@FindingPepper The fact that i named this sprite "Game" before i knew that you named this "Game" too

  • @nokhinsiu7210
    @nokhinsiu7210 Před měsícem +2

    Yes!

  • @Soheil-Shah-Rabien
    @Soheil-Shah-Rabien Před měsícem +1

    bro you are going to vacation just like ceebee a scratch team

  • @sillyheadtv
    @sillyheadtv Před měsícem +3

    please help when i run my project it gets stuck on the 2nd scan pass and doesnt run the rest of the project

    • @jeandang8376
      @jeandang8376 Před měsícem +1

      I think I might know the problem. Hang on…

    • @jeandang8376
      @jeandang8376 Před měsícem +1

      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.

    • @sillyheadtv
      @sillyheadtv Před měsícem

      @@jeandang8376 thanks! (Im gonna remake from first EP cuz I stole someones copy and try this)

  • @mr-steam5744
    @mr-steam5744 Před měsícem +2

    Noice!

  • @giosee_
    @giosee_ Před 3 hodinami

    save the individual 6 faces as block data so you dont have to run all that ifs in the raycasts

  • @WhosHeres
    @WhosHeres Před měsícem +1

    can you teach me how to add custom block shapes like circles and rectangles thank you.

    • @Coder64-Castle
      @Coder64-Castle Před měsícem

      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.)

    • @WhosHeres
      @WhosHeres Před 29 dny

      @@Coder64-Castle alright thx

  • @TheKlad
    @TheKlad Před měsícem +1

    Can you make in 3rd episode about generation and inventory? Your tutorials are amazing!

    • @FindingPepper
      @FindingPepper  Před měsícem +1

      Next episode will be on physics/collisions, then I'll turn to some 3D generation the following episodes. After that, maybe breaking/placing blocks.

    • @TheKlad
      @TheKlad Před měsícem

      @@FindingPepper Oh, so... approximately in which episode will the generation be?

    • @FindingPepper
      @FindingPepper  Před měsícem +1

      @@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.

    • @TheKlad
      @TheKlad Před měsícem

      @@FindingPepper Ok!

  • @user-rh2rv7hg8r
    @user-rh2rv7hg8r Před 15 dny

    My project isn't working and the textures are appearing swirls of blue and black. Somebody help.

    • @FindingPepper
      @FindingPepper  Před 15 dny

      If you comment your project link on my scratch profile I may be able to help

  • @DemidCode
    @DemidCode Před měsícem +1

    good video bro!

  • @Sd7m15
    @Sd7m15 Před měsícem +1

    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?

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem

      Could you send a link to your (shared) project on scratch?

    • @Sd7m15
      @Sd7m15 Před měsícem

      @@rebeccaxing74 sadly it won't let me share it onto scratch it's on turbo warp

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem

      @@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.

    • @Sd7m15
      @Sd7m15 Před měsícem

      ​@@rebeccaxing74I did it now, the project is called "please fix girl from yt" (it is the name of the project I'm not joking)

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem

      @@Sd7m15 Great! 👍 I will look into that.

  • @sjehjekahshejejahejrjr
    @sjehjekahshejejahejrjr Před měsícem

    This is awesome!

  • @gastonchannel9036
    @gastonchannel9036 Před měsícem

    Great video, how would you go about up-ing the resolution of each block at a farther distance? Thanks!

    • @FindingPepper
      @FindingPepper  Před měsícem

      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
    @sssamson1768 Před 11 dny

    How would I make the project detect for separate columns of textures as well? Instead of just the single column?

    • @FindingPepper
      @FindingPepper  Před 9 dny

      You could add multiple texture sprites, each a single column (episode 4 establishes a framework for this)

    • @sssamson1768
      @sssamson1768 Před 9 dny

      @@FindingPepper I feel like that’s wasteful, I mean you can fit like 29 more columns of textures.

    • @FindingPepper
      @FindingPepper  Před 9 dny

      @@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.

  • @SpiderXt2
    @SpiderXt2 Před 9 dny

    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?

  • @DaAlphaDawg
    @DaAlphaDawg Před měsícem

    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

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem +1

      Check the comment below.

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem +2

      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.

    • @DaAlphaDawg
      @DaAlphaDawg Před měsícem +1

      @@rebeccaxing74 ah I see

  • @jeandang8376
    @jeandang8376 Před měsícem

    1k subs!!! 🎉🎉🎉

    • @FindingPepper
      @FindingPepper  Před měsícem +1

      Thanks for your support on these videos and previous ones!

  • @WOLAt5j
    @WOLAt5j Před měsícem +1

    P L S T O E P I S O D E 3

  • @Polaar54
    @Polaar54 Před měsícem

    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

    • @jeandang8376
      @jeandang8376 Před měsícem

      Did you set the pen size to « resolution*1.4 »

    • @Polaar54
      @Polaar54 Před měsícem

      @@jeandang8376 yes

    • @jeandang8376
      @jeandang8376 Před měsícem

      @@Polaar54 could you sent your project link on findingpepper’s profile, if he has time he might be able to fix it

  • @RonicTheEgg
    @RonicTheEgg Před měsícem +1

    u gonna add occlusion?

  • @Polaar54
    @Polaar54 Před měsícem

    When I do the faster raycasting optimization, my cube is only two pixels tall and the inside of the cube is not rendered

    • @jeandang8376
      @jeandang8376 Před měsícem

      The inside is not supposed to be rendered

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem

      Did you set all the variables in the beginning of the video?

  • @wolfcrafter2147
    @wolfcrafter2147 Před měsícem +1

    How can we like make other shapes and how is it possible to make the blocks smother and not that choppy

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem

      Decrease the RES variable for better resolution.

  • @plooshie...
    @plooshie... Před měsícem +1

    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!

    • @FindingPepper
      @FindingPepper  Před měsícem

      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).

    • @plooshie...
      @plooshie... Před měsícem

      @@FindingPepper Oh, that helps, thanks!

    • @plooshie...
      @plooshie... Před měsícem

      @@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.

  • @champion_ofcloud-var
    @champion_ofcloud-var Před měsícem

    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

    • @FindingPepper
      @FindingPepper  Před měsícem

      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.

    • @champion_ofcloud-var
      @champion_ofcloud-var Před měsícem

      @@FindingPepper you will have much block

  • @Kazan0309
    @Kazan0309 Před měsícem +2

    noice

  • @culan_SCP
    @culan_SCP Před měsícem +1

    W VID!!

  • @Luilu
    @Luilu Před měsícem

    Nice project

  • @Novaprospekkt
    @Novaprospekkt Před měsícem

    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?

    • @Novaprospekkt
      @Novaprospekkt Před měsícem

      oh wait. I forgot to change the costume from the original to the new one.

  • @avyansingh3972
    @avyansingh3972 Před měsícem +1

    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??

    • @jeandang8376
      @jeandang8376 Před měsícem

      Did you make sure it was the « scan » list that you were setting the colour variable to?

    • @jeandang8376
      @jeandang8376 Před měsícem

      It’s a very important part

    • @avyansingh3972
      @avyansingh3972 Před měsícem

      @@jeandang8376 yeah

    • @avyansingh3972
      @avyansingh3972 Před měsícem

      @@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.

    • @jeandang8376
      @jeandang8376 Před měsícem

      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.

  • @LionelTravenp
    @LionelTravenp Před měsícem

    Bro.can you make 3d triangle collison in scratch?i want to make 3d obj file rendeeing.

  • @Gamedevanimatorbunny
    @Gamedevanimatorbunny Před měsícem +1

    When ep 3

  • @Note_Cubes
    @Note_Cubes Před měsícem

    Is this textures supposed to load very long?

    • @rebeccaxing74
      @rebeccaxing74 Před měsícem +1

      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.

  • @Someone_43
    @Someone_43 Před měsícem

    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!

    • @FindingPepper
      @FindingPepper  Před měsícem

      True, though I find it to be a fun challenge!

  • @nekisus
    @nekisus Před měsícem +1

    this looks like minecraft 4k

  • @Minecraft_alpha_uploads706
    @Minecraft_alpha_uploads706 Před měsícem +1

    what a super hard code

  • @Coocoding
    @Coocoding Před měsícem +1

    What up

  • @GamerHouse2.0
    @GamerHouse2.0 Před měsícem +2

    hi

  • @Sh33pysleepy
    @Sh33pysleepy Před měsícem

    Last video my things weren't rendering

    • @jeandang8376
      @jeandang8376 Před měsícem

      Did you sent a link to findingpepper’s profile on scratch?

  • @Xman-m5f
    @Xman-m5f Před 14 dny

    I'm gonna make a rick roll animation >:D

  • @champion_ofcloud-var
    @champion_ofcloud-var Před měsícem

    69th like