Post all Gimp scripts and script writing questions here
Tue Nov 01, 2016 3:04 am
Originated from lylejk and described by rich2005
![Image](http://gimpchat.com/files/3612_Perspective_brush_man.jpg)
download script here -->
Fill Selection With Perspective Brush Script for GIMP.
Tue Nov 01, 2016 7:54 am
just a play
![just-a-play.jpg](./download/file.php?id=26832&sid=51f91fa07875338d519f7a9a7036dfc8)
- just-a-play.jpg (304.55 KiB) Viewed 6831 times
if Lyle "accepts" your way, there is room for interesting enhancements, Tin:
- select all if none
- defining initial brush size
- defining x starting point
- ...
Lyle, how do you see it?
Tue Nov 01, 2016 8:41 am
It's still a cool script, regardless. Haha! Thanks, Tin!
Tue Nov 01, 2016 8:47 am
Thanx for sharing.
Tue Nov 01, 2016 2:44 pm
dinasset wrote:just a play
just-a-play.jpg
if Lyle "accepts" your way, there is room for interesting enhancements, Tin:
- select all if none
- defining initial brush size
- defining x starting point
- ...
Lyle, how do you see it?
- select all if none, i could add.
- defining initial brush size, it uses whatever the active brush size is set to, and by specifying horizon percentage you're controlling how narrow your far away brushes should look, then i use this percentage to decide brush size for brushes near horizon starting y. I don't see the point to defining intial brush size.
- defining x starting point? what's that? right now it's just based on your selection x1. what other x can there be if you specify x starting point?
Tue Nov 01, 2016 11:36 pm
Tin, I was too concise, so it's not clear what I mean:
- initial brush size: the filter takes the "defined" brush size of the active brush, it could be useful let the filter have a parameter which allows to change it before taking that value as initial value, without defining another brush size
- by x starting point I mean the possibility to create a perspective which has a specific "punto di fuga" ( I don't know how to translate it); if you see my play the "punto di fuga" is at centre and not at x0 as created by default by the filter, I had to duplicate the layer, reverse it and merge to get it.
That's all.
edit: likely the term in English is "vanishing point"
Tue Nov 01, 2016 11:55 pm
example of a field with flowers having a vanishing point not at x0
![roses-field.jpg](./download/file.php?id=26845&sid=51f91fa07875338d519f7a9a7036dfc8)
- roses-field.jpg (11.62 KiB) Viewed 6749 times
Wed Nov 02, 2016 12:03 am
The vanishing point is only used if you have a roadway or a hallway or something that leads to a point.
Because this is perspective based on any selected area. the vanish points are along all the x's
as an example here you can see (I used 1 as percentage for horizon) it looks like everything is vanishing to the horizon.
![Image](http://gimpchat.com/files/3612_vanishingpoint_example.jpg)
EDIT: I think i know what you mean, you want the user to be able to control the loop's x where things start out aligned. I'll update soon another version soon.
Wed Nov 02, 2016 1:13 am
Version 2 is up.
Select All if none is selected.
Added option to specify Vanishing X at percentage (of selection) (default at 50 percent, center of selection).
Wed Nov 02, 2016 1:15 am
thanks a lot Tin
Wed Nov 02, 2016 1:17 am
Thank you for suggesting improvements.
another play with version 2 (with peppers.
Wed Nov 02, 2016 2:36 am
version 3 is up.
Allow "RANDOM" placement in addition to "ALIGNED" placement.
Wed Nov 02, 2016 4:37 am
Wow, maybe you are ready to add also a "random" angle (with moderate variations....) to get trees leaning slightly to the right and to the left....
Wed Nov 02, 2016 5:56 am
Freaking awesome, Tran. Have to leave for work, soon, but I will be playing with your genius of a result soon. Thanks a heap.
Wed Nov 02, 2016 7:35 am
Nice additions to the brush Tran. I would really like to be able to control it with a path though.
![Wink ;)](./images/smilies/icon_wink.gif)
Say like every node place a brush the more -Y the smaller the brush
Settings
![Image](http://gimpchat.com/files/196_fill-with-brush-pers-1_RD-2016-11-02_083433.png)
This took 7 minutes to render
![laff out loud :lol](./images/smilies/lol.gif)
(1000x1000 pixels)
![Image](http://gimpchat.com/files/196_fill-with-brush-pers-results_RD-2016-11-02_083433.png)
Very cool results though.
![Big Thumb Up :bigthup](./images/smilies/023.gif)
By the way the brush itself has transparency that is not your filter doing that.
Wed Nov 02, 2016 12:02 pm
path coming up soon, now i gotta look around and see what i can do.
Wed Nov 02, 2016 12:16 pm
Wed Nov 02, 2016 1:36 pm
It's up, give it a run and let me know if that's what you want.
http://gimpchat.com/viewtopic.php?f=9&t=14849&p=206023#p206023
Wed Nov 02, 2016 6:02 pm
Pepperoni in perspective. lol
Again, thanks a heap, Tran.
Wed Nov 02, 2016 9:04 pm
Alphabet's perspectiveUsed liquid rescale to squeeze the characters even closer together. Not sure how to pack brush output better, but LqR does a reasonable job doing this.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.