Planetside Software Forums

General => Terragen Discussion => Topic started by: gregsandor on July 21, 2008, 06:14:33 PM

Title: Glass shader help
Post by: gregsandor on July 21, 2008, 06:14:33 PM
Hi all -- The glass in my model has just a tiled dark green texture in the color function, a very light tiled displacement map in displacement function, and for reflectivity the spec is at 1.  How do I plug in a reflection node and how do I set it up for the lightest load on rendering?

Anyone have a good example?
Title: Re: Glass shader help
Post by: cyphyr on July 21, 2008, 07:02:22 PM
Loose the default shader and just use the water shader to start with. You may find it useful (depending on the model) to import your Glass as a separate model to your House. Use the Water Shader for the Glass. Zero everything under Waves and under subsurface set it to something insanely high, if you can see sky through your windows the distance should be more than the distance to your Scenes Background object. After you can see through your glass you can start to change the refraction settings and decide if the glass in your model needs to be double sided or not (double sided makes double the refraction).
Good luck
Richard
Title: Re: Glass shader help
Post by: PG on July 22, 2008, 02:22:47 PM
For the reflection shader, Matt said that if you disable ray traced reflections then render times are greatly benefited.
Title: Re: Glass shader help
Post by: gregsandor on July 23, 2008, 08:52:33 AM
is there a way to use the reflection shader with the default shader?  I want to keep my displacement and color...
Title: Re: Glass shader help
Post by: Mandrake on July 23, 2008, 07:40:11 PM
Greg, did you read the transparency thread down the page a bit?
http://forums.planetside.co.uk/index.php?topic=4349.0
Title: Re: Glass shader help
Post by: Matt on July 23, 2008, 11:48:04 PM
Greg,

A reflective shader following the default shader will work fine. The reflective shader adds a reflective coating to anything that comes before it. Just have the default shader feed into the main input of the reflective shader.

If you decide not to use ray-traced reflections for speed reasons, then there is no real reason to use the reflective shader. The default shader's specular settings are the same as a reflective shader with ray tracing disabled.

Matt
Title: Re: Glass shader help
Post by: gregsandor on July 24, 2008, 12:22:05 AM
Thanks.  I've been UV mapping all day and am looking forward to testing these this morning.