depth of field on SKY!

hi…
I added depth of field to my camera and do the options… but I have a problem … that depth of field make sky and the sun blur too! I just want the far terrain and objects get blured… what should I do?

1 Answer

1

when would the sky EVER be the focal point? why not just blur the sky’s textures?

mmh... that's not really an answer but rather a comment... =/ and I think I'd prefer my sun un-blurred, too... scratches her head ... you don't usually perceive the sky as being blurred...?

–

sorry, that was a bit sarcastic and indirect. the point i was trying to make was- that's not how DOF works, so why even use DOF in the first place? He wants to use unity's DOF and then effectively break it in order to do something it's not designed for. DOF works on examining the depth buffer to figure out how much to blur something based on where it falls in the scene. The skybox and sun are drawn at the farthest possible bounds of the world, and are always going to be taken into consideration in any DOF test, unless a custom screen effect ignores it.

–

Hm.. I don't think it's so odd (=requires sarcasm) to want to exclude something from the effect...? But so it can't be done with the built-in DOF. I guess it's understandable... but sad. Anyway +1 for clearing that up, thanks. Greetz, Ky.

–

well, it's odd in the same way that it would be odd to want a greyscale image effect to show color on certain objects. it's certainly something you can do in unity, but the built in image effects are supposed to be general.. anything super specific will require custom work.

–

@cgonul No, the best way to do it in 2018.3 is to use the feature that is now built into the particle system. There's a "Stop Action" field in the inspector, with a dropdown list of options that includes "Destroy". This will automatically destroy the particle system when the animation completes.

–