Welcome! Log In Create A New Profile

Advanced

Flood Fill Crash

Posted by Chicken_Bones 
Flood Fill Crash
May 08, 2010 11:31AM
I am trying to make a flood fill algorithm for my paint app.

I have tried 2 different types of floodfill, stack and a queue.

Both worked sometimes over small areas on gcube.

On the wii they both freeze my app and make the screen go all green and weird.

My source is uploaded here Code

Any help would really be appreciated as I have tried everything I can think of.
Re: Flood Fill Crash
May 08, 2010 08:03PM
I couldn't find anthing major in your code, but if the screen is changing you are corruption video memory somehow. What I would suggest is find the largest size the alsorythm works for. This will make it easier to find your bug. Or you could do it the cheap way and only allow it to fill up to the largest ammount it can until it stops working, then run it again in the sapce that needs to be filled. Do this over and over until it works. To make testing faster, take out the wiimote commands and just have you code draw a rectangle and fill it. You can add in user code later.
Sorry, only registered users may post in this forum.

Click here to login