Zoltan Erdokovy
![]() |
What is the best method for creating pixel based shapes? Rectangles, circles, grids, this kind of stuff. I've found a few forum threads but they are very old so I thought I ask what's the latest news regarding this topic.
|
|||||||||
Posted: June 8, 2015 4:03 am | ||||||||||
Indigo Ray
![]() |
Try starting with the Script API. Check the help files. The script can access the global SIZE variable, as well as image width and height. So, the top left pixel spans from 0 to 1/size in both x and y. I haven't done pixel shapes, but some of us have made dithering filters that need to know the image dimensions in order to work properly.
Actually, you probably already know all this. ![]() |
|||||||||
Posted: June 8, 2015 1:53 pm | ||||||||||
Zoltan Erdokovy
![]() |
Cheers, my lazy ass hoped there was a simpler way.
![]() |
|||||||||
Posted: June 9, 2015 2:41 am | ||||||||||
ThreeDee
![]() |
Maybe a "Convert to Pixel-based" scrippet would be in order? It's a simple thing to do and could be used in any filter that needs such an option...
|
|||||||||
Posted: June 22, 2015 3:33 pm | ||||||||||
SpaceRay
![]() |
Considering the answers I may be wrong and understanding it badly but
Maybe I am wrong, or I do not understand the question, but is not this already included inside filter forge in some way? I think that this is inside the Polygon component Or at least there are some snippets available that are able to make simple shapes, also on many filters, there is included many of this filters inside, so you can see how they are done Also for some more complex shapes there is the useful, helpful and awesome tutorials made by CFandM Working on Shapes Tutorials |
|||||||||
Posted: June 23, 2015 4:51 am | ||||||||||
Zoltan Erdokovy
![]() |
I haven't used FF or browsed the forums in a while so I was just wondering if there was some new, simple way to draw shapes in a pixel based fashion. For example "I want to fill the image with 2x3 px rectangles".
|
|||||||||
Posted: June 23, 2015 4:57 am | ||||||||||
ThreeDee
![]() |
Hi Zoltan,
Just made and submitted a scrippet that you should be able to plug in at the end of any filter before the Result component to make the output of the filter a specific pixel size regardless of the image dimensions. This version works based on a square input, i.e. it scales the same amount in both directions. Should show up in the library in the near future. I guess I could also make one that has individual controls for x and y pixel dimensions. TD |
|||||||||
Posted: June 23, 2015 7:14 am | ||||||||||
ThreeDee
![]() |
... which is done now.
(BTW, I need to update the first one, it is one pixel off in relation to the slider control input.) |
|||||||||
Posted: June 23, 2015 7:40 am | ||||||||||
ThreeDee
![]() |
And finally, a Pixel-Based Tiles snippet, which required another Script component to make the bevel width proportionate regardless of tile size.
|
|||||||||
Posted: June 23, 2015 9:03 am | ||||||||||
Zoltan Erdokovy
![]() |
Awesome ThreeDee, thank you! I can't wait to try them out. Your snippets will make life so much easier.
![]() |
|||||||||
Posted: June 23, 2015 9:17 am | ||||||||||
ThreeDee
![]() |
So now you can make just about anything conform to specific pixel sizes with relative ease.
For instance, this is the built-in Tiles component scaled to 200% (so one tile fills the output area) and then put through the "Make Pixel-Based (X,Y) Scrippet" and made into a specific pixel size with two sliders -- 40 x 75 pixels per tile in this case. External Image works, too, especially if you bring it in through the Color Control component, place it at top left corner and set it to tile. ![]() |
|||||||||
Posted: June 23, 2015 9:38 am | ||||||||||
SpaceRay
![]() |
Excellent and great new snippet made by one of the gods of FF, and seems to be very good and useful, but could you be so kind to explain it a little more how to use it
I do not know if I understand this right Is this meaning that you can add this snippet at the end of a filter and then the output of this will be customised to the size you want without any relation to the resolution size of the image configured? 3 SNIPPETS BY THREEDEE 1 - Make Pixel-Based Scrippet
2 - Pixel-Based Tiles Snippet
3 - Make Pixel-Based (X,Y) Scrippet
I am sorry that I do not see or understand what is the difference between these 3 can you help a little, thanks |
|||||||||
Posted: June 24, 2015 6:12 am | ||||||||||
ThreeDee
![]() |
Hi SpaceRay,
1) makes the output pixel-based, so that the image tile is always the same number of pixels regardless of image dimensions. The output tile is square. 2) a tiles component where the tiles size is controlled by pixel dimensions 3) same as (1) except that you can scale the output differently on x and y axis, so the output tile can be rectangular. (The output of the filter will get stretched accordingly.) TD |
|||||||||
Posted: July 12, 2015 6:07 am | ||||||||||
ThreeDee
![]() |
Yes. It will fix the output tile to a specific number of pixels regardless of image dimensions. |
|||||||||
Posted: July 12, 2015 6:10 am | ||||||||||
Vladimir Golovin
Administrator |
Zoltan, check out the latest beta release. We added several components that allow access to pixel coordinates, and to image width and height. We didn't have any specific use in mind (e.g. circles and other things you mentioned) -- we just exposed pixel coordinates to the filter tree.
Give them a run, and perhaps you will find a way to utilize these for your task: https://www.filterforge.com/download/b...eness.html |
|||||||||
Posted: July 15, 2015 1:42 pm | ||||||||||
Zoltan Erdokovy
![]() |
Great stuff guys, now I have many options, I like that.
![]() |
|||||||||
Posted: July 15, 2015 1:46 pm | ||||||||||
LexArt
![]()
Posts: 256 |
This seems to be interesting and useful, but regretably I do not understand what is shown here and the meaning of this.
Will have to learn more about this |
|||||||||
Posted: March 17, 2016 1:16 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,718 Registered Users
+6 new last day!
153,540 Posts
+9 new in 7 days!
15,348 Topics
+72 new in year!
21 unregistered users.