Deferred Shading, DirectX 9 scissor question

Started by
4 comments, last by programci_84 13 years, 11 months ago
I'm working on a rendering side project in which I'm using a deferred shading method with the DirectX 9 SDK. When I first added a few lights to the scene I didn't notice a hit in frame rate, but when around 70 lights were added to the scene it became unplayable. So I started using scissor rects, but now whenever the camera is close to the lights there appears to be a dark outlining where the end of the scissor rect is.
Advertisement
It sounds like you're setting your scissor rectangles too aggressively. Hard to tell though without more info.
I'm creating the clip rect similar to the way that is in the Nvidia SDK 9.5, the deferred shading example, where you pass in the lights position and range and create a clip rect from that data. Even if I expand the range of the lights beyond the radius that they are lighting, I still get dark rectangles that appear at the sides of the screen.
Do you mind posting a screenshot?
Alright, here's a few pictures for you.

Sanguine
This one doesn't show scissor issue

Sanguine
This one shows scissor issue.
Hi,

Using light clipping volumes instead of clipping rectangles (i.e. Scissoring) may solve your problem.

Matt can give you a lot of info about it.

Regards.
There's no "hard", and "the impossible" takes just a little time.

This topic is closed to new replies.

Advertisement