SpaceRay
![]() |
First I want to say that I am very sorry if I am saying something wrong, or silly things, or I am mixing things and I am mistaken about this
I have though that if I do not know how to use LUA, there are surely some other that do know well how to use it and that they share their scripts to be used by others and could maybe be used with FF in some way 1 - what I do not know is what kind of LUA scripts would be compatible with FF and work inside for a filter, as I have no idea how the FF LUA works in comparison with the other LUA scripts. 2 - As FF only is able to use just one Scrip on each map script, so could you combine different map scripts to work together? 3 - How do you know how to configure the inputs (in the FF input editor) that the script would need or that are needed from a LUA script? 4-How similar or different is FF LUA to the. other LUA script available on internet? 5- Is not possible to use on FF if the LUA scripts is used as a command-line program? Maybe I should leave it and not do this at all if I do not have any LUA scripting knowledge For example FLOOD FILL LUA SCRIPT I have found this Flood Fill LUA script https://github.com/Yonaba/FloodFill/bl...r/main.lua but I have seen that it uses more than one script because if I copy the Main file to FF it tells me that that there are some missing things and is because these missing things are other additional scripts that are separate. I wonder if it would be possible to put all the parts in just one script or combine multiple Map scripts to make it work? when looking at thw whole project you can find the other missing parts This is the master main file of the FloodFill https://github.com/Yonaba/FloodFill I have copied to a FF filter the main file but as said it has missing things Flood fill LUA.ffxml |
|||||
Posted: April 12, 2020 2:33 am | ||||||
Sphinx.
![]() |
This kind algorithm requires a bitmap. It is not possible to create bitmap based scripts in Filter Forge.
When looking at other lua scripts, you always have to think about the procedural sampling approach in FF - will it fit into that? If you see something that process maps or tables (discrete processing), it is likely not to work in FF. That said - you CAN use other libraries etc, but unless you copy it all into the same script block, you have to refer the external lua files on your hard drive, and that will only work in unsafe mode, and it is not easy debugging these setups. It is also likely to become very slow due to the way FF initialize in every rendering block. |
|||||
Posted: April 12, 2020 9:26 am | ||||||
SpaceRay
![]() |
Thanks very much for your answer and help and is valuable
Yes, is right, I already knew that this flood fill would need a bitmap grid as source image that would be filled but then I continue reading and discover something I did not know
OH! I did not know that you can not use any bitmap based thing in the script, and is very good to know it, so then it limits much what can be done with a FF LUA script as many of the scripts available uses a bitmap in the script as they are graphical scripts Now I understand why the FF hyperbolic script does not have any color control or image source inside the script From your answer I also understand and know even more why the scripting is not used more and is more difficult to use it Thanks again for explaining it |
|||||
Posted: April 12, 2020 6:09 pm |
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,531 Posts
+36 new in 30 days!
15,347 Topics
+72 new in year!
25 unregistered users.