Shadow Map Demo - New RTS shadow demo!
Shadow Map Demo - New RTS shadow demo!
Hey I have made a new demo it is the RTS shadow demo.
Controls are:
A S D W - Move camera.
R - Show/hide shadow map image.
T/G - Zoom in/out.
Please Note: This demo only runs at 1280x1024 fullscreen, so make sure you have a monitor that supports this.
Here is a screenshot:
Download it here:
http://irrlichtirc.g0dsoft.com/BlindSide/rtsdemo.zip
Update: Yes ppl I am still working on this, to keep you occupied here is a new demo, featuring really long shadows that fade (and 4 sample filtering). Long term plans for shadow mapping is to implement PSM, for large outdoor areas to be shadowed quickly and with high quality, and/or also to utilize all 32 bits of the colour texture for depth as my simple implementation only utilizes 8 bits. (Will have to think of some clever way to do this huh..). Cheers
NEW FADING SHADOWS DEMO (PS 2.0 Only!):
This demo is set at 1024x600 with 1024x512 shadow maps.
Download here: Shadow Map Demo (Sorry about sendspace, will find a better place for these things soon..)
OLD DEMO:
I have made a demo for my shadow maps
*PLEASE NOTE: NEW DEMO HAS BEEN UPDATED AGAIN WITH OPTIMISATIONS AND MORE SOFT SHADOWS (CHOOSE FILTERING IN DIRECTX)*
Download from here (Thanks Spintz ):
http://irrnet.spintz.com/ShadowMap.zip
Here is a screenshot:
In the demo there are 4 modes:
A: 800x600 with 512x512 shadow map.
B: 1024x600 with 1024x512 shadow map.
C: 1024x1024 with 1024x1024 shadow map.
D: 800x600 with stencil buffer shadows (For comparison).
If you notice, the speeds with the shadow maps are much more stable, if you go near the shadow or spin the camera around sydney. With stencil shadows it is slow then fast then slow, especially if you bring the camera very close sometimes the fps drops to 8. Also there are artifacts when you come near the shadow and things like in stencil, with the shadow maps you can glide your camera right on the shadow with no problem (As they are part of the texture).
Please note that to get rid of some of the z-buffer depth artifacts I had to clip a bit of the value for the terrain shadow map, and so there is a small gap in the shadow near sydney feet. (But the shadow has not moved like with stencil shadows, there is only a small gap cut out). I will get around to fixing this sometime, for now you can tweak with the shader settings and maybe fix it yourselves.
Cheers
Controls are:
A S D W - Move camera.
R - Show/hide shadow map image.
T/G - Zoom in/out.
Please Note: This demo only runs at 1280x1024 fullscreen, so make sure you have a monitor that supports this.
Here is a screenshot:
Download it here:
http://irrlichtirc.g0dsoft.com/BlindSide/rtsdemo.zip
Update: Yes ppl I am still working on this, to keep you occupied here is a new demo, featuring really long shadows that fade (and 4 sample filtering). Long term plans for shadow mapping is to implement PSM, for large outdoor areas to be shadowed quickly and with high quality, and/or also to utilize all 32 bits of the colour texture for depth as my simple implementation only utilizes 8 bits. (Will have to think of some clever way to do this huh..). Cheers
NEW FADING SHADOWS DEMO (PS 2.0 Only!):
This demo is set at 1024x600 with 1024x512 shadow maps.
Download here: Shadow Map Demo (Sorry about sendspace, will find a better place for these things soon..)
OLD DEMO:
I have made a demo for my shadow maps
*PLEASE NOTE: NEW DEMO HAS BEEN UPDATED AGAIN WITH OPTIMISATIONS AND MORE SOFT SHADOWS (CHOOSE FILTERING IN DIRECTX)*
Download from here (Thanks Spintz ):
http://irrnet.spintz.com/ShadowMap.zip
Here is a screenshot:
In the demo there are 4 modes:
A: 800x600 with 512x512 shadow map.
B: 1024x600 with 1024x512 shadow map.
C: 1024x1024 with 1024x1024 shadow map.
D: 800x600 with stencil buffer shadows (For comparison).
If you notice, the speeds with the shadow maps are much more stable, if you go near the shadow or spin the camera around sydney. With stencil shadows it is slow then fast then slow, especially if you bring the camera very close sometimes the fps drops to 8. Also there are artifacts when you come near the shadow and things like in stencil, with the shadow maps you can glide your camera right on the shadow with no problem (As they are part of the texture).
Please note that to get rid of some of the z-buffer depth artifacts I had to clip a bit of the value for the terrain shadow map, and so there is a small gap in the shadow near sydney feet. (But the shadow has not moved like with stencil shadows, there is only a small gap cut out). I will get around to fixing this sometime, for now you can tweak with the shader settings and maybe fix it yourselves.
Cheers
Last edited by BlindSide on Mon Jul 09, 2007 4:34 am, edited 11 times in total.
-
- Posts: 219
- Joined: Fri Apr 13, 2007 8:29 pm
- Location: Illinois
- Contact:
my card = geforce fx5200
A: 800x600 with 512x512 shadow map. 23 - 27
B: 1024x600 with 1024x512 shadow map. 17 - 22
C: 1024x1024 with 1024x1024 shadow map. don't know, i can't see the header of the window, but some problems occurred on the shadow when it rotates.
D: 800x600 with stencil buffer shadows (For comparison). 22 - 49
there's shadow on the terrain as well?
A: 800x600 with 512x512 shadow map. 23 - 27
B: 1024x600 with 1024x512 shadow map. 17 - 22
C: 1024x1024 with 1024x1024 shadow map. don't know, i can't see the header of the window, but some problems occurred on the shadow when it rotates.
D: 800x600 with stencil buffer shadows (For comparison). 22 - 49
there's shadow on the terrain as well?
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
Yes as you have a fx5200 which is not much better than my 9200, the pixel shader will have problems keeping up at higher resolutions, and so the texture "lags" behind as the shadow rotates.Virion wrote:my card = geforce fx5200
A: 800x600 with 512x512 shadow map. 23 - 27
B: 1024x600 with 1024x512 shadow map. 17 - 22
C: 1024x1024 with 1024x1024 shadow map. don't know, i can't see the header of the window, but some problems occurred on the shadow when it rotates.
D: 800x600 with stencil buffer shadows (For comparison). 22 - 49
there's shadow on the terrain as well?
About the terrain, I am not sure if this is a shadow or just the depth buffer getting less accurate as it gets further away from the light (and steeper). This dissappears when i place the light higher, maybe I should update that demo..
maybe it is shadow? because when your light is lowered down, parts of the terrain blocked the light and causing shadow...
maybe you can make it like: the terrain only receive shadow, but do not cast any shadow itself
maybe you can make it like: the terrain only receive shadow, but do not cast any shadow itself
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
- Posts: 157
- Joined: Tue Mar 20, 2007 8:30 am
I got Intel Core Duo @ 1.86Ghz, 1Gb RAM and 128Mb Geforce Go 7300
Direct X
a) 60 - 65
b) 45 - 65
c) visual problems, see screenshot, around 60
d) 20 - 35
OpenGL
a, b and c) visual problems, see screenshot
d) more visual problems, see screen again, < 5
Direct X
a) 60 - 65
b) 45 - 65
c) visual problems, see screenshot, around 60
d) 20 - 35
OpenGL
a, b and c) visual problems, see screenshot
d) more visual problems, see screen again, < 5
Tell me what you cherish most. Give me the pleasure of taking it away.