Planetside Software Forums

General => Terragen Discussion => Topic started by: Harvey Birdman on October 16, 2007, 08:05:12 PM

Title: SQOD (Stupid Question o' the Day)
Post by: Harvey Birdman on October 16, 2007, 08:05:12 PM
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?
Title: Re: SQOD (Stupid Question o' the Day)
Post by: old_blaggard on October 16, 2007, 08:48:33 PM
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.
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Harvey Birdman on October 16, 2007, 08:52:34 PM
Any idea as to it's mathematical implementation? How does it do what it does (whatever that is)?
Title: Re: SQOD (Stupid Question o' the Day)
Post by: cyphyr on October 16, 2007, 09:05:24 PM
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
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Oshyan on October 16, 2007, 09:06:58 PM
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
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Harvey Birdman on October 16, 2007, 09:11:06 PM
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
Title: Re: SQOD (Stupid Question o' the Day)
Post by: dhavalmistry on October 17, 2007, 09:25:41 PM
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
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Mr_Lamppost on October 17, 2007, 09:40:06 PM
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?

Title: Re: SQOD (Stupid Question o' the Day)
Post by: old_blaggard on October 17, 2007, 09:51:35 PM
There is a very logical reason: it can do awesome stuff :P.  I would recommend just playing with it and seeing what happens.
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Mr_Lamppost on October 17, 2007, 09:58:51 PM
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. 
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Oshyan on October 17, 2007, 10:13:46 PM
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
Title: Re: SQOD (Stupid Question o' the Day)
Post by: Mr_Lamppost on October 21, 2007, 06:28:10 PM
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