Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 08-11-2003 , 04:54 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211

custom shader

I was messing with shaders earlier. I connected the facing ratio attribute of a samplerInfo node to the reflectivity of a blinn shader. Now I want to invert the reflectivity i.e. when the facing ratio is 1 I want reflectivity to be 0 and viceversa.

I know I probably have to use the graph editor for this. But I'm not sure how to do it.

Can you please help me out?

Thanks.


~nspiratn
# 2 08-11-2003 , 05:57 PM
NitroLiq's Avatar
Moderator
Join Date: Nov 2002
Location: New York
Posts: 2,133
Have you tried experimetning with throwing a reverse and condition node into the mix?


"Terminat Bora Diem, Terminal Auctor opus."
# 3 08-11-2003 , 08:07 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211
Umm nope. user added image

But Instead of adding more nodes in the network, wouldnt it just be easier to do it the way I mentioned in my previous post?

I saw a gnomon workshop video once where the guy did what I'm trying to do, I just don't have access to that video anymore so I can refer to it. So I've been wondering if anyone here knows how to do it.


~nspiratn
# 4 08-11-2003 , 08:22 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211
NitroLiq, I don't think I can connect the output of either the reverse node or the condition node to the reflectivity attribute of my shader because its a single value attribute as opposed to the outputs of reverse and condition which are triple value.

Right?


~nspiratn
# 5 08-11-2003 , 08:22 PM
mtmckinley's Avatar
The Maya Mountain
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
There's lots of ways to do anything. Don't dismiss one person's way just because you've seen it done another. user added image It might work better!

# 6 08-11-2003 , 08:23 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211
Hehe I didnt dismiss it. user added image

Read my post above.


user added image


~nspiratn
# 7 08-11-2003 , 08:24 PM
mtmckinley's Avatar
The Maya Mountain
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
ah, posted at same time. user added image I'll keep my comment around for future use. lol

# 8 08-11-2003 , 08:26 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211
Hehe.

But you were totally right, there user added image Point taken.


~nspiratn
# 9 09-11-2003 , 03:58 PM
NitroLiq's Avatar
Moderator
Join Date: Nov 2002
Location: New York
Posts: 2,133
After doing a little reading, I'm not entirely sure a condition node would work anyway as I believe it's directly related to outcolor. Ive used it to create a double-sided shader before and was thinking along the lines that you could use it to make a condition that if facing ratio is 1, make the blinn's reflectivity 0 and if not, reverse it with the reverse node. What gnomon video were you originally referring to? If I have it, I might be able to look it up for you.


"Terminat Bora Diem, Terminal Auctor opus."
# 10 09-11-2003 , 06:28 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211
Oh. I'm pretty sure it was one of the polygon modeling videos where he builds a car.

He puts a reddish shader on the car. Thats when he does the thing witht he graph editor I think.

Thanks.


~nspiratn
# 11 09-11-2003 , 09:07 PM
NitroLiq's Avatar
Moderator
Join Date: Nov 2002
Location: New York
Posts: 2,133
Hmmm....I have the first two polygon modeling dvds and they're all modeling, no shading whatsoever (including the car). It wouldn't happen to be one of their video lectures on surface normals affecting reflectivity, would it?


"Terminat Bora Diem, Terminal Auctor opus."
# 12 09-11-2003 , 09:20 PM
nspiratn's Avatar
Registered User
Join Date: Dec 2002
Location: CA
Posts: 211
Hmm Dunno. maybe its the nurbs modeling one then. Because I remember now that he starts with a sphere and then uses patches and detaches surfaces.

Its a cool looking futuristic car that he builds too.


~nspiratn
# 13 10-11-2003 , 04:36 AM
NitroLiq's Avatar
Moderator
Join Date: Nov 2002
Location: New York
Posts: 2,133
Not sure, Nir. I have the nurbs race car video as well and it doesn't really go into texturing. The only shader they have on the car is a metallic blue layered shader comprised of a blinn and anisotropic for reflective, clearcoat gloss. Wish I could help you further with this but I'm at a loss. Maybe if you explain, exactly what type of end result you're looking for (i.e how you want the shader to interact with light), someone can help you with an alternative way.


"Terminat Bora Diem, Terminal Auctor opus."
# 14 10-11-2003 , 04:58 AM
mtmckinley's Avatar
The Maya Mountain
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Oh, yeah, didn't think of that. What is most likely going on is a layered shader as Nitro mentions. The top layer is a reflective blinn or whatever with a sampler info connected to a blend color node (facing ratio > blender) which is then connected to the blinn's transparancy. The layer beneath could be the same blinn but with reflectivity turned off. If you make the two colors in the blend color black and white, you'll have the reflective material transparant in the center and opaque on the edges, thus giving you refletivity only on the outer edges.

Duh! Should've thought of that earlier. user added image

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads