Horde3D

Next-Generation Graphics Engine
It is currently 01.11.2024, 11:42

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Shadow issues
PostPosted: 20.01.2008, 19:04 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
This is the same ssao scene, and for some reason there is a problem with the shadows passing through the wall.

I have confirmed that the wall does indeed touch the ground, and that the wall is using the same standard shader that casts shadows.

Any idea where this could be coming from?

Full size image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 20.01.2008, 22:55 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Could you try to set the light ShadowMapCount parameter to 1 and see if there is still the problem?

I know that there is still a bug in the PSSM implementation that makes parts of the shadows disappear. This happens sometimes when the camera is above the light source. I already know what the problem is but the fix is not trivial so it still has to wait a bit.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 21.01.2008, 00:16 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
marciano wrote:
Could you try to set the light ShadowMapCount parameter to 1 and see if there is still the problem?

I know that there is still a bug in the PSSM implementation that makes parts of the shadows disappear. This happens sometimes when the camera is above the light source. I already know what the problem is but the fix is not trivial so it still has to wait a bit.

That is with 1 shadow map, so no issue there.

Also, any idea what part of the standard rendering loop is so expensive that I max out at 7 fps when looking at the scene? The only shader used in that scene is 'standard.shader.xml', and my current pipeline does nothing but the basic forward lighting setup:
Code:
      <Stage id="Geometry">
          <SwitchTarget target="" />
         <ClearTarget depthBuf="true" colBuf0="true" />
                  
         <DrawGeometry context="AMBIENT" class="~Translucent" />
         <DoForwardLightLoop class="~Translucent" />
         <DrawGeometry context="TRANSLUCENT" class="Translucent" />
      </Stage>

It will go up to 450 fps if I comment out the 'DoForwardLightLoop', but I can't see why rendering a single shadowmap of that simple (600 tris) scene is so expensive. It doesn't seem to be fillrate, because I can render an SSAO pass and 4 blur passes (all expensive pixel shaders) without a drop in frame rate.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 21.01.2008, 23:24 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
The shadow map calculation usually isn't that slow, the Chicago sample has two light sources with several shadow maps and runs constantly with at least 45 fps on my 8600 card. With a hundred skinned models...

Might be that is another driver/platform issue? What happens if you disable the shadow map by setting the ShadowMapCount param to zero? Or if that doesn't bring anything, what happens if you remove the shadow check in the standard shader?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 22.01.2008, 15:48 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
marciano wrote:
The shadow map calculation usually isn't that slow, the Chicago sample has two light sources with several shadow maps and runs constantly with at least 45 fps on my 8600 card. With a hundred skinned models...

Might be that is another driver/platform issue? What happens if you disable the shadow map by setting the ShadowMapCount param to zero? Or if that doesn't bring anything, what happens if you remove the shadow check in the standard shader?


Setting the shadow map count for each light to zero, commenting out the entire shadowmap context and removing the shadow check in the lighting shader boosted the chicago sample from 3 fps to 10 fps. Still not up to scratch for a X1600 - especially since it plays Quake 4 quite nicely.

If anyone has a PC with a Radeon X1600, please let me know the frame rates you are getting, so I can see how bad this is...

Can I also suggest that the OpenGL Driver and version strings should be added to the standard logging setup for the next release? I just hacked them in to check I wasn't defaulting to software mode or something.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 22.01.2008, 16:15 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
We have a HIS 1600 Pro here in our lab. I just checked the FPS of my latest working copy. FPS is measured in 800x600 window under XP.

Chicago: 15 fps if complete scene is visible (seen from above)
Knight: at least 45 fps in start-up camera view

BTW, the 45 fps on my 8600 were measured in Vista64 windowed mode. Aero eats a plenty of graphics performance so this should be faster on XP.

Quote:
Can I also suggest that the OpenGL Driver and version strings should be added to the standard logging setup for the next release? I just hacked them in to check I wasn't defaulting to software mode or something.


That's a good idea, I will do that.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 23.01.2008, 00:33 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
swiftcoder wrote:
If anyone has a PC with a Radeon X1600, please let me know the frame rates you are getting, so I can see how bad this is...

My work PC has an X1650. Tested on XP using the downloaded binaries which run in windowed mode (800x600?)

Chicago - up in the air, looking down on the whole scene - 20fps
Chicago - zoomed in on the ground - 60-70fps
Knight - 40-50fps


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group