- Home /
Problem with SSAO and Particle!
Hi everyone For me, a problem has occurred
When using SSAO effect, I will correct problems with Particle
Shadows that have fallen around the box, on the Particles are found!
Whether there is a way for this problem?
What exactly is the problem? Rather hard to tell from a cube and some smoke.
Shadows that have fallen around the box, on the Particles are found!
I really like your english. Sounds like Yoda. :) - (No, I'm not making fun, I seriously like this.)
Answer by Whimsical · Aug 14, 2010 at 07:03 PM
OK. SSAO renders your scene into a texture using a replacement shader to figure out a depth map of some kind. And when doing so, it ignores everything that is transparent. And your particles are, in fact, considered transparent by Unity because their shaders are tagged to be transparent. So, this results in an occlusion texture that is looking like your particles wouldn't be there and that gets overlaid on your current view. Thus the strange look.
From the top of my head, there's no easy fix for this. Even if you would rewrite your particle shader to not be considered transparent any more will not help. This would only result in weird looking square occlusion borders around your particles because of the poly-billboards of the particles themselves.
I could, however, imagine some kind of additional post-process, using a second, grayscale rendering of your particles (with particles in white and background in pitch-black) and use that then to add on the SSAO texture to make areas overlaid by particles whit again. But that's not only tricky because of object depths, but might also be a bit hard on the graphics hardware, depending on what you plan to do. But it would solve the issue, I think.
Answer by Dreamora · Aug 15, 2010 at 12:06 AM
One thing you could check is if the another of the replacement shader examples helps in this case, the soft particles :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613071230im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multicamere SSAO Image effect 0 Answers
Transparent cutout SSAO problem 1 Answer
Ugly artefacts with SSAO and particles! 2 Answers
Shadows and colors on the model 4 Answers