Results 1 to 3 of 3

Thread: Portals in OpenGL

  1. #1
    Member Newbie
    Join Date
    Nov 2000
    Location
    Haifa Israel
    Posts
    39

    Portals in OpenGL

    I would like to create "complex shaped" portals. I understand that I should use an image with alpha values which describes what parts of the image can be see through and use the stencil buffer to only draw the ones with the currect alpha value (1.f)
    my question is - how do I do this in OpenGL?

  2. #2
    Member Newbie
    Join Date
    Sep 2001
    Location
    Pacifica, California, USA
    Posts
    30

    Re: Portals in OpenGL

    Originally posted by zedus:
    I would like to create "complex shaped" portals. I understand that I should use an image with alpha values which describes what parts of the image can be see through and use the stencil buffer to only draw the ones with the currect alpha value (1.f)
    my question is - how do I do this in OpenGL?
    Do a search of this site for 'alpha' or 'transparency'. Or, as this is a frequently asked question...
    http://www.opengl.org/developers/faq...ansparency.htm

    [This message has been edited by Damon (edited 01-18-2002).]

  3. #3
    Member Newbie
    Join Date
    Nov 2000
    Location
    Haifa Israel
    Posts
    39

    Re: Portals in OpenGL

    I know how to do alpha testing, my question is how do I add it to the stencil buffer.
    I clip the objects that are entirly not visible through the portal, I wanna use this alpha testing + stencil buffer to draw objects are partialy or totaly visible through the portal.
    (So that my portal woudln't appear to be just a simple Triange or Quad, i want it to appear as a circle)

Similar Threads

  1. Got Portals within Portals working
    By imported_paul_g_griffiths in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-13-2017, 08:12 AM
  2. BSP vs Portals
    By Quaternion in forum OpenGL: Advanced Coding
    Replies: 22
    Last Post: 06-20-2001, 11:23 AM
  3. Portals and OpenGL
    By in forum OpenGL: Basic Coding
    Replies: 19
    Last Post: 01-06-2001, 05:04 AM
  4. Portals
    By okapota in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 11-29-2000, 11:15 AM
  5. Portals
    By xerid in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 06-01-2000, 12:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean