Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » 3D on scratch, And how it's professionally accomplished
- jaenotfake4
-
Scratcher
6 posts
3D on scratch, And how it's professionally accomplished
anyways I just wanted to converted to scratch blocksdefine converted (3d drawing math)
set [Draw X v] to (( (Point X) - (Camera X)) * ( (FOV) / ( (Point Z) - (Camera Z) ) ))
set [Draw Y v] to (( (Point Y) - (Camera Y)) * ( (FOV) / ( (Point Z) - (Camera Z) ) ))
converted [Draw X = ( Point X - Camera X ) * ( FOV / ( Point Z - Camera Z ) ) Draw Y = ( Point Y - Camera Y ) * ( FOV / ( Point Z - Camera Z ) )]
- jaenotfake4
-
Scratcher
6 posts
3D on scratch, And how it's professionally accomplished
object version
if <((Point Z) - (Camera Z)) <[1]> thenpen version
hide
else
set [depth mult v] to ( (FOV) / ( (Point Z) - (Camera Z) )
set [Draw X v] to (( (Point X) - (Camera X)) * (depth mult))
set [Draw Y v] to (( (Point Y) - (Camera Y)) * (depth mult))
set size to ([100] / (depth mult))
go to x: (Draw X) y: (Draw Y) // Add this to actually move the sprite!
show
end
define draw to x:(x) y:(y) z:(z) // Pass point coordinates as inputs
if <((z) - (Camera Z)) < [1]> then
// Do nothing (don't draw if behind camera)
else
set [depth_mult v] to ((FOV) / ((z) - (Camera Z)))
set [Draw X v] to (((x) - (Camera X)) * (depth_mult))
set [Draw Y v] to (((y) - (Camera Y)) * (depth_mult))
go to x: (Draw X) y: (Draw Y)
set pen size to (depth_mult)
pen down // Or use "stamp" if you want to draw a dot
pen up
end
Last edited by jaenotfake4 (April 8, 2026 16:41:04)
- ILOVETRAINS24100
-
Scratcher
41 posts
3D on scratch, And how it's professionally accomplished
What is this?define converted (3d drawing math)
set [Draw X v] to (( (Point X) - (Camera X)) * ( (FOV) / ( (Point Z) - (Camera Z) ) ))
set [Draw Y v] to (( (Point Y) - (Camera Y)) * ( (FOV) / ( (Point Z) - (Camera Z) ) ))
converted [Draw X = ( Point X - Camera X ) * ( FOV / ( Point Z - Camera Z ) ) Draw Y = ( Point Y - Camera Y ) * ( FOV / ( Point Z - Camera Z ) )]
- fenchthebuilder13
-
Scratcher
53 posts
3D on scratch, And how it's professionally accomplished
3D projectionWhat is this?define converted (3d drawing math)
set [Draw X v] to (( (Point X) - (Camera X)) * ( (FOV) / ( (Point Z) - (Camera Z) ) ))
set [Draw Y v] to (( (Point Y) - (Camera Y)) * ( (FOV) / ( (Point Z) - (Camera Z) ) ))
converted [Draw X = ( Point X - Camera X ) * ( FOV / ( Point Z - Camera Z ) ) Draw Y = ( Point Y - Camera Y ) * ( FOV / ( Point Z - Camera Z ) )]
- Mimi-EEEEE
-
Scratcher
100+ posts
3D on scratch, And how it's professionally accomplished
One day, I'll make a 3D Raytraced Platformer on scratch. Maybe.
- Paradox5698
-
Scratcher
2 posts
3D on scratch, And how it's professionally accomplished
well its 2D/3D so why not? Glue3D doesn't have 2D so I think it's a good thing.bro is trying to one-up Gl00B now ggs guys we're cooked the war of thetrue, cuz IM MAKING CSV CODER WHICH IS 2D/3D engineNOT AT ALLits the only 3D engine on scratchglue3d is gonna be the best 3d engine on scratch fris realesed!
- ametrine_
-
Scratcher
1000+ posts
3D on scratch, And how it's professionally accomplished
well its 2D/3D so why not? Glue3D doesn't have 2D so I think it's a good thing.because 2d games are already very easy to make in scratch
- fenchthebuilder13
-
Scratcher
53 posts
3D on scratch, And how it's professionally accomplished
some 3D minecraft games are made with raycasting in scratch. but the original one we played is created with 3D projectionwell its 2D/3D so why not? Glue3D doesn't have 2D so I think it's a good thing.bro is trying to one-up Gl00B now ggs guys we're cooked the war of thetrue, cuz IM MAKING CSV CODER WHICH IS 2D/3D engineNOT AT ALLits the only 3D engine on scratchglue3d is gonna be the best 3d engine on scratch fris realesed!
Last edited by fenchthebuilder13 (April 9, 2026 17:33:44)
- _-ValX-_
-
Scratcher
500+ posts
3D on scratch, And how it's professionally accomplished
why if your gonna make a 4D game huh?That would be so hard bro idk why anyone would do that
- fenchthebuilder13
-
Scratcher
53 posts
3D on scratch, And how it's professionally accomplished
since some people can do that like 2.5D 3D or 4Dwhy if your gonna make a 4D game huh?That would be so hard bro idk why anyone would do that
Last edited by fenchthebuilder13 (April 9, 2026 20:23:30)
- 3dMain
-
Scratcher
5 posts
3D on scratch, And how it's professionally accomplished
yay I finally coded my first tri filler
- cj_88000
-
Scratcher
7 posts
3D on scratch, And how it's professionally accomplished
yay I finally coded my first tri fillerNice, now add textures
- ProjetosPT-BR
-
Scratcher
73 posts
3D on scratch, And how it's professionally accomplished
Thread is just a month away from being a year old. Congrats.Now it's actually a year oldI didn't know voxelbear made a 3d engine!!!of the 3d engines? watch voxelbear's newest video to see another 3d enginebro is trying to one-up Gl00B now ggs guys we're cooked the war of thetrue, cuz IM MAKING CSV CODER WHICH IS 2D/3D engineNOT AT ALLits the only 3D engine on scratchglue3d is gonna be the best 3d engine on scratch fris realesed!
B R U H
it was not from voxelbear
- mikhail_a_m
-
Scratcher
32 posts
3D on scratch, And how it's professionally accomplished
actually, the projection formula is justwhy if your gonna make a 4D game huh?That would be so hard bro idk why anyone would do that
go to x: x/w y: y/w z: z/w
go to x: x/z y: y/z
ive actually made one before
- Raman15
-
Scratcher
100+ posts
3D on scratch, And how it's professionally accomplished
Thread is just a month away from being a year old. Congrats.Now it's actually a year oldI didn't know voxelbear made a 3d engine!!!of the 3d engines? watch voxelbear's newest video to see another 3d enginebro is trying to one-up Gl00B now ggs guys we're cooked the war of thetrue, cuz IM MAKING CSV CODER WHICH IS 2D/3D engineNOT AT ALLits the only 3D engine on scratchglue3d is gonna be the best 3d engine on scratch fris realesed!
B R U H
it was not from voxelbear
I thought he meant 3d engine where you make stuff in it I found out it's actually a platformer
- Raman15
-
Scratcher
100+ posts
3D on scratch, And how it's professionally accomplished
I would like to show you some info about CSV Closer but SCRATCH DIDNT LET ME POST THIS ALL BECAUSE I SAID 5.13D
- Raman15
-
Scratcher
100+ posts
3D on scratch, And how it's professionally accomplished
Scratch needs real moderators
- ametrine_
-
Scratcher
1000+ posts
3D on scratch, And how it's professionally accomplished
Scratch needs real moderatorsit has real moderators already
- ProjetosPT-BR
-
Scratcher
73 posts
3D on scratch, And how it's professionally accomplished
I would like to show you some info about CSV Closer but SCRATCH DIDNT LET ME POST THIS ALL BECAUSE I SAID 5.13Dcloser?
- Discussion Forums
- » Advanced Topics
-
» 3D on scratch, And how it's professionally accomplished