Discuss Scratch

griefercube
Scratcher
500+ posts

3d top down thing (rendering)

So I have a 2d tile engine (found in my project Cubey Mines) which has mostly basic features that a 2d tile engine has. It runs on chunks 16x16 and has a decent sorting system for chunks.

The question is, how do I add the “parallax” 3d effect into a 2d tile engine (thus making it 2.5d)?

I’ve searched around the internet but couldn’t find a satisfying answer.

Help appreciated!

What I want to recreate are the walls “caving in” and the top bit larger than the bottom bit. I have the shadows figured out. (texture made by me, taken in minecraft):
MultiTasker801
Scratcher
100+ posts

3d top down thing (rendering)

with a sprite-based tiling system you're not going to be able to accomplish a satisfying result. since you appear to also be using sprites or clones thereof to create backgrounds and such, a pen solution probably won't work very well either. it would also have issues if you were to use purely pen for your background too. your best bet is probably using clones of tiles which get progressively smaller and move toward the center of the screen, which will cost too many clones and look generally awful. scratch is just not the right choice for something like this
griefercube
Scratcher
500+ posts

3d top down thing (rendering)

MultiTasker801 wrote:

with a sprite-based tiling system you're not going to be able to accomplish a satisfying result. since you appear to also be using sprites or clones thereof to create backgrounds and such, a pen solution probably won't work very well either. it would also have issues if you were to use purely pen for your background too. your best bet is probably using clones of tiles which get progressively smaller and move toward the center of the screen, which will cost too many clones and look generally awful. scratch is just not the right choice for something like this

I have noticed this, and yes, unless I want to expand it into a full-blown 3d engine, achieving this with clones (or using a gigantic costume) is probably the easiest. However, if I were to do said cloning/tiling, how would I minimise the clones actually used? Is there an efficient way to calculate which tiles are blocked in view, thus, not having to be rendered?
griefercube
Scratcher
500+ posts

3d top down thing (rendering)

bump
griefercube
Scratcher
500+ posts

3d top down thing (rendering)

bump

Powered by DjangoBB