Planetside Software Forums

General => Terragen Discussion => Topic started by: Djb3000 on June 10, 2014, 02:42:05 PM

Title: Light through water shader glass problem
Post by: Djb3000 on June 10, 2014, 02:42:05 PM
I have been working on model which uses a water shader to create glass for the windscreen which can use a mask to simulate dust. This was going okay apart from the water shader glass kills the light source which shines onto the hands and dashboard. Please see attachment, before and after).

Is there a way around this as I would like to keep the light and shadows created inside the car?

There is also a jpeg attached showing the method I have used.

8)

Title: Re: Light through water shader glass problem
Post by: bobbystahr on June 10, 2014, 08:49:26 PM
When that happens to me I put a light inside, sometimes no shadow, but sometimes a SoftShadow does it better.
Title: Re: Light through water shader glass problem
Post by: bobbystahr on June 10, 2014, 08:56:31 PM
What IOR are you using for the glass?
Title: Re: Light through water shader glass problem
Post by: Hannes on June 11, 2014, 03:32:37 AM
If the windscreen is a separate object you could try to check "cast shadows". Just a thought...
Title: Re: Light through water shader glass problem
Post by: Dune on June 11, 2014, 04:06:57 AM
I think the problem is just that the object throws shadows. It would be better if the object is separate to NOT have it throw shadows. I think.
Title: Re: Light through water shader glass problem
Post by: Hannes on June 11, 2014, 04:52:19 AM
Sorry - typo! Of course I meant, you should uncheck "cast shadows"!
Title: Re: Light through water shader glass problem
Post by: bobbystahr on June 11, 2014, 08:36:01 AM
Quote from: Dune on June 11, 2014, 04:06:57 AM
I think the problem is just that the object throws shadows. It would be better if the object is separate to NOT have it throw shadows. I think.

Jebus, that's it...why did I never think of that. Have had a number of car scenes where I've added a no shadow light inside.  Maybe cuz Imagine3D world glass didn't react like that and I'm relying on past successes in a different world. Thanks for the head shake Ulco.
Title: Re: Light through water shader glass problem
Post by: bobbystahr on June 11, 2014, 10:02:04 AM
Had to check that Ulco, nope not that . I see a network so maybe that impacts on this. Try fiddling with the Nerge shader settings I think.
Title: Re: Light through water shader glass problem
Post by: bobbystahr on June 11, 2014, 10:09:52 AM
Looking at them here I do see a definate colour diff in the arm but nothing like you have happening
Title: Re: Light through water shader glass problem
Post by: Djb3000 on June 11, 2014, 03:14:39 PM
Yes!
The 'Do not cast shadows' option works. 

Onwards and upwards (until the next problem).

Thanks for the help.