Page 3 of 3

Posted: Thu Jun 26, 2008 7:26 am
by dlangdev
gpu: Radeon 9550

Image

Image

Image

Image

Posted: Thu Jun 26, 2008 12:14 pm
by Nadro
Thanks for tests. I see than Deferred Shading is faster in Hi Poly scene than standard forward rendering. christianclavet this is normal situation than is forward rendering You will be have 6x hi poly scene counts, because 6 lights need 6 passes, so we need rewrite all geometries 6x times, but for Deferred Shading we have to rewrite all only one:)

BTW. dlangdev have You got Radeon 9950? I don't remember than ATI released this model, maybe Radeon 9550?

Posted: Thu Jun 26, 2008 6:48 pm
by dlangdev
yup. that was a 9550. typo is now corrected.

Posted: Fri Jun 27, 2008 11:16 am
by Nadro
Hi, I done Alpha support in my Deferred Shading:) No depth peeling, so it isn't Deep Deferred Shading. This is link to this demo:
http://nadro.net46.net/Demos/DeferredSh ... haDemo.rar
I think than it's the best possible solution for it. Mid-Transparent objects need some modification of it, but for full transparent eg. for trees, plants etc (Mainly problem eg. in STALKER, where there are rendering via Forward Rendering), this is very good idea;)

With Alpha looks this:
Image
Image

Posted: Sat Jul 19, 2008 11:30 am
by Mirror
some feedback from me :

nvidia 6600 :

D3D9 : 800x600, high poly, forward shading : 25 FPS
D3D9 : 800x600, high poly, deferred shading : 25 FPS

OPENGL : 800x600, high poly, forward shading : 19 FPS
OPENGL : 800x600, high poly, deferred shading : 31 FPS

Posted: Thu Aug 13, 2009 12:07 pm
by devsh
Well nadro just a small correction to your idea.. you dont need a pass per 6 lights, you can do them all in one pass but you have to do some workarounds.. I did 68 lights Deffered Shading in just 2 passes (because irrlicht has options and functions like GLSL you can call them but they dont do anything, I mean the availibillity of 8 textures per material, I had 5 and irrlicht only passes 4 to a shader, if I had 8 max textures then I could do it all in one pass.

http://www.youtube.com/watch?v=3-r88vbo-LE

EDIT: I know the topic is dead but,

I get 300FPS on deffered shading in low poly mode
150 FPS in forward
50 to 60 in deffered high poly
1-14 in forward rendering

this would cause to say lets go deffered on 8800GT and above because its faster than forward even with 4000 poly. but the thing is that nadro drew the geometry each time he did a pass for the light in ForwardRendering... if i am correct.

Posted: Thu Aug 13, 2009 1:33 pm
by Nadro
devsh wrote:Well nadro just a small correction to your idea.. you dont need a pass per 6 lights, you can do them all in one pass but you have to do some workarounds.. I did 68 lights Deffered Shading in just 2 passes (because irrlicht has options and functions like GLSL you can call them but they dont do anything, I mean the availibillity of 8 textures per material, I had 5 and irrlicht only passes 4 to a shader, if I had 8 max textures then I could do it all in one pass.

http://www.youtube.com/watch?v=3-r88vbo-LE

EDIT: I know the topic is dead but,

I get 300FPS on deffered shading in low poly mode
150 FPS in forward
50 to 60 in deffered high poly
1-14 in forward rendering

this would cause to say lets go deffered on 8800GT and above because its faster than forward even with 4000 poly. but the thing is that nadro drew the geometry each time he did a pass for the light in ForwardRendering... if i am correct.
So, in this example we have got 1 lighting calculation per pass for both forward and deferred shading, why? Because example is compatible with Shader Model 2.0 ;) This example isn't optimalized, eg for each light draw is full screen quad. Irrlicht has got support for GLSL and? I don't see differences between GLSL and Cg in this example. You have to remember that in this example 4000 tris per dwarf in forward = 4000 * 4 (4 dwarwes) * 6 (6 passes), so You can't say that deferred is faster than forward with 4000 tris, because it's not true. Fill G-Buffer isn't cheap operation :]

Posted: Thu Aug 13, 2009 1:37 pm
by devsh
kind of exactly what i was saying...

Posted: Thu Aug 13, 2009 9:28 pm
by sio2
Why 68 lights? Why not, say, 100 or 500 or 5000?

BTW It's spelt DEFERRED.

Posted: Thu Aug 13, 2009 10:47 pm
by BlindSide
If I had to guess that number sounds like he's drawing all the lights in one draw call and passing the transformation matrices through the shader constants.

Posted: Fri Aug 14, 2009 6:11 am
by devsh
cause that was howmany lights my PC could handle with a decent FPS, and the cap is 96 anyway.

Re: Deferred Shading with Alpha support!!!

Posted: Sun Sep 17, 2017 10:18 am
by netpipe
please repost code for this, thanks.