YOUR ACCOUNT

Login or Register to post new topics or replies
Zoltan Erdokovy

Posts: 204
Filters: 24
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.
  Details E-Mail
Indigo Ray
Adam

Posts: 1442
Filters: 82
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. smile:)
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
Cheers, my lazy ass hoped there was a simpler way. smile:)
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
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...
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12302
Filters: 35
Considering the answers I may be wrong and understanding it badly but

Quote
Zoltan Erdokovy

What is the best method for creating pixel based shapes? Rectangles, circles, grids, this kind of stuff.


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
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
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".
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
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
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
... which is done now.

(BTW, I need to update the first one, it is one pixel off in relation to the slider control input.)
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
And finally, a Pixel-Based Tiles snippet, which required another Script component to make the bevel width proportionate regardless of tile size.
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
Awesome ThreeDee, thank you! I can't wait to try them out. Your snippets will make life so much easier. smile:)
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
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.

  Details E-Mail
SpaceRay
SpaceRay

Posts: 12302
Filters: 35
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

Quote
Use this scrippet as part of any filter if you want to make the output size pixel-based

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


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

Quote
Use this scrippet as part of any filter if you want to make the output size pixel-based.Note: Disable "Size, pixels" control if you want to use external image component.


2 - Pixel-Based Tiles Snippet

Quote
Tiles with pixel-based X and Y dimensions.


3 - Make Pixel-Based (X,Y) Scrippet

Quote
Use this scrippet as part of any filter if you want to make the output size pixel-based, individually on the X and Y axis.Note: Disable "Size, pixels" control if you want to use external image component. Note 2: Enable "Seamless Tiling" if you want the external image to repeat in normal fashion, not mirrored.

I am sorry that I do not see or understand what is the difference between these 3 can you help a little, thanks
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
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
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Quote
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?


Yes. It will fix the output tile to a specific number of pixels regardless of image dimensions.
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
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
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
Great stuff guys, now I have many options, I like that. smile:) I can't wait to circle back around to texture creation tasks!
  Details E-Mail
LexArt
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
  Details E-Mail

Join Our Community!

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!

Create an Account

Online Users Last 5 minutes:

21 unregistered users.