Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 05-02-2007, 07:47 PM   #1
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default Adding grunge to a mirror surface?

How do I add grunge/ cracks to the mirrored surface below? As to create the mirrored effect I have set the colour to black, so how would I do this as a texture? if that makes sense.
Attached Thumbnails
 
__________________
If you believe in telekinesis, raise my right hand.
j5ive is offline   Reply With Quote
Old 05-02-2007, 08:40 PM   #2
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sure does make sense.

It's not that much of a prob, though I must admit, with the myriad of options to be had, I must have just got lucky this time..

What you need is a Layered Shader. You need to add at least two materials to it, I guess you could use a seperate material for the cracks and a seperate material for the grunge and crap.

You want to use an image with transparency, the cracks and grunge being coloured and opaque. I assigned this image to both the colour and the transparency channels of a lambert.

You also need your standard mirror shader, blinn, whatever.

After you've got these two shaders, make a layered shader with the cracks shader on the left and the mirror shader on the right (of the Layered Shader Attributes) section as seen in the attribute editor. I guess you could use two seperate images for the cracks - 1 coloured and 1 black and white transparency-map. I haven't bothered to check if it makes that much of a difference to the finished image.

Here's what I got when I applied these settings.
I can send the scene if this isn't very clear.

Edit: Nice image btw, I guess I shouldn't ask what a nice lady like that is doing in the gents?
Attached Thumbnails
 

Last edited by enhzflep : 05-02-2007 at 08:43 PM.
enhzflep is offline   Reply With Quote
Old 05-02-2007, 08:56 PM   #3
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

That is sweet! I'll give that a try after I have my tea. Thanks for taking the time to do that enhz really appreaciated. I am a complete noob with shaders so this will help massively. BTW, the scene is for a game demo I'm currently 3/4 of the way through and the character is just a reference from a previous scene.
__________________
If you believe in telekinesis, raise my right hand.
j5ive is offline   Reply With Quote
Old 05-02-2007, 09:05 PM   #4
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

:bandit:
Cool Mate, glad you like. I just learned a new trick too, so thanks for that. Looks like we both win.

Problem solving - Oh YEAH!, bring it on.
Creativity - er, um - I think you got the wrong number, that's not me..

Ah-hah!, game eh? Reminds me of a few scenes from DukeNuem3D... Ah, fond memories.

Simon
enhzflep is offline   Reply With Quote
Old 05-02-2007, 09:44 PM   #5
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

mate, that worked a treat, thanks. Just a quick test.
Attached Thumbnails
 
__________________
If you believe in telekinesis, raise my right hand.
j5ive is offline   Reply With Quote
Old 05-02-2007, 11:49 PM   #6
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cool Magool,

Lookin' great. I know at least 2 people with a smile on their dials. Thanx heaps for showing us the test render.

Waaay better than my crud..

S.
enhzflep is offline   Reply With Quote
Old 06-02-2007, 09:10 AM   #7
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Yeah for Beet up, grunge, mud, oxidised and other rubbish layered shaders are the way to go!

BTW on a side note if you ever need dust you can use map a sampler info node to a ramp then into the incandesecne node of the material, that way you get more dust as the angle ofthe camera moves further to 180 degrees.
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 06-02-2007, 11:40 AM   #8
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Honestly gster, I've read- and re-read what you've said but I don't follow. Adding dust/grime would also be another thing on my to do list. What is a sampler info node? I don't have Maya hear with me to try it out, I really need to get knee deep with shaders as this is the first time I have/will be using them and tbh I am really in the dark with them.
__________________
If you believe in telekinesis, raise my right hand.
j5ive is offline   Reply With Quote
Old 06-02-2007, 11:59 AM   #9
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Out of the help files for a sampler info node

"Provides you with information about each point on a surface as it is being sampled, or calculated, for rendering purposes. Sampler Info can give you information about a point’s position in space, its orientation and tangency, and its location relative to the camera."

If you Plug the facing ratio into a ramp then play with the colours on the ramp thats then attached to a material it adjusts the colour (if that what you want) so that you see more (of less depending on how you set the ramp up) of the colour as the material "bends away" from the camera.

It sets up a fresnell effect, like when you walk past a building made of glass, as your walking down the street it looks totaly reflective but if you look straight as the glass its transparant, it sets that up usingthe cameera as your eyes so to speak.

Dust kind of works the same as you look at dust from an angle you can see it, as straight on it looks normal (depending on how dusty it is) if you use the incandesance channel of a material with a dusty colour or texture (defined on the ramp) you can get it looking like dust etc.

Hope this helps a bit.
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 06-02-2007, 12:07 PM   #10
j5ive
Subscriber
 
j5ive's Avatar
 
Join Date: Feb 2005
Location: Sunny Ol' Wigan, UK
Posts: 752
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Cheers, I'll give it a play when I get home.
__________________
If you believe in telekinesis, raise my right hand.
j5ive is offline   Reply With Quote
Old 06-02-2007, 01:35 PM   #11
Radical Edward
Registered User
 
Radical Edward's Avatar
 
Join Date: Jan 2006
Posts: 234
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how about a normal map so that some of the cracked pieces of glass are at a slight angle?
Radical Edward is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.