Results 1 to 2 of 2

Thread: Fog & Masking

  1. #1
    Member Contributor
    Join Date
    Mar 2000
    Location
    Leiden, The Netherlands
    Posts
    58

    Fog & Masking

    Hi all,

    I'm working on an OpenGL game with 2D and 3D graphics, I use 2D
    sprites in a 3D environment.
    To render the 2D sprites I use masking (using blended textures).
    Now I want to add fog to the scenery with the OpenGl std. fog.
    When I blend the sprites with the fogged landscape I see the bounding
    box of the initialy blended textures, I mean with this that the
    transparency of the sprite disappears and give very ugly results.


    Does anyone know howto get around this problem?

    Thanx in advance,

    Daniel Palomo van Es.

  2. #2
    Member Contributor
    Join Date
    Apr 2000
    Location
    Austria
    Posts
    57

    Re: Fog & Masking

    hi,
    you could "cut out" parts of your sprites,i.e. making parts of it totally transparent(alpha value),i think the technique is called color-keying

Similar Threads

  1. masking
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-11-2006, 03:58 AM
  2. Masking + Fog.....
    By PhotonMan in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-05-2004, 08:55 AM
  3. Masking
    By xill in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 11-12-2002, 12:21 PM
  4. Masking?
    By imported_zedus in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-07-2002, 11:10 AM
  5. Masking
    By Crunch in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-09-2000, 05:20 PM

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