Make noise generation resolution aware#1909
Conversation
|
Nice! That's also great to see the Mandelbrot node has gotten fixed already too. My observation is that we'll want to remove the "Clip" parameter so it's always boundless, and always have it be infinite, then use clipping masks or other nodes to actually constrain the bounds as the user desires. We'll also want to inverse the Scale parameter, I think. |
Doing this would hurt the performance as you would generate a bunch of useless information which only later gets clipped. This would even evaluate the texture if the artboard is not even in view.
So using |
Implements footprint based noise generation. I originally intended to also fix the Mandelbrot node in this pr but it turns out that the node itself was never broken and it only stopped working due to an regression somewhere else which has since been fixed.
Changes:
The dimensions are new inferred from the footprint
The user can now choose if they want to constrain the noise
Alternatives considered
We could instead make the dimension parameter optional, which would eliminate the need for a transform node after the noise node. This might provide a nicer to use api and could be implemented in a follow-up pr.
We now only render what is visible on the screen and also support clipping to the viewport itself: