oh, impressionant, j'ai programmé exactement le même projet il y a quelques semaines, sans jamais avoir vu celui ci, la ressemblance est frappante! De plus le projet avec les chocs elastiques est aussi très voisin de mon jeu "sumo" (mais tes collisions sont plus précises que les miennes, j'ai abandonné avec scratch)
n*(n+1)/2 scripts pour verifier chaque collision, un cauchemar...
Sumo, genial. Il me fallait un example d'AI.
balle 3-D: pour lancer la balle on peut controler sa direction avec la souris. Alors c'est un boulet de canon... Ou une balle de golf, un ballon de foot, une boule de petanque, ou de bowling.
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
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWAAAAAAAAAAAAAAAAYYYYYYYYYYYYYY tttttttttttttttttttoooooooooooooooooooooooo aaaaaaaaaaweesome!!!!!!!!!!!!!
???????
Nice
clever
oh, impressionant, j'ai programmé exactement le même projet il y a quelques semaines, sans jamais avoir vu celui ci, la ressemblance est frappante! De plus le projet avec les chocs elastiques est aussi très voisin de mon jeu "sumo" (mais tes collisions sont plus précises que les miennes, j'ai abandonné avec scratch)
Verifie le ski... Ce que je veux c'est un point de depart facile a remixer pour des jeux 3-D.
n*(n+1)/2 scripts pour verifier chaque collision, un cauchemar... Sumo, genial. Il me fallait un example d'AI. balle 3-D: pour lancer la balle on peut controler sa direction avec la souris. Alors c'est un boulet de canon... Ou une balle de golf, un ballon de foot, une boule de petanque, ou de bowling.
NICE!!!
Nice!
cool
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!!!!!!!!!!!!!!!!!!!!
cool
It is 3d afterall..... WWWWWWWWWWWWWWWWOOOOOOOOOOOOOOOOOOWWWWWWWWWWWWWWWWWWWWW
cool
(link to project)
coollllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
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
Awesome..
I think i can do this a much simpler, i'll try
I check it out
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.
lol the remixes dont even give you credit... same round shadow, too...
shume : )
I am guessing (even though I didn't download it) that it sences using the shadow.
this is......................... words fail me to say how awesome it is
I like it
dum
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 wasn't tryin to copy u i just had a great idea! this is still awesome though
nice
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.
cool
the best. how do i remix it and use the ball?
lol. <3
Its real!
Thats so AWESOME!
wow it's pretty basic because it repeats the same pattern, but it's really cool
u r a great programer!
i thought it must be easy to make but it's not.
i took a look at the programing and almost fainted.
AWESOME
An excellent illusion!
Looks really nice. There is a lot of interest in going "3d" with Scratch and we're starting to see some good examples.
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!
Really good. Didn't see this originally. The physics and perspective look really convincing.
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!
This is great and there are many possibilities to make this into a 3d game.
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 is cool but what would be evan better is if u make it into a game
wow this is cool.
sweet