Forum: Poser - OFFICIAL


Subject: Nylon Material?

Latexluv opened this issue on Jun 04, 2010 · 182 posts


bagginsbill posted Thu, 10 June 2010 at 10:35 PM

Here is a shader that implements the distance-based opacity calculation.

We're building shaders around opacity, but the distance-based transparency attenuation I explained in the previous post needs transparency, T, not opacity, O.

Remember that I said opacity and transparency are complements of each other.

So: O = 1 - T and T = 1 - O

Remember that the transparency is T ** D, where D is the distance.

T ** D
= (1 - O) ** D

This gives the effective transparency.  We need to convert that to opacity to plug into the Poser Surface.

1 - (1 - O) ** D

This is the heart of the shader above. But what is D?

Guess what ... it is 1 / cos(alpha) again.

In the shader, the bottom right node is the desired cloth opacity, O. The rest is the equation:

1 - (1 - O) ** (1 / cos(alpha))


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)