GIMP Chat
http://gimpchat.com/

Follow Path With Perspective Brush for GIMP
http://gimpchat.com/viewtopic.php?f=9&t=14849
Page 1 of 2

Author:  trandoductin [ Wed Nov 02, 2016 1:34 pm ]
Post subject:  Follow Path With Perspective Brush for GIMP

Requested by Rod,
To base the brush size on Y-coordinate (to create fake 3D perspective effect).

Image
Image

Click here for download --> Follow Path with Perspective Brush for GIMP

Author:  trandoductin [ Wed Nov 02, 2016 2:02 pm ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

version 2 is up.
Fixed a Track Direction (angle) bug.
Image

Author:  trandoductin [ Wed Nov 02, 2016 3:41 pm ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

version 3 is up.
Added forgotten progress bar updates for friendliness.

and here's a sample run of paths where i drew rows of trees.
Image

Author:  trandoductin [ Wed Nov 02, 2016 4:22 pm ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

Version 4 is up.
Draws smaller brushes first because smaller brushes in the foreground would look weird in front of nearer (larger) brushes.

Version 5 is up. Forgot stupid progress bar update again.
Image

Author:  Rashid [ Wed Nov 02, 2016 10:51 pm ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

Hi
I am sorry to say that after using different settings I am unable to get change in size in terms of perspective. Perhaps I am unable to find suitable combination of settings. I get straight line of repititive objects without diminishing size.
Bye

Author:  trandoductin [ Wed Nov 02, 2016 10:54 pm ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

are you drawing a line from top to bottom? size changes based on y-coordinate.
If you draw a straight horizontal line there would be no changes in size.

Author:  Rashid [ Thu Nov 03, 2016 12:25 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

I have tried two versions but I get the same result. First tried 5th and then removed and installed 3rd version. I am attaching screenshots of the process.

Attachments:
Result.jpg
Result.jpg [ 198.65 KiB | Viewed 4267 times ]

Author:  trandoductin [ Thu Nov 03, 2016 12:40 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

what is your brush?
it looks small on image 2 but how does it even fill the whole image in 3 it looks like.
It should only brush along the path.

Author:  Rashid [ Thu Nov 03, 2016 1:21 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

I have changed the brush but no perspective change.

Attachments:
Result2.jpg
Result2.jpg [ 132.24 KiB | Viewed 4261 times ]

Author:  trandoductin [ Thu Nov 03, 2016 1:32 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

I don't know what's the problem could be.
You're using GIMP 2.8 right?

I remember long time ago I wrote a script in scheme (I think it was the Green Apple Script), where i tried setting the context's brush attributes such as size and it didn't seem to do anything, i had to create a new brush myself in order for script to work.

But i am using 2.8 now and setting the context's set brush size works fine now.
So i am wondering if you might be using an older GIMP.
Other than that possibility I don't know why is isn't working for you.

Author:  Rod [ Thu Nov 03, 2016 6:00 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

Thank you Tran. I made a gear following a gear path. :) Nice filter.

Image

Author:  Rod [ Thu Nov 03, 2016 6:10 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

And one with smaller brush settings. The last one was 30 min and 40 max
This one has the settings below.

Image

Image

Very Cool! :bigthup

Author:  MareroQ [ Thu Nov 03, 2016 6:47 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

Again, I want it in my simple shape plugin...

Attachments:
Follow_Path_With_Perspective_Brush in Gimp 2.9.5.png
Follow_Path_With_Perspective_Brush in Gimp 2.9.5.png [ 338.59 KiB | Viewed 1269 times ]

Author:  Rod [ Thu Nov 03, 2016 7:37 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

MareroQ wrote:
Again, I want it in my simple shape plugin...

That is a great example of this filters potential MareroQ! :clap

Author:  Rashid [ Thu Nov 03, 2016 8:35 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

Does it look-like your tree-plantaion image?

Created a new Brush Dynamic with Size Variation(Size-->Pressure & Fade checked).

Attachments:
Result.jpg
Result.jpg [ 403 KiB | Viewed 1263 times ]
New Brush Dynamic.jpg
New Brush Dynamic.jpg [ 129.28 KiB | Viewed 1263 times ]

Author:  trandoductin [ Thu Nov 03, 2016 9:07 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

yes it does look like it, nice work.
But are you using GIMP 2.8 or older GIMP?


EDIT: for a second there i thought the script worked for you, but after looking at it carefully i notice the size variation only seem to happen at the top, it doesn't gradually happen throughout the whole y-coordinate space like the fake 3D effect.

Author:  Rashid [ Thu Nov 03, 2016 9:59 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

I am using Gimp 2.8.10. The point of concern is the result of the result of the script which is against expectation.

Author:  trandoductin [ Thu Nov 03, 2016 10:03 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

I am using 2.8.16.
It's a concern but if it's an older bug in 2.8.10, I don't want to have create my own brush when the active brush is supposed to work fine.

Found something related to this: https://www.bountysource.com/issues/137 ... ont-t-work.

Author:  Rashid [ Thu Nov 03, 2016 10:17 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

My discipline has been 'Plant Sciences (Botany)'. Computer programs are horrible things to me. I visited the site but couldn't understand the importance of the code for console. Apologies.

Author:  Rod [ Thu Nov 03, 2016 10:31 am ]
Post subject:  Re: Follow Path With Perspective Brush for GIMP

You can actually do that with "WHEEL" and "FADE" in the brush dynamics editor (if you have the wheel in your mouse set to size increase or decrease), . BUT it will only make a small brush and then the rest larger but the same size. Your script is a whole lot different Tran.

Page 1 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/