Discuss Scratch

fyromaniac1
Scratcher
100+ posts

How to make Basic 3D

3D, the hardest thing on the planet. Really, it's not that complex! The only skill you need to know is using a pen, and sine, if you want to.

Sine:
Sine is a math operation that however big the number is, it will never get more than 1 (Unless you add or multiply). For example, if you use this script…
whenclickedforeverchangesineby1setmovementtosinofsinesetxtomovement
…The sine variable will keep going up, but the movement, will keep going up and down, like a wave. This can be used to make a rotation illusion. Remember, this type of 3D is only an illusion, and that real 3D graphics can not be used on Scratch.

In most 3D projects you see, looking inside the project will just make your brain explode. This method is a lot easier, but less 3D.

The custom block:
You'll need a block to make something 3D. Here it is:
define3Dxyrotxrotyrot
The x and y variables tell where the line starts, and the x,y rots tell where it will be going.
define3Dxyrotxrotyrotgotoxx*xrotyy*yrot

All good? Brain still together? I hope so, because we are almost done!

Mapping, and penning:
You are almost done! now, you need to map all the points/vertices of your object. Lets also make the rots go with the mouse.
define3Dxygotoxx*mousexyy*mouseywhenclickedforever3D-1001003D1001003D-1001003D-100-100
This should make a square, and last but not least, the pen!

The pen needs to be cleared every time it draws the square, so the script will be changed to this:
define3Dxygotoxx*mousexyy*mouseywhenclickedforeverpenuppendownclear3D-1001003D1001003D-1001003D-100-100

That's about it! Any questions, comments? Make a post here! Thanks for your time!
Have a great day!


Special thanks to R2Dav2 for the info!

Last edited by fyromaniac1 (Feb. 12, 2014 17:18:47)

CN12
Scratcher
1000+ posts

How to make Basic 3D

*mind blown*

Great guide, though!
OrcaCat
Scratcher
1000+ posts

How to make Basic 3D

Thanks! That's awesome!

Wait, shouldn't it be
define3Dxygotoxx*mousexyy*mouseywhenclickedpendownforeverclear3D-1001003D100-1003D-1001003D-100-100

Last edited by OrcaCat (Jan. 28, 2014 01:33:41)

fyromaniac1
Scratcher
100+ posts

How to make Basic 3D

Both work, but on some scripts have the pen go up, go to the original position, and repeat.
OrcaCat
Scratcher
1000+ posts

How to make Basic 3D

Thanks
fyromaniac1
Scratcher
100+ posts

How to make Basic 3D

BadPiggiesscra
Scratcher
23 posts

How to make Basic 3D

sianof9
BadPiggiesscra
Scratcher
23 posts

How to make Basic 3D



BadPiggiesscra wrote:

sianof9

problem…
fyromaniac1
Scratcher
100+ posts

How to make Basic 3D

I fixed that

BadPiggiesscra wrote:

BadPiggiesscra wrote:

sianof9

problem…
retsamekop10
Scratcher
31 posts

How to make Basic 3D

Wait, so sine never goes above 0 yet it gets to be changed to a number above zero? Can someone explain this in a bit more detail.
OrcaCat
Scratcher
1000+ posts

How to make Basic 3D

retsamekop10 wrote:

Wait, so sine never goes above 0 yet it gets to be changed to a number above zero? Can someone explain this in a bit more detail.
Sine never goes above +-1
peterpi212
Scratcher
2 posts

How to make Basic 3D

i think i went wrong somewhere

http://scratch.mit.edu/projects/20381568/
19cougardistaga
Scratcher
58 posts

How to make Basic 3D

thank u very helpful.
Darwin_Schuppan
Scratcher
2 posts

How to make Basic 3D

Doesen' t work!?
Darwin_Schuppan
Scratcher
2 posts

How to make Basic 3D

What's with the Z axís ? Is it gonn?
Patcharisu
Scratcher
30 posts

How to make Basic 3D

Actually sine and cosine are math terms to convert angles into points on a grid.
gigapouch
Scratcher
1000+ posts

How to make Basic 3D

It doesn't work.
LeoMessiTheKing
New Scratcher
5 posts

How to make Basic 3D

Um…it doesn't work!!
theminingboy
Scratcher
11 posts

How to make Basic 3D

I want to know how to make stuff 3d
aceh18
Scratcher
100+ posts

How to make Basic 3D

It is just showing me my sprite and a blue line. And what am I supposed to use as the sprite. Please get to me as soon as possible!

Powered by DjangoBB