ThreeDee
![]() |
Not really a bug, more like a quirk, you can see the "pseudo" in the pseudorandom number generation routine for the loop Randomizers in the following filter. Any Variation setting (by slider) up to 62 will be not very random. Above it, randomity reigns again.
![]() Not so random random.ffxml |
|
Posted: April 4, 2013 2:29 pm | ||
ThreeDee
![]() |
||
Posted: April 4, 2013 2:30 pm | ||
Skybase
![]() |
Oh you being sneaky finding FF's inner workings
|
|
Posted: April 4, 2013 11:35 pm | ||
Vladimir Golovin
Administrator |
Good find. I thought patterning in Randomizer was fixed. We did test it for patterning, but apparently we overlooked something pretty big. Thanks.
|
|
Posted: April 5, 2013 9:00 am | ||
GMM
Moderator
Posts: 3491 |
That's a bug point for ThreeDee.
|
|
Posted: April 5, 2013 10:09 am | ||
Vladimir Golovin
Administrator |
Should be fixed in the next hotfix.
|
|
Posted: April 8, 2013 10:18 am | ||
ThreeDee
![]() |
Possibly still the same issue: This filter attempts to generate a random color, but every time the first random value (used for R channel) is almost zero, so we get only greens and blues, no reds, yellows or violets.
Random... not.ffxml |
|
Posted: May 22, 2013 9:04 am | ||
ThreeDee
![]() |
(or then it is a LUA math.random issue)
|
|
Posted: May 22, 2013 9:07 am | ||
GMM
Moderator
Posts: 3491 |
We have looked into the math.random issue. better late than never, right?
![]() In LUA 5.1, when you call math.random for the first time, it returns nothing indeed. It was fixed in LUA 5.2 (the version that is currently used in FF) but we have to inherit the old behavior for the sake of compatibility with all existing script filters. The workaround is pretty simple: you need to call math.random several times and do nothing with the first call. All subsequent calls should work correctly. Please consider it a FF-specific quirk, not a bug. |
|
Posted: August 26, 2016 10:14 am | ||
ThreeDee
![]() |
Ok, thanks for the clarification. Possibly a good thing to include in the Scripting wiki?
|
|
Posted: August 28, 2016 11:56 am |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,533 Posts
+38 new in 30 days!
15,348 Topics
+73 new in year!
11 unregistered users.