View Full Version : layering shaders...
mabuffaloe 02-08-2003, 06:42 PM Is it possible to layer projection textures over other textures in Maya without using the layered shader? For example, I have a tile floor that is a repeated file texture and I want to put a layer of dirt over the whole thing (I don't want to put the dirt in the file texture because I don't want it to repeat in little tile shapes--I want to spread it out). Can I use a projected texture of dirt with transparency? So far it hasn't worked for me....
EDIT: Or.... if it's not possible, how do you use a projected material in a layered shader?
|
|
luminis
02-09-2003, 01:11 AM
It is possible to do what you want to do by using a layered texture. Since each file texture will have its own placement node, you can have one texture to repeat on each tile, while the other texture to not repeat at all and cover the entire floor.
For each layer in the layered shader, choose a file texture with the settings "With New Texture Placement" and "As Projection" in the creation options. Your shading network should look something like this image:
http://www.luminis3d.com/cgt/img/layer.jpg
mabuffaloe
02-11-2003, 04:41 AM
OK, I set the layered shader up like the one in your pic, but I can't get the second one to show up at all...I've rearranged the order, nothing seems to work. It is a projection image layered on a normal file image. What do you think?
Madpear
02-11-2003, 08:09 AM
First of all, you should know that 3D projections don't manage the alpha of the image file. In order to project the alpha of the image you must change some settings of the projection. Go to the attribute editor of the projection. In Color Balance put the Alpha gain to 0 and the Color Gain to black. Then connect the Out Alpha of your image file to the Alpha Offset of the projection. Now the projection project the RGBA channels of your image file.
Create a Layered Texture. Drag and drop your Projection next to the green square in the Layered Texture attribute editor. Clic on the cross below the green square in order to delete it. Clic on the blue square to select it. Drag and drop the projection on the Alpha.
Do the same with another projection. In the layered texture attribute editor, you can change the position of your layers by MMB drag and drop them.
If you have other questions, i'll be here :)
mabuffaloe
02-11-2003, 03:27 PM
hmmm, ok I do have another few questions for you.... How should I treat the image in photoshop; should i use alpha channels, or make another image to act as a transparency map? Which file format should I use; tif, tga, something else?
I was working through the steps you listed, and there was only one part I couldn't follow... when you said "Drag and drop the projection on the Alpha" at the end of the second paragraph, what Alpha are you talking about? I couldn't find one in the attributes of the layered shader. Sorry, but I haven't worked with layered shaders before! :hmm:
Thanks so much for the replies!
Madpear
02-11-2003, 03:48 PM
Ok, so my advices were for a layered texture.
So first of all, I always use IFF or RBG image files (you can find the plugins for photoshop on highend3d) because these files are the only ones wich contain the RGBA and Z informations.
For the alpha, select the layered texture, then CTRL A to go to the attribute editor. There click on one of the blue squares above to select it. Below, you can see Color and Alpha (or transparency for the layered shader). Then, just drag and drop the projection on the Alpha. That's it.
mabuffaloe
02-12-2003, 02:34 PM
ok, i will try those steps again in a little while... I do want to ask what is z information? I've been using tiff files because they have alpha information, but i don't know what z information is. Thanks for the help Madpear! :)
Madpear
02-12-2003, 02:43 PM
The Z is a grayscale image (like the alpha) wich contain the distance between the camera and the objects in the scene. So usefull to ZBlur in post or to compose in Z
mabuffaloe
02-14-2003, 12:49 AM
Yay! I finally got it to work! Thanks guys.. :bounce:
onlooker
02-14-2003, 01:24 AM
Hey why dont you save that shader, and upload in to highend, and give us a link to it? I want to see what you came up with.
Or just post a pic. :bounce:
mabuffaloe
02-14-2003, 02:06 AM
sure, no problem! I hope you can see it, as it is a little small! (Let me know if you can't see it and I'll post it with a link) I didn't use a projection on this one, I'm still working on figuring out how to layer those! :)
Here it is:
mabuffaloe
02-14-2003, 02:11 AM
and here it is applied:
(the top layer is a layer of dirt which you can just see at the edges of the cabinet and stove)
CGTalk Moderation
01-14-2006, 09:00 AM
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-2012, Jelsoft Enterprises Ltd.