YOUR ACCOUNT

Login or Register to post new topics or replies
Zoltan Erdokovy

Posts: 204
Filters: 24
I have this plain solid filled cell noise like on
the attached image. What I'd need is gray values
of those cells corresponding to cell area: small
ones would be dark, big ones light. Any pointers?

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
You need them output in what fashion? As a list of values? Do you need to know where in the image the values are? Or just a list of every value that is different? Do they need to be in sequence from small to big or some such thing?
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
I mean I need the cells to be colored according to their size.
(And not random like what the default noise node produces.)
The bigger the cell is the brighter it should become.

Formally:

Code
Cell.Color = float3(Cell.Area/BaseAreaConstant);


Of course FForge doesn't work like this but this shows the idea.
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Some time ago I figured out a simple (but not perfect) way of finding some sort of area proportional output. It is not precisely what you ask for.. but it might be what you're looking for smile:-)

Note that this does not work for 'flat' mode.

Cell Area.ffxml
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
Thanks Sphinx, is that for FF4? I'm kinda reluctant to upgrade, not fond of beta testing.
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Here is an FF3 version with two methods. Note that none of them are perfect, but they're roughly expressing cell size..might be good enough (the method is dead simple and fast.. gotta count for something smile:-D)

Cell Size.ffxml
  Details E-Mail
Zoltan Erdokovy

Posts: 204
Filters: 24
Wow, very clever, I'd never though of this... Cheers, this should
keep me rolling. smile:)
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

41 unregistered users.