Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Materials & Textures (https://simplymaya.com/forum/forumdisplay.php?f=18)
-   -   2 Materials onto 1 object? (https://simplymaya.com/forum/showthread.php?t=8465)

ade90054 16-10-2003 05:20 PM

2 Materials onto 1 object?
 
Hi, could someone please tell me how I can easily apply 2 different shaders onto 1 object, say a poly plane, apply 1 shader to one set of faces on one side and another on the other side?

Many thanks :)

mtmckinley 16-10-2003 05:26 PM

Select the faces, right click on the material in the Hypershade, Assign to Selected.

GreyFox 16-10-2003 05:37 PM

You can also drag to the selected face.

ade90054 17-10-2003 11:11 AM

Not Quite!
 
Thanks but that's not quite what I meant, try this for example: Create a poly plane, try and select the faces of one side of the plane and apply a shader, next try and select the other side and apply a different shader to it? The problem is you don't seem to be able to select the other side as the faces from the first side are considered by maya to be the same as the reverse! I think that makes some kinda sense? Any ideas?? THX, James.

mtmckinley 17-10-2003 01:50 PM

sounds like you'd want a very thin cube rather than a plane. It is possible to do what you ask, but it's a lot of trouble in my opinion.

ade90054 17-10-2003 05:39 PM

Cheers!
 
Yeah i know mtmckinley, but I was set the task by a friend of mine, we seem to have challenged each other to a kind of competition, he thinks of a task for my to do and when I've done it I throw one back at him. Quite fun and good way to learn I thought?

dave_baer 20-10-2003 07:16 PM

Quote:

we seem to have challenged each other to a kind of competition, he thinks of a task for my to do and when I've done it I throw one back at him. Quite fun and good way to learn I thought?
That's the purpose of out CHALLENGES forum. Want some good challenges, take part in one of ours. :D

What you're trying to do can't be done. When you apply a shader to geometry, it applies it to both sides of it. In the case of a plane, both sides will have the same shader applied to it. Thus, if you have text in the texture, it will read normal on one side but reversed on the other. That's just the way Maya works. You could go the route of what Mike said and create a very thin cube. That way, it will have two physical sides instead of one and you can apply two different shaders to each side.

:beer:

ade90054 20-10-2003 07:31 PM

" What you're trying to do can't be done "

I think it can, your right about the text thing but there must be a way round this, i'm working on it at the moment, i'll keep ya posted ( If I succeed that is! ) Thanks anyway :)

dave_baer 20-10-2003 07:35 PM

Make sure you post images if you do it.

:beer:

Dann 20-10-2003 10:24 PM

Try this tutorial

http://caad.arch.ethz.ch/info/maya/m...m4.html#998041

Let us know if it works.

RickStefani 22-10-2003 06:31 PM

I know Max has a material called two sided which does what you are trying to do. I am curious to why you would want to. A surface is an infinately thin sheet and averything in the real world should have a little thicknes to get an edge high light. Also it is very unforgiving if anything interacts with it.

mtmckinley 22-10-2003 06:39 PM

What Dann suggested is the only way I know of. Like I said, kind of a pain.

NitroLiq 24-10-2003 03:55 AM

1 Attachment(s)
There's an alternative method of connecting your initial textures if you're using the tutorial mentioned above. Instead of connecting each texture's Out Color attribute to the condition utility's Color 1 and color 2 attributes, try this instead:

Connect the outer texture to the condition node's "colorIfTrue" attribute. Then do the same for the texture you want on the inside, except connect it to the condition node's "colorIfFalse" attribute. So in a few short steps, here's the whole thing:

1. Create a blinn, a condition node, and two textures (in my example below, a wood texture and checkerboard).

2. Middle-mouse drag and drop the condition utility node onto the blinn and choose "color".

3. Now, connect the textures (mmb, click and drag) as I mentioned above. If we want the wood on the outside of our object (the direction the normals are facing), you'll connect that to the condition utility's "colorIfTrue" attribute. The blinn will take on the color of whichever you have plugged into "coloriftrue." So, connect the other texture to the condition node's "colorIfFalse".

4. Create a sampler info node and middle-mouse drag and drop it on the condition node and choose "other" which will open the connection editor. Connect Sampler Info's "Flipped Normal" into the condition's "First Term" and you should be good to go.

ade90054 24-10-2003 05:51 PM

Nice!
 
Excellent dude, just tried that one out and it worked perfectly! cheers mate :) I just love the way there's nearly always a work around for just about everthing in maya!

Thanks again, James.

michifeuz 05-05-2015 07:14 PM

it's been quiet a while... but still helpful. ;)
thanks a lot!

m


All times are GMT. The time now is 12:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018