Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
Old 21-Oct-2008, 21:56   #1
Humus
Crazy coder
 
Join Date: Feb 2002
Location: Stockholm, Sweden
Posts: 3,216
Send a message via ICQ to Humus Send a message via MSN to Humus
Default Deferred shading with multisampling demo

It's demo time again!



It's another deferred shading demo, but this time with multisample support. I'm using a stencil mask to separate edge pixels from interior pixels so that I only need to compute the lighting for all samples on edge pixel, and I can use a single sample for most pixels, much like multisampling using traditional forward shading.

F5 - Default mode 2 pass mode
F6 - Evaluate all samples always (essentially supersampling)
F7 - Evaluate a single sample always (resulting in no antialiasing)
F8 - Visualize the stencil mask

http://www.humus.name/
__________________
[ Visit my site ]
I speak for myself and only myself.
Humus is offline   Reply With Quote
Old 21-Oct-2008, 23:34   #2
Davros
Darlek ******
 
Join Date: Jun 2004
Posts: 9,497
Default

requirements ?
__________________
Guardian of the Most holy Two Terabytes of Gaming Goodness™
Davros is online now   Reply With Quote
Old 21-Oct-2008, 23:39   #3
AlStrong
penguins
 
Join Date: Feb 2004
Posts: 13,978
Default

Quote:
Originally Posted by Davros View Post
requirements ?
HD3xxx and up + Vista SP1
__________________

AlStrong is offline   Reply With Quote
Old 22-Oct-2008, 06:03   #4
Andrew Lauritzen
AndyTX
 
Join Date: May 2004
Location: British Columbia, Canada
Posts: 1,840
Default

Awesome, I have been meaning to play with this sort of thing, but alas you beat me too it with a full demo even . Multi-frequency shading is cool, and deferred shading is also awesome.

Cheers!
__________________
The content of this message is my personal opinion only.
Andrew Lauritzen is offline   Reply With Quote
Old 22-Oct-2008, 06:53   #5
jlippo
Member
 
Join Date: Oct 2004
Posts: 699
Default

Sounds like a sweet demo.

Wouldn't similar thing be possible by rendering different lights to different sets of sub-samples?
There wouldn't be evaluation of edges, but it should work decently.
jlippo is offline   Reply With Quote
Old 22-Oct-2008, 19:41   #6
guardian
Junior Member
 
Join Date: Jul 2008
Posts: 12
Default

pressing F5, F6, F7 didn't bring any visible differences
also, F8 gives a blank window

using vista 32 bits, radeon 4850, latest catalyst drivers
guardian is offline   Reply With Quote
Old 22-Oct-2008, 21:03   #7
Humus
Crazy coder
 
Join Date: Feb 2002
Location: Stockholm, Sweden
Posts: 3,216
Send a message via ICQ to Humus Send a message via MSN to Humus
Default

Quote:
Originally Posted by jlippo View Post
Wouldn't similar thing be possible by rendering different lights to different sets of sub-samples?
There wouldn't be evaluation of edges, but it should work decently.
What would the advantage of rendering different lights to different samples be?

Quote:
Originally Posted by guardian View Post
pressing F5, F6, F7 didn't bring any visible differences
also, F8 gives a blank window

using vista 32 bits, radeon 4850, latest catalyst drivers
Press F1 and select a multisampled mode if you haven't done so.
__________________
[ Visit my site ]
I speak for myself and only myself.
Humus is offline   Reply With Quote
Old 23-Oct-2008, 06:37   #8
jlippo
Member
 
Join Date: Oct 2004
Posts: 699
Default

Quote:
Originally Posted by Humus View Post
What would the advantage of rendering different lights to different samples be?
In quality I'm certain that you method does better job, but it might be faster to just not to evaluate the edges and do the work for each set of different subsamples.
MSAA would blend the results together anyway.

Altough something like non-interleaved rendering might be way to go when trying to do multi-frequency stuff.
jlippo is offline   Reply With Quote
Old 23-Oct-2008, 06:59   #9
nAo
Nutella Nutellae
 
Join Date: Feb 2002
Location: San Francisco
Posts: 4,297
Default

Quote:
Originally Posted by jlippo View Post
In quality I'm certain that you method does better job, but it might be faster to just not to evaluate the edges and do the work for each set of different subsamples.
This is AFAIK exactly what Killzone 2 does on PS3.
__________________
[twitter]
More samples, we need more samples! [Dean Calver]
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way
nAo is offline   Reply With Quote
Old 23-Oct-2008, 19:47   #10
Humus
Crazy coder
 
Join Date: Feb 2002
Location: Stockholm, Sweden
Posts: 3,216
Send a message via ICQ to Humus Send a message via MSN to Humus
Default

Quote:
Originally Posted by jlippo View Post
In quality I'm certain that you method does better job, but it might be faster to just not to evaluate the edges and do the work for each set of different subsamples.
MSAA would blend the results together anyway.

Altough something like non-interleaved rendering might be way to go when trying to do multi-frequency stuff.
Very interesting paper.
Although, it addresses a different (but somewhat related) problem. The whole point of my demo was to make antialiasing work for deferred rendering. If you use the samples for different lights that wouldn't be compatible with antialiasing. But for other low-frequency stuff, like secondary lights in their case, it could be very useful. For things like fillrate bound particles systems it could also be very beneficial.

Quote:
Originally Posted by nAo View Post
This is AFAIK exactly what Killzone 2 does on PS3.
According to their paper they evaluate lighting for both MSAA samples and average. They did a cool trick with shadows though by using different samples offsets for the two evaluations. So they effectively got twice the number of shadow samples on non-edge pixels. The cost is constant, but edge pixels would get half the quality, but that's something I would imagine you wouldn't notice even if you looked for it.
__________________
[ Visit my site ]
I speak for myself and only myself.
Humus is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:49.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.