Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: problem in planar shadow

  1. #1
    Intern Contributor
    Join Date
    Oct 2007
    Location
    persia,tabriz
    Posts
    71

    problem in planar shadow

    i have a little problem with planar shadow when i use blending. when i use blendig some spots shown in the shadow, how can i remove this spots?!

    problem shown at this shot:
    http://psware.persiangig.com/e/KGE_test/shadow.PNG


    and this is my code for blending:

    glEnable(GL_EXT_blend_color);
    glBlendColor(0.5,0.5,0.5,0.5);
    glBlendFunc(GL_CONSTANT_ALPHA,GL_ONE_MINUS_CONSTAN T_COLOR );


    ( i must use blend-color)

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: problem in planar shadow

    You can use stencil buffer to prevent the rendering from updating one pixel multiple times. See this paper for details.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •