x


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!

alt text

Whether there is a way for this problem?

more ▼

asked Aug 14 '10 at 04:12 PM

darkman_gm gravatar image

darkman_gm
80 7 8 14

What exactly is the problem? Rather hard to tell from a cube and some smoke.

Aug 14 '10 at 04:26 PM Julian Glenn

Shadows that have fallen around the box, on the Particles are found!

Aug 14 '10 at 04:51 PM darkman_gm

I really like your english. Sounds like Yoda. :) - (No, I'm not making fun, I seriously like this.)

Aug 14 '10 at 07:14 PM Whimsical

Yoda? :D .

Feb 01 '12 at 03:45 PM maciekish
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Aug 14 '10 at 07:03 PM

Whimsical gravatar image

Whimsical
225 6 7 18

(comments are locked)
10|3000 characters needed characters left

One thing you could check is if the another of the replacement shader examples helps in this case, the soft particles :)

more ▼

answered Aug 15 '10 at 12:06 AM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x13

asked: Aug 14 '10 at 04:12 PM

Seen: 1440 times

Last Updated: Feb 01 '12 at 03:45 PM