Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stochastic Order Independent Transparency #54

Closed
andybak opened this issue Oct 22, 2023 · 1 comment
Closed

Stochastic Order Independent Transparency #54

andybak opened this issue Oct 22, 2023 · 1 comment

Comments

@andybak
Copy link

andybak commented Oct 22, 2023

I saw the hashed alpha branch. Are you aware of the MSAA / SV_Coverage trick to use with this?

In case you're not - see below. If you're slapping your head and saying "of course I do - who does this person think they are!" then stop reading now. ;-)

I think this repo gives an example implementation: https://github.com/johnpars/StochasticTransparency but I haven't tested it.

It does the sampling at the sub-pixel giving a much cleaner result. I played with it for Open Brush but it doesn't play nice with Surface Shaders so would have been a ton of work. In your case I don't think there's an issue. Quill used it to get fast OIT that ran on mobile devices: (see p149 https://ubm-twvideo01.s3.amazonaws.com/o1/vault/gdc2017/Presentations/Horne_Oculus%20Story%20Studio.pdf )

Also see https://research.nvidia.com/publication/2011-08_stochastic-transparency

@andybak andybak changed the title Stochastic Order Independent Transparancy Stochastic Order Independent Transparency Oct 22, 2023
@aras-p
Copy link
Owner

aras-p commented Oct 22, 2023

Yes, blue noise based stochastic alpha is exactly what I'm doing on that branch, but I did not get around to do the MSAA bit there yet. Anyway, this is duplicate of #43

@aras-p aras-p closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants