Discuss Scratch

tottsmc
Scratcher
55 posts

3D on scratch, And how it's professionally accomplished

recasting uses too much code I need something shorter…

Davtech12 wrote:

i might look into starting 3d by raycasting after i finish all my planned projects
kittygamer8997
Scratcher
69 posts

3D on scratch, And how it's professionally accomplished

GL00B wrote:

kittygamer8997 wrote:

GL00B wrote:

Beam_Softwares wrote:

I've been on Scratch for 2 years (this isn't my main) and I still can't understand . I'm trying to get more advanced but I can't if I can't understand this. I'll try to keep pushing though.
I've been on scratch for 7 years, and I only started to make sense of 3D after about 3 years and a half lol, but i never got something half decent till about my 6th year
YOU WHAT!? What are your other accounts!? I also did the same thing as you. 3 and a half years I started 3D. I have a different account btw. 3 and a half closer to 4 years. I said “ YOU WHAT!?” because i didn’t know you were on scratch for 4 years.
7 you mean? lol
Oops typo. Yea 7.
kittygamer8997
Scratcher
69 posts

3D on scratch, And how it's professionally accomplished

tottsmc wrote:

recasting uses too much code I need something shorter…

Davtech12 wrote:

i might look into starting 3d by raycasting after i finish all my planned projects
Raycasting isn’t that much. Maybe it is depending on what you are doing. If you look at griffpatch’s tutorial its not a lot but a 10 month scratcher. Maybe its a lot.
GL00B
Scratcher
99 posts

3D on scratch, And how it's professionally accomplished

tottsmc wrote:

how do I make a 1st person 3D thing
Raycasting!
Eboi1110
Scratcher
7 posts

3D on scratch, And how it's professionally accomplished

tottsmc wrote:

how do I make a 1st person 3D thing

Hi
-JackMcCool-
Scratcher
3 posts

3D on scratch, And how it's professionally accomplished

Amazing guide, I will definitly look into this!
badatcode123
Scratcher
56 posts

3D on scratch, And how it's professionally accomplished

A sphere tracer is a raymarcher that uses SDFs, what you described as sphere tracing is just a ray tracer that uses ray-surface intersection algorithms. Also the rgb mixing thing isn't how raytracing (specifically pathtracing) is usually done, you just multiply the color of the ray so far with the “color” of the hit surface (in quotes because there's more to it depending on the material)
GL00B
Scratcher
99 posts

3D on scratch, And how it's professionally accomplished

badatcode123 wrote:

A sphere tracer is a raymarcher that uses SDFs, what you described as sphere tracing is just a ray tracer that uses ray-surface intersection algorithms. Also the rgb mixing thing isn't how raytracing (specifically pathtracing) is usually done, you just multiply the color of the ray so far with the “color” of the hit surface (in quotes because there's more to it depending on the material)
are you @urlocalcreator in disguise or something xD
akosswan4
Scratcher
37 posts

3D on scratch, And how it's professionally accomplished

WHAT 3D engine
kittygamer8997
Scratcher
69 posts

3D on scratch, And how it's professionally accomplished

GL00B wrote:

badatcode123 wrote:

A sphere tracer is a raymarcher that uses SDFs, what you described as sphere tracing is just a ray tracer that uses ray-surface intersection algorithms. Also the rgb mixing thing isn't how raytracing (specifically pathtracing) is usually done, you just multiply the color of the ray so far with the “color” of the hit surface (in quotes because there's more to it depending on the material)
are you @urlocalcreator in disguise or something xD
True.
Davtech12
Scratcher
19 posts

3D on scratch, And how it's professionally accomplished

i dont think

tottsmc wrote:

recasting uses too much code I need something shorter…

Davtech12 wrote:

i might look into starting 3d by raycasting after i finish all my planned projects
I don't think I could figure out how to make 3d without either Ray casting with pen or maybe just maybe ray tracing if I figure that out
VonGrid
New Scratcher
1 post

3D on scratch, And how it's professionally accomplished

This is awesome! How long have you been coding for?
kittygamer8997
Scratcher
69 posts

3D on scratch, And how it's professionally accomplished

VonGrid wrote:

This is awesome! How long have you been coding for?
@GL00B has been coding for 7 years
meowiilk
Scratcher
6 posts

3D on scratch, And how it's professionally accomplished

GL00B wrote:

meowiilk wrote:

tysm this is amazing
You're welcome, any questions regarding this topic?
Yeah, actually; (I don't know if someone already asked this, sorry if someone already did) - How do you make your maps/procedural world generation (as in, for example, your video on Minecraft)?
badatcode123
Scratcher
56 posts

3D on scratch, And how it's professionally accomplished

GL00B wrote:

badatcode123 wrote:

snip
are you @urlocalcreator in disguise or something xD
nah, spong
Davtech12
Scratcher
19 posts

3D on scratch, And how it's professionally accomplished

are we even talking abt 3d stuff anymore?
miggc
Scratcher
34 posts

3D on scratch, And how it's professionally accomplished

Wait I have an opinion-ish question…. Do you prefer raycasting or just 3D? And why if u wanna add more

Last edited by miggc (May 15, 2025 04:40:25)

GL00B
Scratcher
99 posts

3D on scratch, And how it's professionally accomplished

miggc wrote:

Wait I have an opinion-ish question…. Do you prefer raycasting or just 3D? And why if u wanna add more
I'll assume you meant 3D projection and triangles by “just 3D”.
Well, my projects usually rely on raycasting. I think it's really perfect for simple console games that I'm porting here to scratch. In raycasting it's more of the process of perceiving the scene, more than projecting it and drawing it. that means raycasting:
1- automatically sorts walls and shapes
2- automatically has clipping
3- is super fast
4- is very flexible and customizable when you understand it

however, it starts to show it's problems when you want things like models with raycasting, since it's 2D your models will look super funny with no slopes in 3D, you might be able to do some tricks but it's gonna be super inconvenient and hard to control

that's why my games use a hybrid of raycasting, mode7, and actual 3D geometry!
GL00B
Scratcher
99 posts

3D on scratch, And how it's professionally accomplished

meowiilk wrote:

GL00B wrote:

meowiilk wrote:

tysm this is amazing
You're welcome, any questions regarding this topic?
Yeah, actually; (I don't know if someone already asked this, sorry if someone already did) - How do you make your maps/procedural world generation (as in, for example, your video on Minecraft)?
Ah, i did using sine and cosine. however, unlike usual generators that use it, i made the value inside ( f(x) = sin(x ) ) change using another sin and cosine blocks and some randomizers!
GL00B
Scratcher
99 posts

3D on scratch, And how it's professionally accomplished

Davtech12 wrote:

are we even talking abt 3d stuff anymore?
Yes, instead of complaining you have a button down there to report necroposting. thought of that?

Powered by DjangoBB