Results 1 to 4 of 4

Thread: how to make background of opengl window transparent

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    3

    how to make background of opengl window transparent

    Hi,
    I am making an opengles 2.0 application where i need to make the background of the window transparent and then show a blended object over it. Please can someone tell me how can i make window background transparent. The appearance i want is that it sud appear as if only a blended object is in front.
    Any help will be greatly appreciated. Thanks in advance.
    With regards,
    Aditya

  2. #2

    Re: how to make background of opengl window transparent

    Just use glClearColor(r, g, b, 0.0f). Then there needs to be some blending happening external to the application window, either enabling source alpha blending on the layer, or source alpha blending on the window, managed by the windowing system.

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    3

    Re: how to make background of opengl window transparent

    Thanks for the reply.. I am new to opengl. So please can u tell what did u mean by this statement. "there needs to be some blending happening external to the application window, either enabling source alpha blending on the layer" ...Which layer are u talking about.
    Or Do u i need to create a mini windowing system (window manager) of my own ??
    Thanks in advance for the help.

  4. #4
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: how to make background of opengl window transparent

    Transparent windows need to be supported by the window system you are using. This is outside the scope of OpenGL ES.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. Background = transparent??? Why is it not working
    By Motero in forum Developers Coding:Beginner
    Replies: 1
    Last Post: 03-02-2012, 06:44 AM
  2. 3D model with transparent background on desktop with OpenGL?
    By camshiva in forum OpenML Coding & Technical Issues
    Replies: 1
    Last Post: 01-02-2006, 02:32 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
  •