Discuss Scratch

jmetaxas29
Scratcher
83 posts

3 dimensional scratch

I know that this is a very complicated topic to cover and after practising coding with scratch, I think I can dive into 3D scratch games. I know Griffpatch has a raycaster tutorial series, but it's not the kind of project I want. I want those platformer-ish 3D games. I know some things about 3D like 1st person, 3rd person, viewpoint, x, y, and z positions, the vanishing point and the 2 rotation directions. I think I'm ready to dive into this sort of stuff.

Thanks a lot for viewing this and trying to help me!
@jmetaxas29
GIitchInTheMatrix
Scratcher
1000+ posts

3 dimensional scratch

Here’s a really good tutorial for a ‘true’ 3d game.
Spentine
Scratcher
1000+ posts

3 dimensional scratch

GIitchInTheMatrix wrote:

Here’s a really good tutorial for a ‘true’ 3d game.
It's not really a true 3d game because you can't really “stand” on platforms or be in the sky looking at the ground from a bird's eye view, because it would mess up everything.

The way to make a “true” 3d game is to learn some linear algebra and trigonometry, or you can just learn how to manipulate quaternions to do the rotation. A helpful article to get the transformation of the world to the camera working is with this article on Wikipedia.

Once you got the basic principle down, you can implement the Painter's Algorithm (objects far away get rendered first while objects close to the camera get rendered last), some culling (if an object is out of the field of view then don't render it), and also implementing a tri-filler.

Alternatively, you can raycast rather than rendering with triangles. There is a tradeoff; the game will have a lower resolution, but higher quality.
jmetaxas29
Scratcher
83 posts

3 dimensional scratch

ok, thanks a lot for both of your help! I truly appreciate it!
jmetaxas29
Scratcher
83 posts

3 dimensional scratch

GIitchInTheMatrix wrote:

Here’s a really good tutorial for a ‘true’ 3d game.
However, that tutorial is not really what I'm looking for. I'm trying to make a 3rd person Luigi's Mansion game that has 3D walls, objects e.t.c. and not have everything be a 2D piece of art. Thanks a lot though!
jmetaxas29
Scratcher
83 posts

3 dimensional scratch

jmetaxas29 wrote:

GIitchInTheMatrix wrote:

Here’s a really good tutorial for a ‘true’ 3d game.
However, that tutorial is not really what I'm looking for. I'm trying to make a 3rd person Luigi's Mansion game that has 3D walls, objects e.t.c. and not have everything be a 2D piece of art. Thanks a lot though!
I'm not sure if this was seen
jmetaxas29
Scratcher
83 posts

3 dimensional scratch

jmetaxas29 wrote:

jmetaxas29 wrote:

GIitchInTheMatrix wrote:

Here’s a really good tutorial for a ‘true’ 3d game.
However, that tutorial is not really what I'm looking for. I'm trying to make a 3rd person Luigi's Mansion game that has 3D walls, objects e.t.c. and not have everything be a 2D piece of art. Thanks a lot though!
I'm not sure if this was seen
still not sure if this was seen
legendary34678
Scratcher
1000+ posts

3 dimensional scratch

Have you looked at Spentine's suggestion? Also, try not to bump your topic unless it's been 24 hours since the last post lol.

Powered by DjangoBB