Forum: Poser - OFFICIAL


Subject: Poser Displacement Map Tutorial

LukeA opened this issue on Jun 11, 2009 · 84 posts


bagginsbill posted Thu, 02 July 2009 at 8:54 PM

Quote - I appreciate the quick reply BB!

I found this while I was trying to figure out that math node
http://poserpros.daz3d.com/forums/viewtopic.php?t=44342

I uses the math and component nodes, but your looks simpler!

Not only simpler, but Stonemason's node setup is actually sort of wrong, but he got an OK result by accident.

First of all the Comp node he used pulls out one color channel from an RGB image. But if all the colors are shades of gray, then the numerical value of the RGB color is identical to the numerical value of any of its channels, so that is a waste of time. The image itself is the same value as the Comp node, as long as the color in the Comp node is white, which it was in the first one. But the second one he had RGB 38,38,38 in it, which actually scaled the numerical value down by 38/255.

So, if we call the numerical value of the displacement map M, then mathematically his node setup calculates:

2.5 * (M + (38/255 * M - 1))

This equals:

2.5 * (1 + 38/255) * M - 1

which is approximately

2.873 * M - 1

Whereas what he really wanted was:

2.5 * M - 1.25

Since this isn't far off, he didn't notice the difference.


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)