On 6/10/08, Zen <[EMAIL PROTECTED]> wrote:
>  - If the SHADOW_MAP_SIZE constant (in shadows.py) is larger than the
>  window size, a moire pattern and/or other glitches appear. Increasing
>  the shadow map size is one easy way to increase the sharpness of the
>  shadows, so it would be create to find a solution. Any ideas?

You can't set the viewport larger than the framebuffer.  Either use a
framebuffer object (requires a newish graphics card) or a GL context
in another, hidden window (with a larger size; ideally a pbuffer would
be used but pyglet doesn't support these yet).

>
>  - If antialiasing is set to True in window __init__, the frame rate on
>  a MacBook Pro plummets to about 2 fps. A long time ago, I made an
>  Objective-C version of the shadow mapping code which had the same
>  problem. I tried to find an answer in an Apple discussion group, but
>  was in over my head and never got it resolved. It seemed to come down
>  to the performance of gCopyTexSubImage2D when antialiasing is on.

You could disable antialiasing while rendering the shadowmap (if your
graphics card doesn't object to disabling multisample on a multisample
framebuffer).  Using either of the techniques above should also fix
the problem (use a framebuffer without multisample).

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to