[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] shadow demo



On Mon, Sep 15, 2008 at 10:58 AM, Ian Mallett <geometrian@xxxxxxxxx> wrote:
>> Have you done rendering to texture for increased shadow map
>> resolution?  That would really give it a nice quality boost.
>
> That's what shadow mapping does.  Unfortunately, there is a strange
> limitation which causes artifacts if the textures_resolution >
> min([screenwidth, screenheight]).  I'll ask GameDev.net soon I hope.

This is because the shadow mapping in that code is happening in the
frame buffer.  If you move it to an off-screen buffer(FBO, or
pbuffer), then you can increase the resolution.  Of course FBOs, and
pbuffers aren't available on all cards, so the framebuffer method as a
fallback is still needed.


cu,