Forum: Poser - OFFICIAL


Subject: Shaders - how to display a stripe of a texture over another texture?

Black_Star opened this issue on Mar 28, 2008 · 4 posts


Black_Star posted Fri, 28 March 2008 at 2:09 AM

Hi!

Is there any way of combining two textures by displaying a portion (stripe) of a texture over another?I know there was a way by using a black an white map on wich was the stripe in a node (I don't remember wich) in order to define the size and shape of the texture you want to display over.Something like a mask.
Thank you in advance!

Best regards!

PS : is the blender node a good option, or is there any other way around?


bagginsbill posted Fri, 28 March 2008 at 9:20 AM

Blender is perfect for this. Plug your two textures into it, and then you need to decide what to use to control the blend.

Basically, you want a shape to appear that consists of black or white. The black region will choose Value_1's texture. The white region will choose Value_2's texture.

The shape can be procedural (using nodes) or it can be drawn (using an Image_Map node to hold the drawing.)

This is an example of what I call a "dual" material - a single shader that really has two shaders within it. Your case is pretty simple - same shader logic, just using one of two different color maps in each region.

More can be done - you can make each region appear to be different in every characteristic - not just color (from your texture blend) but also specularity, reflection, bump amount - everything can be different in the two regions.

Here's a thread where I showed this technique to create a dual material that did metallic car paint and plastic decal in the same shader.

Dual Materials with Stencils 


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)


Plutom posted Fri, 28 March 2008 at 9:35 AM

Thanks Bagginsbill, more for me tool box--Jan


Black_Star posted Fri, 28 March 2008 at 2:20 PM

Very informative! Thank you!

PS : this can be doen in the same way, or should I add something extra?As you can see the red color is "bellow" the actual cover, giving it a glassy look...