Help - Search - Members - Calendar
Full Version: About sprites collisions..
Jagware > Consoles > Development
GT Turbo
On Jaguar, we have everything for being happy except.......for the sprites collisions, so i will know if anybody has thinking on. Technics i am thinking are :



- Bouding boxes (Doing test on cube)

- Bouding circles (Doing test on circle)



somebody has something else ?



GT Turbo :blush:
Starcat
Hi!



Actually there are some other things missing for me to be happy on the Jag ;)

But that's another question.



I usually use bounding box.

Never used bounding circles and I could imagine, on the Jag this would be too slow in most cases and not really that useful.



Another thing that you could use is collision by using a sceeen buffer of some sort that you draw into and when there is a pixel already at the position you write to, you know that there is collsion. You probably know what I mean.

Although this usually is too slow and consuming more memory too.



So most of the cases bounding box is the best way I think.



Regards, Lars.
GT Turbo
Starcat :




I usually use bounding box.

Never used bounding circles and I could imagine, on the Jag this would be too slow in most cases and not really that useful.







By bounding circle, i mean calculate that :



rouding square((X1-X)^2)+((Y1-Y)^2) (Calculate distance between two sprites)



I think that can be a good solution, all the calculs maybe calculate by simple Gpu routines, it's enough fast even for a big sprite number, i never done it on a Jag, but i have to try



GT Turbo ;)
GT Turbo
With SebRmv, we will give very soon, a one pixel precision Gpu colision rout. It runs for 16 bits sprites, but doesn't take count of PITCH or REFLECT bit. Used method come from Patrice Mandin, except it doesn't generate mask (SebRmv nice optimisation wink.gif )

GT and SebRmv hug.gif
TXG/MNX
I would like to see a routine that can do collision detection with 1 sprite and a register that can be read out to see with which sprites this sprite did have a collision. The most acurate collision detection would rule yes.gif
GT Turbo
QUOTE (TXG/MNX @ Mar 3 2006, 17:37) *
I would like to see a routine that can do collision detection with 1 sprite and a register that can be read out to see with which sprites this sprite did have a collision. The most acurate collision detection would rule yes.gif



Very nice idea, but after some minutes of reflexion, the only problem will be that this kind of rout will eat a lot of time machine, a little example :

- two players firing something like 20 fire that will give 40 sprites
- 5 ennemys, that will do a lot of test and perhaps for nothing.

If somebody have an idea about that but without eating a lot of time, we will be happy, perhaps SebRmv has an idea wink.gif

GT smile.gif
GT Turbo
Yes we do it !! THE sprite colision of the Jag is born !! SebRmv and me do it because nothing else to do (It's a big joke tongue.gif ). This routine is EXACT, yes no error in test, pixel test is done for being EXACT !!
Thanks to Mandin Patrice for the idea. It's a GPU rout, french and english docs are included.


THE routine : Click to view attachment



SebRmv and GT hug.gif
TXG/MNX
QUOTE (GT Turbo @ Mar 17 2006, 18:48) *
Yes we do it !! THE sprite colision of the Jag is born !! SebRmv and me do it because nothing else to do (It's a big joke tongue.gif ). This routine is EXACT, yes no error in test, pixel test is done for being EXACT !!
Thanks to Mandin Patrice for the idea. It's a GPU rout, french and english docs are included.
THE routine : Click to view attachment
SebRmv and GT hug.gif


Cool gonna check it out smile.gif dit you also talk with Mandin Patrice about a port of SDL to the jaguar cool.gif this would rule....
GT Turbo
QUOTE (TXG/MNX @ Mar 17 2006, 19:35) *
dit you also talk with Mandin Patrice about a port of SDL to the jaguar cool.gif this would rule....


Yes, we have talked with him about SDL, but that will be a very big work and we haven't any free time, and using Sdl, some people wouldn't use Gpu and Dsp, the best 'chips' of the Jag, that's why that will not be done (By Jagware) smile.gif (Perhaps in the future, who knows !)


GT Turbo rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.