Ogre Soft Shadows Demo
-
- Old One
- Posts: 3245
- Joined: Tue Apr 24, 2007 8:23 pm
- Location: NY, NY, USA
- x 11
Ogre Soft Shadows Demo
There's a post in General Discussion, but that's more of the "development" part. I decided to post a showcase thread containing nothing more than screen shots and the direct downloads: (I don't know, people seem to "miss it" in the General Discussion thread since the screen shots and stuff is pretty scattered around)
Link0: http://cheapfilehost.com/file.php?file= ... c76021392d
Link1: http://rapidshare.com/files/98990587/Og ... o.zip.html
Link2: http://www.mediafire.com/?10x0x0gumyy
Original thread: http://www.ogre3d.org/phpBB2/viewtopic.php?t=39557
@ mods: If you think this thread is worthless, no problem if you deem to get rid of it.
Link0: http://cheapfilehost.com/file.php?file= ... c76021392d
Link1: http://rapidshare.com/files/98990587/Og ... o.zip.html
Link2: http://www.mediafire.com/?10x0x0gumyy
Original thread: http://www.ogre3d.org/phpBB2/viewtopic.php?t=39557
@ mods: If you think this thread is worthless, no problem if you deem to get rid of it.
-
- Halfling
- Posts: 43
- Joined: Thu Jan 04, 2007 1:43 pm
- Location: Belarus
- x 2
-
- OGRE Retired Team Member
- Posts: 3067
- Joined: Tue Feb 10, 2004 12:53 pm
- Location: The Netherlands
- x 1
-
- Halfling
- Posts: 61
- Joined: Sat Dec 29, 2007 8:34 pm
Nice one Null
I also noticed that these look a lot better than the ones which were in portalized to begin with. They kind of appears blocky because the edge bits were too big. This however looks really good, reminds me of Crysis.
I also noticed that these look a lot better than the ones which were in portalized to begin with. They kind of appears blocky because the edge bits were too big. This however looks really good, reminds me of Crysis.
Last edited by Jallen on Fri Mar 14, 2008 5:10 pm, edited 1 time in total.
-
- Orc Shaman
- Posts: 707
- Joined: Sun Apr 02, 2006 7:51 pm
- Location: Sacramento, CA
- x 1
-
- Old One
- Posts: 3245
- Joined: Tue Apr 24, 2007 8:23 pm
- Location: NY, NY, USA
- x 11
There's a high chance that this will perform worse than stencil shadows, depending on your machine setup and game setup.Evak wrote:very nice, I have to see if I can get one of our programmers to look at your shadow demo and implement something similar in our app. Will be interesting to see how well it performs compared to the ugly but fast stencils were using at the moment.
-
- Orc Shaman
- Posts: 707
- Joined: Sun Apr 02, 2006 7:51 pm
- Location: Sacramento, CA
- x 1
-
- OGRE Moderator
- Posts: 2819
- Joined: Mon Mar 05, 2007 11:17 pm
- Location: Canada
- x 218
Stencil shadows are a killer if you're using them on a lot of high-poly models. Evak - I'd definitely give this a shot to compare performancenullsquared wrote:There's a high chance that this will perform worse than stencil shadows, depending on your machine setup and game setup.Evak wrote:very nice, I have to see if I can get one of our programmers to look at your shadow demo and implement something similar in our app. Will be interesting to see how well it performs compared to the ugly but fast stencils were using at the moment.
-
- Gremlin
- Posts: 166
- Joined: Fri Jun 30, 2006 1:04 pm
Fantastic Work, 10 gold stars
- have integrated it into my app and looks loverly.
on my work 8500GT its around 130 fps, on my home X1650 its about 95 fps, but doesn't look as nice as it does on the NVIDIA card ( lots of aliasing around the shadow boundaries ). I guess that issue has been covered a lot in this and related threads though! C'mon ATI - sort it out!
Both OGL and D3D seem to work on both cards.
- have integrated it into my app and looks loverly.
on my work 8500GT its around 130 fps, on my home X1650 its about 95 fps, but doesn't look as nice as it does on the NVIDIA card ( lots of aliasing around the shadow boundaries ). I guess that issue has been covered a lot in this and related threads though! C'mon ATI - sort it out!
Both OGL and D3D seem to work on both cards.
Was here
-
- Old One
- Posts: 3245
- Joined: Tue Apr 24, 2007 8:23 pm
- Location: NY, NY, USA
- x 11
This should probably go in the discussion thread, but, I'll put it here - I have to probably update the demo to emulate bilinear filtering for AMD cards. NVidia cards support bilinear filtering on floating point textures since the 6000 series; yet, AMD, on the other hand, seems to only support it on the HD2000 series and up.bharling wrote:Fantastic Work, 10 gold stars
- have integrated it into my app and looks loverly.
on my work 8500GT its around 130 fps, on my home X1650 its about 95 fps, but doesn't look as nice as it does on the NVIDIA card ( lots of aliasing around the shadow boundaries ). I guess that issue has been covered a lot in this and related threads though! C'mon ATI - sort it out!
Both OGL and D3D seem to work on both cards.
-
- Gnoblar
- Posts: 15
- Joined: Fri Mar 14, 2008 12:44 am
-
- Gremlin
- Posts: 166
- Joined: Fri Jun 30, 2006 1:04 pm
I found this implementation of gpu bilinear filtering, will try and integrate it into your shader, I dont think it'll be too difficult.
http://www.ozone3d.net/tutorials/glsl_ ... ng_p02.php
trobule is, I'm on my NVIDIA machine a the moment, so need to wait until I get home before seeing any results ...
http://www.ozone3d.net/tutorials/glsl_ ... ng_p02.php
trobule is, I'm on my NVIDIA machine a the moment, so need to wait until I get home before seeing any results ...
Was here
-
- Old One
- Posts: 3245
- Joined: Tue Apr 24, 2007 8:23 pm
- Location: NY, NY, USA
- x 11
Oh, neat. Thanks for the find! I can integrate that, no worries - there's a bit more to it than just the shaders being edited because first we want to detect whether the card is an AMD or NVidia. That's why I put the demo as 99% percent done, not 100% . I think I'm also going to fix the demo up a bit to not blow up on low end cards, and use regular shadow mapping instead.bharling wrote:I found this implementation of gpu bilinear filtering, will try and integrate it into your shader, I dont think it'll be too difficult.
http://www.ozone3d.net/tutorials/glsl_ ... ng_p02.php
trobule is, I'm on my NVIDIA machine a the moment, so need to wait until I get home before seeing any results ...
-
- OGRE Retired Team Member
- Posts: 3335
- Joined: Tue Jun 21, 2005 8:26 pm
- Location: Rochester, New York, US
- x 3
-
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
Yep - only in Shoggoth though. RenderSystemCapabilities::getVendor is the magic function. I really wanted to put something in to detect major card generations too, but it gets really fiddly - lots of deviceIDs that aren't always sequential on D3D, and horrid text matching in GL.Praetor wrote:The GPU render caps tell you whether the card is ATI or nvidia. Shouldn't be hard to use a define or swap a shader based on that value.
-
- Gremlin
- Posts: 192
- Joined: Thu Jan 27, 2005 9:57 am
- Location: Sweden
Looks great, well done man!
----------------------------------------------------
DaCracker's Common Lib:
http://sourceforge.net/projects/dacrackerslib/
DaCracker's Common Lib:
http://sourceforge.net/projects/dacrackerslib/
-
- Goblin
- Posts: 266
- Joined: Fri Jan 27, 2006 9:13 pm
- Location: Belarus
- x 2
-
- Goblin
- Posts: 266
- Joined: Fri Jan 27, 2006 9:13 pm
- Location: Belarus
- x 2
-
- Gnoblar
- Posts: 22
- Joined: Wed Mar 26, 2008 4:53 pm
- Location: Paris, France
Really nice!
I made a quick test (1 directionnal that doesn't make shadows, and 2 spotlights) and here is what I got:
Why is the shadow darker on some cube faces than on the ground ?
Another thing is that, when I'm moving the light (every frames), the shadow is making waves And on the 2nd screenshot you can see that, I have only cubes and I got a weird round shadow corner (the ones projected on the facing cubes). I think there is a relation ...
Anyway this is really nice, but if you have any idea to improve it (or solve my issues), then ...
I made a quick test (1 directionnal that doesn't make shadows, and 2 spotlights) and here is what I got:
Why is the shadow darker on some cube faces than on the ground ?
Another thing is that, when I'm moving the light (every frames), the shadow is making waves And on the 2nd screenshot you can see that, I have only cubes and I got a weird round shadow corner (the ones projected on the facing cubes). I think there is a relation ...
Anyway this is really nice, but if you have any idea to improve it (or solve my issues), then ...
-
- Gremlin
- Posts: 150
- Joined: Mon Oct 10, 2005 5:57 pm