Deferred Shading with Alpha support!!!
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?
BTW. dlangdev have You got Radeon 9950? I don't remember than ATI released this model, maybe Radeon 9550?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
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:
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:
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
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.
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 :]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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Why 68 lights? Why not, say, 100 or 500 or 5000?
BTW It's spelt DEFERRED.
BTW It's spelt DEFERRED.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
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.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Re: Deferred Shading with Alpha support!!!
please repost code for this, thanks.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%