Forum: Poser Technical


Subject: Texture falloff along an axis

RubiconDigital opened this issue on Oct 30, 2006 ยท 6 posts


RubiconDigital posted Mon, 30 October 2006 at 3:09 PM

I need to make a texture fall off along a specific axis, for example, along the z axis, so that as the object recedes into the distance the texture fades out. This would take me about 2 minutes in LightWave but I still can't seem to find a way to do it in Poser. Can anyone offer a pointer or two?

Cheers.


nruddock posted Mon, 30 October 2006 at 5:45 PM

The "Math_Functions" node is the Z value where the fade will equal 0. The "Math_Functions_2" node is the Z value where the fade will equal 1. Connect what you want at fade <= 0 to the "Blender" node's "Input_1". Connect what you want at fade >= 1 to the "Blender" node's "Input_2". You'll have to adjust the min and max Z values to suit your scene. The quickest way would be to put the shader up on an appropriately scaled plane.

If you want a more complex fade function, consider using Matmatic -> http://www.runtimedna.com/mod/forum/messages.php?ShowMessage=228105


RubiconDigital posted Mon, 30 October 2006 at 5:52 PM

So I would need a shader tree just like that one, with that many nodes?
It does seem rather complicated in order to just fade out a texture.


nruddock posted Mon, 30 October 2006 at 7:39 PM

Quote - So I would need a shader tree just like that one, with that many nodes?
It does seem rather complicated in order to just fade out a texture.

Not really very many nodes (two are only there to provide obvious places to set the min and max values), but most of the Poser nodes are primitive (in the same sense as a sphere or cube), so you need to construct things from first principles, which is why Matmatic is handy (it's a material compiler).

Complex would apply to these node setups
http://www.renderosity.com/mod/forumpro/showthread.php?message_id=2290402&ebot_calc_page#message_2290402
http://www.renderosity.com/mod/forumpro/showthread.php?message_id=2389494&ebot_calc_page#message_2389494
http://www.runtimedna.com/mod/forum/messages.php?ShowMessage=240354


RubiconDigital posted Mon, 30 October 2006 at 7:59 PM

OK, thanks. I'm off to see what I can come up with.


Miss Nancy posted Tue, 31 October 2006 at 12:45 PM

one might also be able to fake it, using photoshop with a gradient mask applied to the render of the object alone. said mask can either be generated by aps gradient tool, or in poser using the "depth-cueing" thing, which will generate an alpha channel that looks like a gradient in the z-direction (at least in Mac OS).