Results 1 to 3 of 3

Thread: Selective transparency

  1. #1

    Selective transparency

    I'm using gl4java, but i was wondering if any of you had any advice.........

    I'm drawing a number of spheres that and i want to put 3d text inside them, i want the spheres to be transparent allowing the user to see the text inside.

    With my current approach everything ends up being transparent.....any ideas, would this be easily solved with two seperate display lists?

    Many thanks.

  2. #2

    Re: Selective transparency

    If it helps the spheres are textured, rather than calling blend shall i specify an alpha channel for this?

  3. #3
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010

    Re: Selective transparency

    draw the text first
    enable blending
    eg src_alpha one_minus_src_alpha
    disable lighitng
    use colour glColor4f(1,1,1,0.5)
    draw the sphere

    tweak the above

Similar Threads

  1. World selective rendering
    By kindergartenbaby in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-03-2011, 04:32 PM
  2. Selective transparency (transmit some wavelengths but not others)
    By mogumbo in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 10-12-2005, 10:50 AM
  3. Selective AntiAliasing
    By TriangleMan in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 08-28-2002, 11:43 AM
  4. Selective Opaqueness
    By bobberkid in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 07-08-2002, 06:09 AM
  5. Selective Culling?
    By HemiMG in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-03-2001, 05:35 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