infact this is one of the best simulation projects on scratch its like a 3d shooter template/engine. You just invented unlimited possibilities on scratch!
Awsome!I tried to make something like this but when I tried to get them to move further away from each other as you gat closer I kinda screwed the rest up.
This is very good. It can be used for making a virtual world, which would be very interesting. There is a program called alice that does this sort of thing, and it's cool that you can do this on scratch. This must have taken a long time!
(If you haven't read my previous comment, read it now to get some background, or this will be entirely random). Alright, now that you have a scale factor, all you need to do is set the sprite's size to that scale factor * 100. (To convert from a percent) After that, take your x and y positions stored in variables, and multiply them by the scale factor. You now have learned how to do a perspective transformation. (Note: you need to calculate the scale factor for each new Z position)
Hmm... It's pretty good, but I downloaded it, expecting the correct math, but what I found was apparently random. In real 3d, you need to use a scale factor, obtained using the equation: sf = fl / (fl + z) Where sf is the resulting scale factor, fl is the focal length, and z is the current z position. The simple explanation of the focal length is that it is a number that scales the z position. I would recommend you just set this to 300. (Continued on next comment)
i think you'll find it does use real maths although i have followed no instructions and have worked it out for myself so it may not be the common method. the basics are that things further away are smaller and also tend towards a horizon.
it should be elliptical. if it looks square i'll check it because i made one change before submitting to simplify it so it would run faster. this may be the problem.
When you move back and forth it looks like it has a panoramic effect
Download this project!
Download the 14 sprites and 27 scripts of "3d experiment" and open it in Scratch
Project Notes
just an experiment.
getting things to be behind objects closer and in front of those further away was the trickiest part.
feel free to develope it.
arrow keys to move. mouse to aim. space to fire.
remix it with your own sprite costumes if you want.
Comments
You need to be logged in to post comments
Add a Comment
you might be interested in this
infact this is one of the best simulation projects on scratch its like a 3d shooter template/engine. You just invented unlimited possibilities on scratch!
super awsome i might use it for a shooting game thanks
cool
sweet!
wow, cool!
wicked cool!
Great work kid.
Guauuuuuuuuuuu!!!!!!!! Very good game .is just what I needed my game !!!!!!!!!!!!! Thanks !!!!! Very good!
good engine for mario kart 64 ;-)
you inspared me!
AWESOME!!!!! LOVE
cool, but please take the gun out of it.
Why're you complaining, your icon's a tank!
this is really amazing!
This is good, it's really useful for a lot of people.
please feel free anyone to change the sprites and background to make your own games using this engine.
when you click on objecks they dissapear
cool! ur really talented at 3D animation!
uzume
!!!I love it!
awesome
Great! I love it! I have seen 3D projects but this is awesome!
it's kinda glitchy but still good, great and even awesome
Awsome!I tried to make something like this but when I tried to get them to move further away from each other as you gat closer I kinda screwed the rest up.
You are quite a good scratch programmer!
this is incredible!
I've been trying to make something like this for a while!
how long did it take u 2 make this? its geat!!!
1-2 hours. i had made other 3d things before on scratch.
This is very good. It can be used for making a virtual world, which would be very interesting. There is a program called alice that does this sort of thing, and it's cool that you can do this on scratch. This must have taken a long time!
wow all the math talk
i blew up evry thing
Cool bigB
Amazing!
(If you haven't read my previous comment, read it now to get some background, or this will be entirely random). Alright, now that you have a scale factor, all you need to do is set the sprite's size to that scale factor * 100. (To convert from a percent) After that, take your x and y positions stored in variables, and multiply them by the scale factor. You now have learned how to do a perspective transformation. (Note: you need to calculate the scale factor for each new Z position)
how did you work that out?! scratch is not designed to make 3d projects! i don't belive it! wow!
(view all replies)Hmm... It's pretty good, but I downloaded it, expecting the correct math, but what I found was apparently random. In real 3d, you need to use a scale factor, obtained using the equation: sf = fl / (fl + z) Where sf is the resulting scale factor, fl is the focal length, and z is the current z position. The simple explanation of the focal length is that it is a number that scales the z position. I would recommend you just set this to 300. (Continued on next comment)
i think you'll find it does use real maths although i have followed no instructions and have worked it out for myself so it may not be the common method. the basics are that things further away are smaller and also tend towards a horizon.
excellent work!!
Wow. I'm adding this to my favourites. It's a great 3D engine.
That is cool! Very nice 3d!
this is an interesting dimension. objects seem to move in a sqaure path as you turn round instead of a circle path.
it should be elliptical. if it looks square i'll check it because i made one change before submitting to simplify it so it would run faster. this may be the problem.
(view all replies)Cool!
When you move back and forth it looks like it has a panoramic effect