It is currently Thu Apr 25, 2024 3:10 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 3:04 am  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Originated from lylejk and described by rich2005
Image

download script here --> Fill Selection With Perspective Brush Script for GIMP.

_________________
TinT


Last edited by trandoductin on Wed Nov 28, 2018 12:21 pm, edited 2 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 7:54 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
just a play

Attachment:
just-a-play.jpg
just-a-play.jpg [ 304.55 KiB | Viewed 6726 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?

_________________
"Where am I ?"


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 8:41 am  (#3) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4046
It's still a cool script, regardless. Haha! Thanks, Tin!

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 8:47 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 18, 2011
Posts: 283
Location: Lusaka, Zambia
Thanx for sharing.


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 2:44 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
dinasset wrote:
just a play

Attachment:
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?

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 11:36 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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"

_________________
"Where am I ?"


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Tue Nov 01, 2016 11:55 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
example of a field with flowers having a vanishing point not at x0

Attachment:
roses-field.jpg
roses-field.jpg [ 11.62 KiB | Viewed 6644 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 12:03 am  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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

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.

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 1:13 am  (#9) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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).
Image

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 1:15 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks a lot Tin

_________________
"Where am I ?"


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 1:17 am  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Thank you for suggesting improvements.

another play with version 2 (with peppers.
Image

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 2:36 am  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
version 3 is up.
Allow "RANDOM" placement in addition to "ALIGNED" placement.
Image

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 4:37 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
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....

_________________
"Where am I ?"


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 5:56 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Freaking awesome, Tran. Have to leave for work, soon, but I will be playing with your genius of a result soon. Thanks a heap. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 7:35 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nice additions to the brush Tran. I would really like to be able to control it with a path though. ;) ;)
Say like every node place a brush the more -Y the smaller the brush
Settings
Image

This took 7 minutes to render :lol (1000x1000 pixels)

Image

Very cool results though. :bigthup

By the way the brush itself has transparency that is not your filter doing that.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 12:02 pm  (#16) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
path coming up soon, now i gotta look around and see what i can do.
:hehe

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 12:16 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
trandoductin wrote:
path coming up soon, now i gotta look around and see what i can do.
:hehe


:tyspin :wh

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 1:36 pm  (#18) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
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

_________________
TinT


Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 6:02 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Pepperoni in perspective. lol

Again, thanks a heap, Tran. :)


Attachments:
p_pep.png
p_pep.png [ 1.4 MiB | Viewed 1354 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Fill Selection with Perspective Brush Script for GIMP.
PostPosted: Wed Nov 02, 2016 9:04 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Alphabet's perspective


Used 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. :)


Attachments:
alphabets_perspective.png
alphabets_perspective.png [ 1.11 MiB | Viewed 1348 times ]

_________________
Lyle

Psalm 109:8

Image
Top
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Board Game Design - Stroke Selection and Pattern Fill Questions

3

No new posts Attachment(s) Is there a script for doing Stroke outside selection?

4

No new posts Attachment(s) Script for selecting, cropping the selection and saving the file

8

No new posts Selection "Brush"

2

No new posts Attachment(s) Looking for something similar in GIMP - a CROCHET brush or script

23



* Login  



Powered by phpBB3 © phpBB Group