Vladimir Golovin
Administrator |
The final beta of Filter Forge 2.0, Beta Stage 4, is online:
http://www.filterforge.com/download/beta2/index.html |
|||||
Posted: June 7, 2010 9:36 am | ||||||
Redcap
![]() |
I can honestly say this was the last thing I expected today. I will have to play with it for quite a while. Awesome work!!!
|
|||||
Posted: June 7, 2010 9:52 am | ||||||
ronjonnie
![]() |
THANK YOU Vladimir!
![]() Have a GREAT day! ![]() Ron zazzle.com/Ronspassionfordesign*
So much to learn, so little time. |
|||||
Posted: June 7, 2010 11:29 am | ||||||
Zoltan Erdokovy
![]() |
What? Only one new feature? What the...
Oh, what's that? LUA scripting? /me is in shock. /me recovers slowly. /me embraces FForge even more (if that's humanly possible). |
|||||
Posted: June 7, 2010 11:38 am | ||||||
Vladimir Golovin
Administrator |
Zoltan, if memory serves, it was you who inspired us to do the Bearestroika example -- some time ago you posted a photoshopped FF screenshot depicting a "DooM" component. We liked that idea, as you see
![]() |
|||||
Posted: June 7, 2010 11:52 am | ||||||
Crapadilla
![]() |
Scripting, scripting, scripting. Now you make me wish I could script!
![]() What about 'polymorphic' components? They won't make it into the commercial release? /pulls out a Bomber component Drats! Still no depth-sorting! ![]() ![]() --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||||
Posted: June 7, 2010 2:14 pm | ||||||
Zoltan Erdokovy
![]() |
Hah, yeah, I remember, lol, and you pulled it off, man, you're the best.
![]() |
|||||
Posted: June 7, 2010 2:16 pm | ||||||
infiniview
![]() |
Wow Very Cool,
Force seamless and a way for peeps to create their own modules. Awesome! at least 90 percent of all sensation is texture, even beyond the visual, with elements of noise, tone, gradients, interval and degree.
|
|||||
Posted: June 7, 2010 2:57 pm | ||||||
Sjeiti
![]() |
Lua... damn... there goes my free time
|
|||||
Posted: June 7, 2010 3:26 pm | ||||||
Vladimir Golovin
Administrator |
It's easy and fun. Use the default script of the Map Script component as a starting point, and try to tweak it. |
|||||
Posted: June 7, 2010 3:35 pm | ||||||
Mike Blackney
![]() |
Okay, FF, I think you just won.
|
|||||
Posted: June 7, 2010 5:20 pm | ||||||
ronjonnie
![]() |
WOW!
Welcome back Crapadilla! ![]() ![]() ![]() ![]() We all missed you!! Have a good evening. ![]() Ron zazzle.com/Ronspassionfordesign*
So much to learn, so little time. |
|||||
Posted: June 7, 2010 5:59 pm | ||||||
CFandM
![]() |
+10 better make that +10,000 ![]() ![]() Seriously thou GREAT WORK FF CREW...Does this mean there will be a new tab for scripts kinda like snippets? Or just post in the scripts thread? Stupid things happen to computers for stupid reasons at stupid times! |
|||||
Posted: June 7, 2010 8:42 pm | ||||||
dmorrill
Posts: 15 |
I've been playing around with creating a few simple scripts for a bit, and I must say that this is just an awesome new feature (not to mention pretty easy to use)!
Will there be a mechanism to add created script components to the "Components" list in the filter editor? David Morrill |
|||||
Posted: June 7, 2010 11:41 pm | ||||||
Sphinx.
![]() |
Aww nice.. and I didn't see it yesterday as it was my birthday.. very good timing FF
![]() |
|||||
Posted: June 8, 2010 12:53 am | ||||||
dmorrill
Posts: 15 |
Just out of curiosity, are you guys using LuaJIT, or just the standard Lua distribution? If you're not using LuaJIT, it might be worthwhile considering it for the future, just to squeeze out some extra performance. Just a thought...
David Morrill |
|||||
Posted: June 8, 2010 1:17 am | ||||||
Totte
![]() |
Happy bday yesterday Sphinx
![]() - I never expected the Spanish inquisition |
|||||
Posted: June 8, 2010 1:21 am | ||||||
KGtheway2B
![]() |
what is this i dont even...
![]() |
|||||
Posted: June 8, 2010 1:33 am | ||||||
Dmitry Sapelnikov |
Uff... They are as desirable for us as for you, Dilla ![]() But we've decided to cut this feature for 2.0 release. As usual the reason is lack of time... |
|||||
Posted: June 8, 2010 1:48 am | ||||||
Vladimir Golovin
Administrator |
We're not using LuaJIT at the moment, but of course we are planning to add it sometime after the official release. It may pose minor problems -- e.g. it may require us to disable debug hooks which we use for terminating infinite loops. We may also make the debug hooks optional -- turning them off will disable infinite loop termination, but on the other hand script execution will be faster. |
|||||
Posted: June 8, 2010 5:27 am | ||||||
Crapadilla
![]() |
LOL ron, no need to welcome me back everytime I switch off my lurking device. ![]()
Well, for now, depth-sorting for Bombers would suffice! ![]() --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||||
Posted: June 8, 2010 9:12 am | ||||||
dmorrill
Posts: 15 |
Well, that will really be icing on the cake, since the performance of scripts is already pretty good. I'm hoping you'll also allow saving (and naming) scripts as reusable components. Just playing around with it today I created a filter that needed two copies of the same script component. While I was tweaking the behavior of the script, it was a bit of a pain having to keep changing both copies of the script code (one for each component) to keep them in sync. I'm also looking forward to seeing a few more details on debugging, printing and logging script information. My script is about 99.9% operational, but there is some edge case that is causing a problem. I've inserted some checking logic to handle the error, but it would be nice to understand how the problem is coming about. Overall though, I've been really pleased with how easy it is to create script components. This is the "must have" feature that finally got me to pull the trigger on ordering the 2.0 pro upgrade today ![]() David Morrill |
|||||
Posted: June 8, 2010 9:44 am | ||||||
Vladimir Golovin
Administrator |
I had an idea of providing a place for so-called "Global Scripts", where you could define functions and initialize variables that will be visible to all script components in the filter.
A quick debugging tip: you can use the Color Inspector to examine numeric values of your variables -- just return the variable as one of the RGB channels. |
|||||
Posted: June 8, 2010 9:52 am | ||||||
Targos
Posts: 196 |
Cannot connect to server.
|
|||||
Posted: June 8, 2010 4:48 pm | ||||||
dmorrill
Posts: 15 |
Well, that sounds good also, but I guess I'm thinking of something that would allow us to save a script component, its input definitions (and a name) as a new component that we could drag from the Components list. Right now it doesn't seem like there is any easy way to re-use a script component in another filter (unless I'm missing something).
OK, but I hope there will also be a way to output data to the console/logging window as well. In my case, I'm getting 'nil' values when doing certain table look-ups, and I would like to know what key values are causing the problem. For now I simple check every look-up to see if it returns 'nil', and then substitute a valid value for the result. It can't be occurring in very many cases, because the result is visually correct, even with the errors. But if I don't handle the nil case, the script fails with an error. So I need the ability to display the key value causing the error somewhere. I tried calling 'print' in the 'prepare' function, just to see if it would send the data to the message log, but it didn't work. David Morrill |
|||||
Posted: June 8, 2010 11:07 pm | ||||||
ThreeDee
![]() |
![]() ![]() This is just the best thing you could have possibly added to the program! No more "I wish there was a _____ -component" days. Just make it yourself! Pixel-based, proportionate, no longer a problem... This is the one thing I've been waiting for (and didn't even know it). ![]() TD |
|||||
Posted: June 9, 2010 2:56 am | ||||||
GMM
Moderator
Posts: 3491 |
Have you tried Ctrl+C on a component and Ctrl+V in another filter? |
|||||
Posted: June 9, 2010 3:26 am | ||||||
dmorrill
Posts: 15 |
OK, I saw the comment by one of the FF developers about the 'error' function, and that allowed me to find and fix my scripting problem very quickly.
Based on my results so far, here are a few quick tips: - The x,y values passed to your get_sample function may not be in the range (0..1), so be sure your code handles those cases correctly. In my case, I was seeing values like: -0.005 and 1.005, which is probably caused by FF's anti-aliasing supersampling logic. - You can use the 'error( string )' function to display 'string' in the FF message log. It has the additional side effect of displaying the line # containing the 'error' call as well as terminating the script's execution (so you can't use it to log trace data). - To get around the small scripting window in the FF beta, I've been using an external editor and using the Ctrl-A/Ctrl-C and Ctrl-A/Ctrl-V key combos to move the code quickly from the external editor to FF. David Morrill |
|||||
Posted: June 9, 2010 6:17 am | ||||||
Vladimir Golovin
Administrator |
David, I'd advice to post tips like these in the Scripting forum.
|
|||||
Posted: June 9, 2010 6:20 am | ||||||
dmorrill
Posts: 15 |
Well, that does work OK, but I hope that there will be a better solution than this eventually since the work flow does seem to require quite a few steps. I understand that this is a brand new feature, so there is probably still more work to be done. At a minimum, I hope you can add the ability to replace the component title of 'Map Script' with a user specified one (and maybe change the component title background to a different color to visually indicate that it is a script). Right now, it can be confusing to have several script components in the same filter, all with different inputs. David Morrill |
|||||
Posted: June 9, 2010 7:10 am | ||||||
dmorrill
Posts: 15 |
OK, will do so from now on. Thanks... David Morrill |
|||||
Posted: June 9, 2010 7:11 am |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,718 Registered Users
+8 new in 7 days!
153,540 Posts
+9 new in 7 days!
15,348 Topics
+71 new in year!
25 unregistered users.