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 3 of 3

Thread: shadow volumes and portals.. anyone ?

  1. #1
    Member Regular Contributor Julien Cayzac's Avatar
    Join Date
    Aug 2001
    Location
    Yokohama, Japan
    Posts
    251

    shadow volumes and portals.. anyone ?

    How can I render proper shadows using shadow volumes inside a portal? If the stencil buffer is used to clip a portal, I can't use it while rendering the portal itself...

    Any suggestion?

  2. #2
    Intern Newbie
    Join Date
    Dec 2001
    Location
    Copenhagen, Denmark
    Posts
    36

    Re: shadow volumes and portals.. anyone ?

    Have you considered using the stencil bit-masks (glStencilMask

    I haven't tried this, but you should be able to use one bit for the portal and the remaining 7 for the stencilled shadows...

    What exactly are you trying to do?

    Good luck,
    nich

  3. #3
    Super Moderator Regular Contributor
    Join Date
    Jul 2001
    Posts
    425

    Re: shadow volumes and portals.. anyone ?

    It is quite simple to use recursive stencil masks. Just render your portal stencil e.g. with ref number x and then reder your shadows in your portal with ref values >x.

Posting Permissions

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