IPv6
Posts: 4 |
I started to use FF recently and quite happy with results, especially Map node with Lua support. Really great!
But there is obvious thing that is missed: many filters use some kind of "X"/"Y" controls to define certain point on image (as a center of effect or similar). But this thing is really common this days and this is usually visualized as special dot on image itself (on preview), that you can just drag to the place you whant and script will get X/Y coords automatically. So my suggestion is like this - add "Position" input control. It will be shown on image preview as a dot, that can be dragged around and script will get X/Y coords of the dot where needed. In case of several "Position" inputs - there should be several dots depicted (probably color-coded randomly or somehow) Next level of coolness - if this "dot" can be scaled (size of dot can be adjusted on image preview) and rotated (dot can have 2D orientation) visually, And script will be able to get "size" of coresponding dot (via control node) and angle, if present |
|
Posted: December 11, 2020 6:29 pm | ||
Sphinx.
![]() |
Yeah, this would be awesome and is something I miss often too. The topic has been around before:
https://filterforge.com/forum/read.php...sage114186 I guess the problem is that there is no native "Point" format. When you look at many of the existing components, they take something like "Start X" and "Start Y", when it was really better with just "Start" as a real point type, and my guess is that this limitation could be what is holding the devs back... it is alot of internal work to introduce that. I believe a middleway could be acceptable - e.g. output as a color type with x and y in red and green channel. |
|
Posted: December 12, 2020 5:23 pm | ||
Vladimir Golovin
Administrator |
Ah yes, the good old Point control. This is something that has been on my mind for at least a decade, but, as Sphinx correctly points out, FF currently doesn't have a component and input type for Points. And even if we had one, we'd need a complete suite of math components to deal with the points themselves and their internal coordinates (floats). And this is complicated due to the fact that there's no polymorphism in Filter Forge -- that is, a component can only accept a single concrete type as inputs (e.g. green). With our current architecture, we cannot, for example, create an Add or Subtract component that can accept RGB colors, Points, Floats and other data types -- we'd have to duplicate them for each data type, so we'd end up with N versions of the Add component, each for a single concrete data type.
For the FF sequel, we're taking a principled approach to polymorphism. Our implementation is similar to parametric polymorphism in Haskell, complete with typeclasses. For example, if we have Int, Float, and RGB Color data types, and all these data types are members of the Numeric typeclass, you can plug them into any component that accepts Numeric, for example Add, Subtract, Multiply, etc. |
|
Posted: September 30, 2021 6:25 am | ||
IPv6
Posts: 4 |
Honestly i was thinking about control with dedicated UI (dot with ability to scale/orient over image preview) and control that just have many OUTPUTS: X, Y, Scale, Angle, etc. So there is no need for special type - there is no problem to wire-up control output "X" to X-inputs inside tree, it`s just a pain to set them up numerically when using filter.
"For the FF sequel" - sounds cool! Will wait for release ![]() ![]() |
|
Posted: September 30, 2021 9:35 am | ||
Vladimir Golovin
Administrator |
That would work if our architecture had support for multi-out components. Alas, currently a component can only output a single value -- and that's why we need a data type in order to pack sub-values into a single value.
For the sequel, we're keeping the single-output restriction, but we will have support for arbitrary data types (not just three fixed types as in FF), and we will support tuples -- a record data type that lets you pack multiple values into a single value. |
|
Posted: September 30, 2021 11:05 am | ||
IPv6
Posts: 4 |
Sounds good, thanks!
|
|
Posted: September 30, 2021 11:20 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,531 Posts
+39 new in 30 days!
15,347 Topics
+72 new in year!
30 unregistered users.