Thu, Oct 31, 7:02 PM CDT

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Oct 31 4:59 pm)



Subject: Node mask for displacement?


MNArtist ( ) posted Fri, 13 November 2009 at 1:57 PM · edited Wed, 11 September 2024 at 2:16 AM

 There's probably a painfully simple answer to this, but I've been struggling to figure out how to do it.

I want to create a displacement map over part of a figure, and standard bump over the rest (the alternative would be to be able to assign different displacement levels to different areas).  The different areas do not align with the regular material areas of the figure. Is there a way to do this by assigning a node mask to the displacement channel? Or is there another way to do this. 

Does this make any sense?

I'm using Poser7 SR3.

Any suggestions appreciated.


PhilC ( ) posted Fri, 13 November 2009 at 2:03 PM

Is this what you need?
http://www.philc.net/tutorial8.php


MNArtist ( ) posted Fri, 13 November 2009 at 3:39 PM

 Thanks for replying and the link, Phil. That's a useful tutorial!
I don't think that's quite going to work. If I understand that example, it shows the same displacement level across the entire material zone (6.0), even though there are two images mapped. What I'm trying to do is assign different displacement levels to different areas within the same material zone (ideally, one area would be displaced and the other just bump mapped)., and was wondering if that's possible with a mask.


RobynsVeil ( ) posted Fri, 13 November 2009 at 5:18 PM · edited Fri, 13 November 2009 at 5:19 PM

Going out on a limb here - waiting for BB to come along and give you a more definitive answer:

Displacement (like bump) uses luminance values to define how much or how little displacement occurs. So, I would consider making a mask that has grey -- IColor(127, 127, 127)?? -- as zero point (no positive or negative displacement) where you don't want displacement at all to superimpose over your existing map ... you can do this in the paint programme of your choice.

Did I learn this correctly?? Anyone?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


Keith ( ) posted Fri, 13 November 2009 at 6:06 PM · edited Fri, 13 November 2009 at 6:06 PM

file_442998.jpg

No, Phil's way is how you do it.  If you look at it, you'll note that the black and white face mask is plugged into a blender node, which combines two different displacement maps: the grayscale one for the face, and one for the bricks (you just don't see the brick one as an image, just the settings on the Brick_2 node).  The mask is making sure the displacement for the face only appears on the face, and the one for the bricks on the bricks.

Here's a more useful example for what I imagine you're looking at: this one only uses bump maps, but the principle is exactly the same.  If you look at what I highlighted in red, you'll see that going into the bump setting is a blender that combines the face bump map with something else: in this case, I didn't plug anything into the other part and just left it white, but I could have plugged something in.  The black and white mask plugged into that node makes the skin bump only happen on the part of the face where I want human looking skin, and a raised, smooth surface otherwise.

If I plugged it into the displacement node, it would have worked just as well there.



chriscox ( ) posted Fri, 13 November 2009 at 6:09 PM · edited Fri, 13 November 2009 at 6:10 PM

file_442999.jpg

Here's a way to set up different amounts of displacement using the blender node.  The math nodes are used to control the amount of displacement.

Chris Cox



Teyon ( ) posted Sat, 14 November 2009 at 1:08 AM

If none of the masking suggestions work, a quick fix would be to simply create the displacement map up to the point you want it to be. and export that. Then, create a bump map and export that. Assuming you're doing this in an app that supports layers, you should be able to get just the info you want per map. It'll be two maps but it'll be two maps that get the job done. Just a thought.


IsaoShi ( ) posted Wed, 18 November 2009 at 8:34 AM

Slightly OT, but a reminder to RV: Poser uses colour value (0,0,0) for zero displacement, not (127,127,127). Displacement maps with a grey base value for zero must have that value subtracted from them to give correct positive and negative displacement data.

As far as I have been able to determine, whereas Poser uses absolute map data for displacement, it uses differential map data for bump. A uniform map of any shade -- black or white or anything in between -- when plugged into the bump channel had no effect on the surface normals, since it contained no differential data. Therefore it is not necessary to offset the zero value of a bump map in the same way as it is for a displacement map.

Corrections / confirmations welcomed, as always.

"If I were a shadow, I know I wouldn't like to be half of what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki Murakami)


bagginsbill ( ) posted Wed, 18 November 2009 at 10:44 AM

Uhh, displacement also works on differentials. If you put a uniform gray into displacement you will not see any small variations, although the whole surface will move uniformly.

Bump produces the identical changes in normal as displacement does, but only displacement produces changes in position as well. The bump mapping is calculating the effect of doing the displacement, without actually doing it.

As a result, you can get artifacts in bump just like you can get in displacement, when two nearby surfaces move towards each other and actually cross over, even though bump doesn't actually move anything.

See this post (and the next one on page 2) for a demonstration of bump artifacts caused by not doing the subtraction offset to neutral 0.

http://www.renderosity.com/mod/forumpro/showthread.php?message_id=3363289&ebot_calc_page#message_3363289


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)


IsaoShi ( ) posted Wed, 18 November 2009 at 11:16 AM

Thank you, bb.

"If I were a shadow, I know I wouldn't like to be half of what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki Murakami)


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.