3d forums home Resources for 3d artists

Maya: Stencil Shader question

Posted: June 07, 2006
Skubbyl
Hi...
Do you guys use the stencil shader type at all?
Posted: June 08, 2006
Vertox
Do you mean a layered shader ?
Or texture
I dont know a stencilShader
Posted: June 08, 2006
Skubbyl
Well, I'm just trying to add something similar to a decal... but to multiple objects (think about adding the numbers to buttons on a calculator)
I'm having trouble with the "decal" part right now with the layered shader
I have an image, that has an alpha map... but it's not showing up at all.
That image is the Color of input[3] of the layered shader, and the image's alpha channel is assigned to Color[R,G,B]
Posted: June 08, 2006
Vertox
The image alpha has to be assigned to the corresponding alphaValue
For each Color(RGB) there is one singleAttribute for alpha
Posted: June 08, 2006
Skubbyl
So ButtonTextShader.outTransparency linked to input[3].transparency won't cut it?
Posted: June 08, 2006
Vertox
So you work with the layered shader ?
Not the layered texture
Posted: June 08, 2006
Skubbyl
Yes, I'm trying that...
Posted: June 08, 2006
Vertox
I never use that, mr had problems with it, i don't know if it works now
Posted: June 08, 2006
Skubbyl
I'm using > Layered Shader <
Oh, it might be a MR problem then. =P
Posted: June 08, 2006
Vertox
I always use layered textures
Posted: June 08, 2006
PolyGru
Its definetly a mr problem :)
Layered shaders seldom work
_________________
Poly Guru
Posted: June 09, 2006
Skubbyl
That's pretty shitty
Because I really liked Layered Shaders in Max
I was hoping node-based layered shaders would be even more hoss, but if MR can't do it... then... Fuck MentalImages
Posted: June 09, 2006
Vertox
Just try a mayaSoftware rendering to be sure
Posted: June 09, 2006
PolyGru
Its not mr's fault :P
Its the shaders written by alias for it
By layered shader in max, do you mean mix or composite or what?
_________________
Poly Guru
Posted: June 09, 2006
Skubbyl
Man... that's pretty sadening.
Posted: June 09, 2006
Vertox
Get used to it, you will get alot of that with mr
You can layer ur shaders in other ways to
Since you can use the outColor in for example a layered texture
I mean the outColor of a shader
And plug that into the incandescence slot
Posted: June 09, 2006
Skubbyl
Uhmm.... Composite... it was basically "mix" but with Alpha channels and supported numerous shaders
Vertox: yah, I'm sure. It just seems like not using Layered Shader would reduce the modularity of shaders
Hm... not showing up in MayaSoft either. =P
Posted: June 09, 2006
Vertox
So you have a transparency problem probably ?
Posted: June 09, 2006
Skubbyl
Vertox: yah... that connection list could get hairy though.
Posted: June 09, 2006
Vertox
Maya shadingNetworks are great
Probably the best thing about maya, besides the ui
Posted: June 09, 2006
Skubbyl
Yah
I agree, and I do need to learn them better.... baby steps so far
Posted: June 09, 2006
PolyGru
Setting up lightmaps for sss still confuses me :P
_________________
Poly Guru
Posted: June 10, 2006
Skubbyl
Hm... MayaSoft isn't rendering it either...
Tried a few different things. =P
Posted: June 10, 2006
Vertox
PolyGru: its easy
But that script that usually does it connects not the defaultResolution attributes
That leads to problems for me always
Thats why i have to do it on my own always
Posted: June 10, 2006
PolyGru
Oh, I have no problem doing it. but I dont understand why you'd have to :P
_________________
Poly Guru
Posted: June 10, 2006
Skubbyl
If I assign the input[3] texture (the one with the decals) to something, it shows up just fine, proper color, transparency, etc...
Posted: June 10, 2006
Vertox
PolyGru: you just have to do it two times
:)
Yeah ok, thats an important question :)
Because actually what never worked for me is to reused them
But mr has alot of quite uncomfortable stuff
Like building networks for bumps
Posted: June 10, 2006
PolyGru
Definetly
But its extremly flexible if you know how to work it
_________________
Poly Guru
Posted: June 10, 2006
Vertox
I mean shadingNetwork bumps, not just from a file
I actually never saw a good tutorial on that
Posted: June 10, 2006
PolyGru
Maybe you should write one :)
_________________
Poly Guru
Posted: June 10, 2006
Vertox
That would be a problem
Because i only can set it up for filebumpmaps
;)
But even that involves sum nodes
Posted: June 10, 2006
PolyGru
Ah, hehe
Francesca or someone wrote a layered bump shader for mental ray
Never tried it
_________________
Poly Guru
Posted: June 10, 2006
Vertox
FrancescaLuce is great
But its actually really sad people have to make it possible the hardway to make it available for us
Posted: June 10, 2006
PolyGru
What do you mean?
_________________
Poly Guru
Posted: June 10, 2006
Vertox
Like for example the ctrl_buffers
She wrote
I dont know, i suppose she is a female
Because francesca sound like that
Posted: June 10, 2006
PolyGru
Yea, I figured so aswell, but no real way to know :P
_________________
Poly Guru
Posted: June 10, 2006
Vertox
Unless you touch her ;)
Posted: June 10, 2006
PolyGru
Well, yea :P
Her avatar on cgtalk looks girly too, hehe
_________________
Poly Guru
Posted: June 10, 2006
Skubbyl
Okay what the fuck... The ORDER for the layered shader is odd... the one to the left is on "top" I guess, and the ones to the right are lower...
So you add the top first, and then all the ones below it... not the bottom first
Posted: June 10, 2006
Vertox
yes
You can drag them with MMB
Posted: June 10, 2006
Skubbyl
Ahah
I just did that =P
Okay, now it works... something that stupid Smile
Posted: June 10, 2006
Vertox
But my layeredTextures always act strange because everytime i go into it in the AE it creates a black new layer on top of all
And they have the same problem like i guess all maya Array stuff, if you delete one the numbers arent contignous
Which especially leads to alot of problems with uvSets
Posted: June 10, 2006
Skubbyl
Trying MR now....
And it works with MR
Posted: June 10, 2006
Vertox
:)
Still layeredShader ?
Or layeredTexture ?
Posted: June 10, 2006
Skubbyl
Yup
LayeredShader
I'm hooked on the concept =]
Posted: June 10, 2006
Vertox
If you would use francescaLuces mrMix8Texture you would even be able to use blendingModes :)
Posted: June 10, 2006
Skubbyl
Got a URL for francescaLuces?