This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-03 14:30:43

Tatl
Scratcher
Registered: 2012-09-09
Posts: 37

3d

Hi! I'm relatively new to Scratch, (I lost my password, and haven't been active lately, but I'm back now!  smile )

And I've seen many 3D projects, mostly in the 2.0 beta, and I can't find any tutorials. I think some are called "ray-casters", and there are others that use pen. I've seen a lot of stuff like this, and I don't know how to program the extra Z dimension.  sad

Can anyone help me out? Just a formula for Z position would work too. I'd be happy to experiment around with it.

Offline

 

#2 2013-03-03 16:42:18

Tatl
Scratcher
Registered: 2012-09-09
Posts: 37

Re: 3d

bump

Offline

 

#3 2013-03-03 16:43:43

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: 3d

Well, I don't have anything, though I could point out a few things. To add in an extra z dimension, you're going to need another variable called z for your z position. Along with that, you're most likely going to need a variable (or two) for the player's direction because this is a 3D world, not a 2D one.

Now, in all cases, your going to have to have to make the items shrink or grow depending on wether or not your moving away from them. The basic formula is that the double the distance, the half their size, as well as visa versa. The only problem is to make this work, you need to base it off of a sample size & distance, so make sure that you get it right the first time. If done correctly, it'll give you a truly beautiful 3D effect, but only if you can pull it off.

Also, you're most likely going to need costumes of each object from multiple view points, so make sure that you do that.

Finally, this'll all involve trigonometry, so make sure that you completely sure what sin, cos, tan, ect... do.

Well, seeing as I haven't dabbled much with this subject, I just want to say one more thing: good luck!

With regards,

ErnieParke


http://i46.tinypic.com/35ismmc.png

Offline

 

#4 2013-03-03 20:20:16

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: 3d

Yikes. That's tough. The best I can do for you is Scratch Wiki.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2013-03-04 12:16:10

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Offline

 

Board footer