SRL Archive - Bugs

FilterPointsPie Bug.


Kasi

2013-09-19 18:42:05

When Mx and My aren't equal FilterPointsPie skews the Pixels somewhat.


procedure FilterPointsPie(var Points: TPointArray; const SD, ED, MinR, MaxR: Extended; Mx, My: Integer);

Examples; (Latest Simba / Smart 8.3 / Latest GLX + DLL)


program new;
{$DEFINE SMART}
{$include GLX/Setup.Simba}

var
S : TSmart;
St, En, I : Integer;
TPA : TPointArray;

begin
SetupGLX(S, 1350, 670);
GLXSetColourCapture(True);
glDebug(GL_MODE_NONE, 0, 0, 0, S.Width, S.Height);
Repeat
St := En := 0;
For I := 0 to 16 do
begin
St := En;
En := St + 20;
Wait(100);
TPAFromCircleWrap(300, 300, 200, TPA);
FillEllipse(TPA);
FilterPointsPie(TPA, En, St, 0, 200, 300, 300);
S.__Graphics.DrawTPA(TPA, Random(16777215), False);
end;
SetLength(TPA, 0);
Until(False);
end.

Results this; (Notice Coords are 300, 300)

[ATTACH=CONFIG]22220[/ATTACH]
http://i.imgur.com/I5ajgqr.png
http://pastebin.com/2f3y91ur

But if Mx and My are different this is what it looks like;


program new;
{$DEFINE SMART}
{$include GLX/Setup.Simba}

var
S : TSmart;
St, En, I : Integer;
TPA : TPointArray;

begin
SetupGLX(S, 1350, 670);
GLXSetColourCapture(True);
glDebug(GL_MODE_NONE, 0, 0, 0, S.Width, S.Height);
Repeat
St := En := 0;
For I := 0 to 16 do
begin
St := En;
En := St + 20;
Wait(100);
TPAFromCircleWrap(400, 300, 200, TPA);
FillEllipse(TPA);
FilterPointsPie(TPA, En, St, 0, 200, 400, 300);
S.__Graphics.DrawTPA(TPA, Random(16777215), False);
end;
SetLength(TPA, 0);
Until(False);
end.
Coords are 400, 300;

[ATTACH=CONFIG]22221[/ATTACH]
http://i.imgur.com/kUXNGbC.png
http://pastebin.com/CWgUvHbB

Overlapping;

[ATTACH=CONFIG]22222[/ATTACH]

http://i.imgur.com/tBH4ZLO.png
http://pastebin.com/GaGfduiC


It seems as if the point of origin isnt changing. Or am i doing something wrong?

@masterBB;

rj

2013-09-19 19:02:22

I heard @serajin mention on Skype that it was bugged for him also

Kasi

2013-09-19 19:04:32

From: Officer Barbrady
I heard @serajin mention on Skype that it was bugged for him also


Yes he was having problems with the function so asked me for help

masterBB

2013-09-20 04:14:57

Fix'd

serajin

2013-09-20 04:17:43

From: masterBB
Fix'd


Love you <3

So uhhh, where's the fixed function? Your github?

masterBB

2013-09-20 04:28:36

From: serajin
Love you <3

So uhhh, where's the fixed function? Your github?


https://github.com/MerlijnWajer/Simba/pull/236

serajin

2013-09-20 04:41:23

From: masterBB
https://github.com/MerlijnWajer/Simba/pull/236


Glorious! =D If I could give you rep…I would!

Kasi

2013-09-20 14:45:43

From: masterBB
Fix'd


Thanks for the fast reply + Fix. Repped.
Edit : Got an ETA on when this is gonna be pushed onto the simba installs?

serajin

2013-09-23 22:15:08

From: masterBB
https://github.com/MerlijnWajer/Simba/pull/236


Hey masterBB. Do you know when this function will be pushed into simba? Will it be with Simba 1000? Or is it available now through the updater?

Thank you

masterBB

2013-09-24 04:45:25

From: serajin
Hey masterBB. Do you know when this function will be pushed into simba? Will it be with Simba 1000? Or is it available now through the updater?

Thank you


If you want the latest pre release version of simba you could try out one of the alpha versions from l0.lt

Note that those versions of simba might be unstable, contain bugs or could contain other problems. I do not suggest it for 'users' or released script. The current latest build for windows(32) is:
http://l0.lt/builders/master/builds/519
http://nala.villavu.com/downloads/master/4257bd705f22c62148dab6b8fa10084cf0017e7e/Simba.i386-win32.exe

serajin

2013-09-24 16:36:30

From: masterBB
If you want the latest pre release version of simba you could try out one of the alpha versions from l0.lt

Note that those versions of simba might be unstable, contain bugs or could contain other problems. I do not suggest it for 'users' or released script. The current latest build for windows(32) is:
http://l0.lt/builders/master/builds/519
http://nala.villavu.com/downloads/master/4257bd705f22c62148dab6b8fa10084cf0017e7e/Simba.i386-win32.exe


Yup, I got it!

Thank you masterBB! :)