Thread: Transparent Window without using Layers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I know there supported, I'm using them. That doesn't appear to be the problem however, the problem is with how directx works with windows. I'm attempting to create a work around but not going so good.

  2. #2
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I can't seem to edit my posts but this problem has been resolved at the XNA Creator Clubs forum. In case anyone else ever comes across this problem I'll give a brief overview.

    Exact Problem: DirectX didn't render correctly on a window that is semi-transparent using windows layers.

    Reason: DirectX draws directly onto the screen and windows layers draws the window offscreen therefore the two did not mix.

    Solution: Have DirectX render to an offscreen buffer or something similar and copy the buffer over to system memory to present on the window. This is slower than just using DirectX to do the rendering but it works.

    Thank you all for your kind help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM