YOUR ACCOUNT

Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
The "Normalized Layer" slave will give you position within the octave blend layers.

How do I get a similar normalized position for the "Depth map" input?

I can get the actual particle depth map value using Center X,Y and a Lookup with the Depth map source - but that is not normalized and it will be very expensive figuring out the min/max values to do the normalization myself (if that is possible at all).
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
It would seem to be a question of how you generate the Depth Map to begin with. Meaning, if the input Depth Map is normalized, the output one obviously will be.

So my question is: How are you generating the Depth Map you want to normalize?
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Quote
ThreeDee wrote:
So my question is: How are you generating the Depth Map you want to normalize?


Straight Perlin Noise.. I can't simply use the Noise and "Background" inputs as there is no way to tell what the actual minimum and maximum values are (picked at Center X and Y).

The values sampled from the depth map leads to a different particle order - It is that order I want, or their Z-Index so to speak
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
Sounds like you want it to be perfectly normalized with lowest value at 0 and highest at 1, as opposed to just fitting into that range? Yeah, that's a pickle. That oft-requested minimum/average/maximum value from internal source component would sure be handy here.

(Since you still do get the depth map in the correct order doing that, why do you want to normalize it?)
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1750
Filters: 39
Well, I want the index/position/order of the particle when using the depth map input (just like we can get from the octave layer stuff).

I may have been too focused on the normalized depth map wording above smile;-)

Inside the bomber, the depth map samples are used to determine the particles z-order. However if you try to look up that value your self using the Center X and Y from the same source as the depth map, you don't know what the min and max values are and how they are distributed in between.

You may get one particle depth sample at the value 0.1 and the 800 others between 0.98 and 0.99. This is perfectly valid input that could produce a particle z-order that is virtually the same as if the depth map samples were delivered in a nice evenly spanned sample set between 0 and 1
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1672
Filters: 112
As far as I can tell, that would only be the case if your source image values were mostly between .98 and .99, which is why I would try and make the source values "normalized."
  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:

16 unregistered users.