Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Fill Selection with Perspective Brush Script for GIMP.

Tue Nov 01, 2016 3:04 am

Originated from lylejk and described by rich2005
Image

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

Re: Fill Selection with Perspective Brush Script for GIMP.

Tue Nov 01, 2016 7:54 am

just a play

just-a-play.jpg
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?

Re: Fill Selection with Perspective Brush Script for GIMP.

Tue Nov 01, 2016 8:41 am

It's still a cool script, regardless. Haha! Thanks, Tin!

Re: Fill Selection with Perspective Brush Script for GIMP.

Tue Nov 01, 2016 8:47 am

Thanx for sharing.

Re: Fill Selection with Perspective Brush Script for GIMP.

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?

Re: Fill Selection with Perspective Brush Script for GIMP.

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"

Re: Fill Selection with Perspective Brush Script for GIMP.

Tue Nov 01, 2016 11:55 pm

example of a field with flowers having a vanishing point not at x0

roses-field.jpg
roses-field.jpg (11.62 KiB) Viewed 6749 times

Re: Fill Selection with Perspective Brush Script for GIMP.

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

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.

Re: Fill Selection with Perspective Brush Script for GIMP.

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).
Image

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 1:15 am

thanks a lot Tin

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 1:17 am

Thank you for suggesting improvements.

another play with version 2 (with peppers.
Image

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 2:36 am

version 3 is up.
Allow "RANDOM" placement in addition to "ALIGNED" placement.
Image

Re: Fill Selection with Perspective Brush Script for GIMP.

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....

Re: Fill Selection with Perspective Brush Script for GIMP.

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

Re: Fill Selection with Perspective Brush Script for GIMP.

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. ;) ;)
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.

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 12:02 pm

path coming up soon, now i gotta look around and see what i can do.
:hehe

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 12:16 pm

trandoductin wrote:path coming up soon, now i gotta look around and see what i can do.
:hehe


:tyspin :wh

Re: Fill Selection with Perspective Brush Script for GIMP.

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

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 6:02 pm

Pepperoni in perspective. lol

Again, thanks a heap, Tran. :)

Re: Fill Selection with Perspective Brush Script for GIMP.

Wed Nov 02, 2016 9:04 pm

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. :)
Post a reply