View Full Version : multiple shaders on one object?
luma clark 04-22-2005, 09:33 PM hi. how can i have more than one shader on one object? like, i need a metal material and a painted metal material for an object. like having two or more shaders on the same object. if possible, i'd like to control the transition with a mask? also, it would be handy to also be able to use more than two shaders.
please help.
thanks,
luma
| |
luma clark
04-22-2005, 10:57 PM
okay. figured out that i need a layered shader.
:D
luma clark
04-23-2005, 07:58 AM
okay. it appears that the layered shader is not what i need. after playing with it, it appears that it composites (mixes) the shaders. this is not what i need. i need to have two distinct solid textures on one object. any help would be dolby.
please help.
thanks,
luma
floze
04-23-2005, 03:28 PM
I guess the most charming way to do this is using mix8layer (http://www.highend3d.com/maya/shaders/, unfortunately I cant link it directly, so you have to search for it).
Assign it to your object, then assign your first shader as the base color, and your second shader as the first layer. Now you have to paint some sort of a 'weightmap' (you could use the 3dpaint tool), whereas black belongs to the first, and white to the second shader. Areas in between will be interpolated, just have an eye on nicely fading 'seams'.
When you got the weightmap, assign it's outAlpha as the opacity factor (called o.factor) of your first layer. Hope that helps.
Alternatively you could assign individual shaders to individual faces. Yeah, that's possible too! ;)
Simply select the desired faces and either assign a brandnew shader via the 'Lighting/Shading' tab of your Render menu, or goto the hypershade, hover over the desired shader, hold down the right mouse button and assign it to the selection.
Good luck! :thumbsup:
XanderFX
04-23-2005, 03:43 PM
The transitions in a layered shader are controlled by transparency maps. Look it up in the help files you can also go over to Highend3d.com like floze said and download the painted metal texture (http://www.highend3d.com/files/screen.3d?group=mayashaders&file_id=1018&file_loc=metalmania_2-v1.0-.zip) to see how he set up his Layered Shader
CGTalk Moderation
04-23-2005, 03:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2009, Jelsoft Enterprises Ltd.