![]() |
Another small filled circe sub (not as fast as fcirc) - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: Another small filled circe sub (not as fast as fcirc) (/showthread.php?tid=2989) |
RE: Another small filled circe sub (not as fast as fcirc) - bplus - 09-04-2024 +1 @Dav Oh wow, bouncing balls inside Big Ball located by mouse very nice. When big ball is jeked in a direction the balls go to one side but still maintain radius seperation from each other that takes some calculations! RE: Another small filled circe sub (not as fast as fcirc) - Dav - 09-04-2024 Thanks, @bplus. ![]() I updated the BALLRAIN demo posted last September with the new FC SUB and also incorporated a movable bigball and collision and overlapping technique used in the last demo. It's easier to see how it works in this one I think, although it's only doing collision detecting with the bigball and not with other balls. FC draws much faster than the way I did it last year (had to hardware images to go this smooth last year). - Dav Code: (Select All)
RE: Another small filled circe sub (not as fast as fcirc) - bplus - 09-04-2024 hell of a paddleball game! ![]() RE: Another small filled circe sub (not as fast as fcirc) - NakedApe - 09-04-2024 BIGBALL and BALLRAIN3 are also very cool. Nice work, @Dav! The fc sub kicks ass. ![]() RE: Another small filled circe sub (not as fast as fcirc) - Pete - 09-04-2024 You have to love the irony here. We now have hardware acceleration in QB64 and we are reinventing wheel fill! Pete ![]() RE: Another small filled circe sub (not as fast as fcirc) - vince - 09-05-2024 (09-03-2024, 04:51 PM)bplus Wrote: are what's getting around the need for SQR. Something about using the derivative of Square function for X^2 = 2x plus some fooling aroundit comes from the expansion of (X+1)^2 in the error calculation, so no derivatives required. although in this case, the difference operation is the discrete analogue to differentiation RE: Another small filled circe sub (not as fast as fcirc) - bplus - 09-05-2024 But we just throw out the extra 1? (X+1)^2 - X^2 = 2x + 1 RE: Another small filled circe sub (not as fast as fcirc) - Pete - 09-05-2024 I miss these fun algebraic problems at times... (X+1)^2 - X^2 = 2X + 1 So... (X+1) * (X+1) = X^2+2x+1 X^2+2X+1 - X^2 ------------------- 2X+1 Pete ![]() RE: Another small filled circe sub (not as fast as fcirc) - bplus - 09-05-2024 That proves the difference of 2 consecutive squares is always odd. RE: Another small filled circe sub (not as fast as fcirc) - Pete - 09-05-2024 Right, because all odd integers conform to the equation: 2X + 1 where X is an integer. It's as simple as double any integer to get an even integer, add 1 and it becomes odd. I don't find that odd at all, even if you say so! ![]() Pete |