ScratchData LogoScratchData
Back to Youtube-king's profile

New 3D-Demonstration

YOYoutube-king•Created April 8, 2023
New 3D-Demonstration
121
92
1458 views
View on Scratch

Instructions

ENG: I have seen similar 3d engines in Scratch. There are even Wolfenstein 3D! But I wanted to learn some trigonometry, and make 3D project by myself, without tutorials(and I am just 14, so it was challenge) The result is cool! There are no touching blocks - all the map are storing in list. How does it works? Like regular ray tracer with pen. But how can we touch the walls, that are storing in the list? We create variables X,Y,direction. Distance "1" is length of wall. So we need to make small steps - 0.1 or less. We are starting on the camera position and changing X by sin(direction)*0.1 and Y by cos(directon)*0.1. And when we collide with wall, we need to print wall, by size 3000/distance from camera... I know, it's quite hard. But you can do it too! If you have 3d projects - send them to the comments

Description

Thanks to @X10Bombs for the music! Please watch projects of others russian-speaking scratchers - @SpartanDav and @Alex-ilya

Project Details

Project ID832597861
CreatedApril 8, 2023
Last ModifiedApril 16, 2023
SharedApril 8, 2023
Visibilityvisible
CommentsAllowed