cool. you should enter my contest for only the best scratchers. just click on my name and fine the contest progect to figure out how to enter. Please Enter!!!!!!!PPPLLLEEEAAASSSEEE!!!!!!!!!!!!!!!!!!!!
Bosox, I still recognise the little shadow of the ball in your remix ;-) - If you want to use this more, here are some ideas:
3D pong (or call it squash)
3D breakout
3D basketball
3D hit a target
3D ball obstacle course (keep obstacles easy, or the game will slow down)
Just... let rip!
I've added some more details about the Math in the notes column.
If any one needs more help, I'll make some animations, like canthiar and his raytracer. But you'll have to wait a bit - I've got my day job to do.
I think in computer 3-D the illusion is difficult to make convincing.
After I tried it I realised it needed the shadow. I tried noise when it bounces off the walls, but the sound lags behind, so it's just confusing!
Wow, this is amazing and beautiful to look at, the way it bounces off the floor and the walls. I love it, especially the shadow makes for a spectacular 3D illusion!
Maybe I will - I was thinking of hitting a target , going through a hoop or in a basket - loose a ball if it goes over the wall.
It's not a game now because I teach with this, so I male something basic to show off a technique, and leave it to students to exploit it some more.
This new version should be easier to work out and also to make remixes from.
One loop does all the display, and another one does the position in 3D - bouncing, falling etc.
To remix, try duplicating the ball, and you'll get a second ball in no time. Change its starting coordinates and speed.
The old notes are here:
To understand this, download it first (!). The ball has 3 co-ordinates in the room: x, y, z positions (z is depth away from you). First, we decide on the proportions of the space where we are working. I wanted the ball to be half the size when it's at the far end, so z is transformed following this formula:
zfactor = 1+(z/400)
This way, if - z=0, zfactor = 1 (max size) - z=400, zfactor = 2 (furthest away, min size)
Now to place the ball we do:
screen x = x/zfactor screen y = y/zfactor size % = 100/zfactor
Simple, innit? It's called one-point perspective.
To get the ball to move, we use speed co-ordinates, like a ball in 2D, only there are 3 speeds, for the 3 axes. I added a co-ordinate to the "gravity ball" example provided with the samples.
Comments
You need to be logged in to post comments
Add a Comment
cool. you should enter my contest for only the best scratchers. just click on my name and fine the contest progect to figure out how to enter. Please Enter!!!!!!!PPPLLLEEEAAASSSEEE!!!!!!!!!!!!!!!!!!!!
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
It is 3d afterall..... WWWWWWWWWWWWWWWWOOOOOOOOOOOOOOOOOOWWWWWWWWWWWWWWWWWWWWW
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
(link to project)
(view all replies)Comment Reply
coollllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
(view all replies)Comment Reply
bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce
(view all replies)Comment Reply
Awesome..
(view all replies)Comment Reply
I think i can do this a much simpler, i'll try
(view all replies)Comment Reply
I check it out
(view all replies)Comment Reply
I'm not bothered about not getting credit, but I had hoped there would be more remixes! I thought this was easy, obviously I was wrong.
(view all replies)Comment Reply
lol the remixes dont even give you credit... same round shadow, too...
(view all replies)Comment Reply
shume : )
(view all replies)Comment Reply
I am guessing (even though I didn't download it) that it sences using the shadow.
(view all replies)Comment Reply
this is......................... words fail me to say how awesome it is
(view all replies)Comment Reply
I like it
(view all replies)Comment Reply
dum
(view all replies)Comment Reply
Bosox, I still recognise the little shadow of the ball in your remix ;-) - If you want to use this more, here are some ideas: 3D pong (or call it squash) 3D breakout 3D basketball 3D hit a target 3D ball obstacle course (keep obstacles easy, or the game will slow down) Just... let rip!
(view all replies)Comment Reply
i wasn't tryin to copy u i just had a great idea! this is still awesome though
(view all replies)Comment Reply
nice
(view all replies)Comment Reply
I've added some more details about the Math in the notes column. If any one needs more help, I'll make some animations, like canthiar and his raytracer. But you'll have to wait a bit - I've got my day job to do.
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
the best. how do i remix it and use the ball?
(view all replies)Comment Reply
lol. <3
(view all replies)Comment Reply
Its real!
(view all replies)Comment Reply
Thats so AWESOME!
(view all replies)Comment Reply
wow it's pretty basic because it repeats the same pattern, but it's really cool
(view all replies)Comment Reply
u r a great programer!
(view all replies)Comment Reply
i thought it must be easy to make but it's not.
(view all replies)Comment Reply
i took a look at the programing and almost fainted.
(view all replies)Comment Reply
AWESOME
(view all replies)Comment Reply
An excellent illusion!
(view all replies)Comment Reply
Looks really nice. There is a lot of interest in going "3d" with Scratch and we're starting to see some good examples.
(view all replies)Comment Reply
I think in computer 3-D the illusion is difficult to make convincing. After I tried it I realised it needed the shadow. I tried noise when it bounces off the walls, but the sound lags behind, so it's just confusing!
(view all replies)Comment Reply
Really good. Didn't see this originally. The physics and perspective look really convincing.
(view all replies)Comment Reply
Wow, this is amazing and beautiful to look at, the way it bounces off the floor and the walls. I love it, especially the shadow makes for a spectacular 3D illusion!
(view all replies)Comment Reply
This is great and there are many possibilities to make this into a 3d game.
(view all replies)Comment Reply
Maybe I will - I was thinking of hitting a target , going through a hoop or in a basket - loose a ball if it goes over the wall. It's not a game now because I teach with this, so I male something basic to show off a technique, and leave it to students to exploit it some more.
(view all replies)Comment Reply
this is cool but what would be evan better is if u make it into a game
(view all replies)Comment Reply
wow this is cool.
(view all replies)Comment Reply
sweet
(view all replies)Comment Reply