SQOD (Stupid Question o' the Day)

Started by Harvey Birdman, October 16, 2007, 08:05:12 PM

Previous topic - Next topic

Harvey Birdman

It's been a while since I posted a stupid question... so to make up for lost time I'll try something doubtless idiotic...


Just what the hell is a Lambert Shader? What is it used for? What are the effects of it's controls? What is it's raison d'etre?

old_blaggard

It's used for a simple translucency effect.  Many people apply it to their leaves in their plants to make them look a little more realistic.
http://www.terragen.org - A great Terragen resource with models, contests, galleries, and forums.

Harvey Birdman

Any idea as to it's mathematical implementation? How does it do what it does (whatever that is)?

cyphyr

Theres no reference to the Lambert Shader in the documentation section of this site (that I could find). Indeed there have been few updates to that section in a while. Maybe some additions to that section could be made by those with the right knowledge.
Richard
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Oshyan

Strictly speaking Lambert is just a different (diffuse) lighting/shading model. http://en.wikipedia.org/wiki/Lambertian_reflectance In TG2 the Lambert shader does include some options that help with simulating translucency, however I believe this is included as an additional option and not a core function of the shader type itself, much like Translucency is included in the Default Shader as well.

So basically it's just another shading type for surfaces that gives a more even, diffuse look.

- Oshyan

Harvey Birdman

Thank you very much, Oshyan! Precisely what I was looking for. I'd tried googling about a bit but hadn't found anything useful.

Thanks again, dude.

;D

dhavalmistry

since there is a thread for this....I will ask one:

What is a warp shader and what does it do
How to use it


oh god thats 2 questions.....please dont kill me  :P
"His blood-terragen level is 99.99%...he is definitely drunk on Terragen!"

Mr_Lamppost

Can I add to these "Dumb" questions?

I know that some people swear by it but is there any logical reason to use a Redirect Shader?

And if so why and what for?

Smoke me a kipper I'll be back for breakfast.

old_blaggard

There is a very logical reason: it can do awesome stuff :P.  I would recommend just playing with it and seeing what happens.
http://www.terragen.org - A great Terragen resource with models, contests, galleries, and forums.

Mr_Lamppost

I would need to find the time but the examples I have seen have not produced pleasing results.  I know it crops up all over the place but from what I have seen usually just breaks the renderer. 
Smoke me a kipper I'll be back for breakfast.

Oshyan

Redirect can be very useful - it allows you to control the specific direction a displacement occurs in for example.

The Warp shader warps the input shader based on the warp shader. Hard to explain beyond that - best just to try it in a simple situation and watch what it does. It's similar to the "Distort" or "Displace" in some other programs.

- Oshyan

Mr_Lamppost

QuoteI would recommend just playing with it and seeing what happens.

Consider it played with.

Only a quick trial and no attempt to patch the cut offs but now I see what it does.  ;D

Warp shader next
Smoke me a kipper I'll be back for breakfast.