Planetside Software Forums

General => Terragen Discussion => Topic started by: Hannes on October 25, 2019, 05:59:11 AM

Title: Glass object highlights
Post by: Hannes on October 25, 2019, 05:59:11 AM
I'm trying to render an eye. There's an inner object with the textures and a slightly larger object with a bulged front to simulate the cornea with a glass shader assigned to it.
Of course this cornea shouldn't cast a shadow, but whenever I uncheck "cast shadows" of the object, I lose the highlight. Reflections are there. When I turn "cast shadows" on, the highlights are there, but it looks quite dark. No matter, if I render with the standard renderer or the path tracer.
Title: Re: Glass object highlights
Post by: Dune on October 25, 2019, 07:14:11 AM
Strange. And what if you do it all on one eyeball? In my geode I projected an image onto the front, which gave its SSS
Title: Re: Glass object highlights
Post by: Hannes on October 25, 2019, 08:32:36 AM
I want the eyeball look perfectly realistic including the crucial glassy cornea area. 
In my opinion the eyes sell the image.

I'm not sure, but I think I did that before, with the same setup, and had nice highlights with cast shadows disabled.
Title: Re: Glass object highlights
Post by: Dune on October 25, 2019, 10:28:15 AM
What if you open in an older version? If so, maybe it's a bug.
Title: Re: Glass object highlights
Post by: Hannes on October 25, 2019, 11:40:41 AM
I'll try that.   :)
Title: Re: Glass object highlights
Post by: Hannes on October 25, 2019, 03:09:59 PM
Ha! It seems to be a bug indeed. I opened the exact same file in TG 4.3.16, and then in the latest version. See attached image.
Title: Re: Glass object highlights
Post by: Hannes on October 25, 2019, 03:25:56 PM
One more self explanatory image.
Title: Re: Glass object highlights
Post by: KyL on October 25, 2019, 04:05:57 PM
Good catch!

And nice eye model too! Is the iris modeled?
Title: Re: Glass object highlights
Post by: Hannes on October 25, 2019, 04:54:42 PM
Thanks, KyL! The iris is squashed in, but mainly it's a texture.
Title: Re: Glass object highlights
Post by: bobbystahr on October 25, 2019, 05:51:32 PM
cool eye and good catch...noted...didja file a bug report?
Title: Re: Glass object highlights
Post by: Hannes on October 25, 2019, 06:10:55 PM
Thanks!!! Not yet, but I guess, Matt or Oshyan will read that.
Title: Re: Glass object highlights
Post by: Oshyan on October 26, 2019, 09:12:37 PM
Thanks for the report. We're on it!

- Oshyan
Title: Re: Glass object highlights
Post by: Hannes on October 27, 2019, 02:31:31 AM
Cool! Thanks.
As far as I can tell by now, it's only happening with the glass- and the water shader. Even if you put a reflective shader with raytrace reflections off behind the glass shader, there are no highlights, when the object is set to not cast shadows.
If you have a surface layer for example with a reflective shader afterwards, highlights are there.