Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Ashbad on February 06, 2011, 01:43:10 pm

Title: Possible Ball-Physics tutorial
Post by: Ashbad on February 06, 2011, 01:43:10 pm
Last night, I was able to figure out how to have a 4x4 bouncy ball have ulitmately-accurate collision detection, realistic rolling around, rolling on ANY slope possible, and even how to apply the first two to a 3D environment.  I'm thinking of writing a tutorial about how to do all of this, is anyone interested?

EDIT: Ti-8x platform with Axe 0.4.8

EDIT2: if you are interested, please post so or PM me, I don't wanna make a tutorial that nobody wants :P
Title: Re: Possible Ball-Physics tutorial
Post by: Binder News on February 06, 2011, 01:49:04 pm
I would love a tutorial about this. I did something like this before, but it only had the slope detection, and it used Pxl-Test, i wasn't memory-based collision.
Title: Re: Possible Ball-Physics tutorial
Post by: Ashbad on February 06, 2011, 01:50:57 pm
This is somewhat both pixel testing and memory detection, because it's more efficient that way :D

good to see my good colleague Binder the Most Excellent wants it, and since he does I will make :)
Title: Re: Possible Ball-Physics tutorial
Post by: jnesselr on February 06, 2011, 01:52:36 pm
And not for me? I wants! :)
Title: Re: Possible Ball-Physics tutorial
Post by: Builderboy on February 06, 2011, 01:55:19 pm
I am exceedingly interested in this :) I tried to make a singularly pixel based method a while ago, but the results were not the best, and quite glitchy.  In the end, I resulted in moving to tile based physics, with pixel test helping

http://ourl.ca/7764

I can't wait to see your tutorial if you want to write one! :D
Title: Re: Possible Ball-Physics tutorial
Post by: Ashbad on February 06, 2011, 01:55:34 pm
lol okay I'll start right now :D

I plan on making 3 installments: each one telling how to do ball physics corresponding to my ball physics engine 1.0, 2.0, and then 3.0 (and maybe tell my theories on what will be in 3.1, like wind, weight, size, and properties of dealing with the ball while it's underwater)

I'll begin installment 1 now
Title: Re: Possible Ball-Physics tutorial
Post by: Binder News on February 06, 2011, 01:58:18 pm
Ohh. I get a title. :)
But yeah, I think I can see how you might do this. If it is a sloped tile, or one that requires pixel tests, then pixel test. Otherwise just test for "solidness". Hummm...
Title: Re: Possible Ball-Physics tutorial
Post by: Ashbad on February 06, 2011, 02:01:46 pm
one way you can test for slopes easily and very fast is by checking only the sides of the ball that can possibly collide with a slope (like a slope on the left of a screen can't be touched by the ball's right side) and then check where you are -- are you inside the possible "touching areas" of the slope?  If so, apply the slope's physics to the ball (it's more complicated than that, but that's it kinda in a nutshell :))

And yes, you get a complementary title Binder :D
Title: Re: Possible Ball-Physics tutorial
Post by: Builderboy on February 06, 2011, 02:03:12 pm
can't wait :D
Title: Re: Possible Ball-Physics tutorial
Post by: Ashbad on February 06, 2011, 02:04:35 pm
can't wait :D

that's quite flattering to hear from omnimaga's physics expert :)
Title: Re: Possible Ball-Physics tutorial
Post by: ztrumpet on February 06, 2011, 02:23:13 pm
This is going to be very cool.  Will it include example programs? :D
Title: Re: Possible Ball-Physics tutorial
Post by: Builderboy on February 06, 2011, 02:24:00 pm
hah well I've tried this myself and had little success, although that was in the realm of only pixel testing, I moved to memory access like you, but i remained limited.  Either way this is one of the great physics challenges for me!
Title: Re: Possible Ball-Physics tutorial
Post by: Munchor on February 06, 2011, 02:24:11 pm
Last night, I was able to figure out how to have a 4x4 bouncy ball have ulitmately-accurate collision detection, realistic rolling around, rolling on ANY slope possible, and even how to apply the first two to a 3D environment.  I'm thinking of writing a tutorial about how to do all of this, is anyone interested?

EDIT: Ti-8x platform with Axe 0.4.8

EDIT2: if you are interested, please post so or PM me, I don't wanna make a tutorial that nobody wants :P

I want it, then I could change uPongs engine for something  better AGAIN :D
Title: Re: Possible Ball-Physics tutorial
Post by: Builderboy on February 06, 2011, 02:26:32 pm
And someone could make an Axe peggle clone ;)
Title: Re: Possible Ball-Physics tutorial
Post by: ztrumpet on February 06, 2011, 02:33:17 pm
And someone could make an Axe peggle clone ;)
Dooo it! O0
Title: Re: Possible Ball-Physics tutorial
Post by: Ashbad on February 06, 2011, 02:36:41 pm
This is going to be very cool.  Will it include example programs? :D

yes, tons and tons of examples! :D
And screenies and other pictures and the sort :)

and Builderboy: thanks for the ideas and the encouragement, I'll make it as realistic as possible :D
Title: Re: Possible Ball-Physics tutorial
Post by: DJ Omnimaga on February 07, 2011, 11:47:35 pm
That would be a nice idea. I wonder if this could maybe eventually revive Supersonic Ball...

Just make sure to make it so it's also suitable for visual people, like Hot Dog's ASM tutorials.
Title: Re: Possible Ball-Physics tutorial
Post by: leafy on February 07, 2011, 11:50:44 pm
This sounds interesting. Good luck.
Title: Re: Possible Ball-Physics tutorial
Post by: Builderboy on February 13, 2011, 01:32:04 pm
How is this coming?  I'm still really interested in reading this tutorial :D
Title: Re: Possible Ball-Physics tutorial
Post by: Deep Toaster on February 13, 2011, 01:34:00 pm
Me too. This is something I need for my next game :D
Title: Re: Possible Ball-Physics tutorial
Post by: Munchor on February 13, 2011, 01:35:16 pm
This is going to be very cool.  Will it include example programs? :D

yes, tons and tons of examples! :D
And screenies and other pictures and the sort :)

and Builderboy: thanks for the ideas and the encouragement, I'll make it as realistic as possible :D

He sounds so optimistic ;D I hope it goes really well ;D
Title: Re: Possible Ball-Physics tutorial
Post by: Happybobjr on February 13, 2011, 01:41:07 pm
I am clueless when it comes to physics :(
even if i red up on them...  I hope ap physics will help.
Title: Re: Possible Ball-Physics tutorial
Post by: Builderboy on February 13, 2011, 01:49:51 pm
While Physics classes do offer some insight to the way things work, I found that it really helped very little when actually coding the systems used to imitate the rules I learned :(