more comments...

Published 22 February 06 09:51 PM | KamVedBrat 

Eli asked about OpenGL, Direct Draw, and WPF,  and how they work with Desktop composition...

OpenGL can go through one of three paths in Windows Vista depending on how your computer is configured.

  1. MSOGL - this is an implementation of OpenGL 1.4 that uses Direct3D under the covers to hardware accellerate the application.
  2. Legacy ICD's - These are the ICD's that are available today for use on Windows XP. These will continue to work on Windows Vista, but will disable the DWM when they are loaded in to the process of the application that's using OpenGL. The reason for this is that Legacy ICD's operate directly on the GPU without going through Windows at all, and we have no way of redirecting application's output in a stable, predictable manner.
  3. Windows Vista ICD's - this is a new path for 3rd party ICD's introduced for Windows Vista that will work in a way that is compatible with desktop composition. Essentially allowing direct access to the GPU for hardware accellaration, but then having the final surface that appears to be the front buffer to the application actually be a shared surface that gets composed by the DWM

DirectDraw works by creating shared surface and allowing you to draw to it, but if your application locks the primary for drawing, this will cause the DWM to shut down also, because the applicaiton is essentially saying "I'm a full-screen application, so give me the the whole screen to draw to, instead of whoever is currently using it".

WPF is hardware accellerated for things like text, geometrry, etc. and presents to a D3D shared surface which is the composed to the desktop by the DWM.

Comments

# steamy said on February 23, 2006 1:27 PM:
Kam, i found an interesting thing.

on 5308 (maybe in previous builds as well, i dont know) the taskbar and the start menu uses a different font rendering (not cleartype) when DWM is enabled, than under non-DWM mode.
what kind of font rendering is that, is it new? is it going to be used everywhere when DWM is enabled, or is it going to stay on the taskbar and start menu exclusively? i like a lot more than cleartype because it doesnt have the "coloring effekt" and makes the font a little bit stronger. does it have anything to do with WPF?
# KamVedBrat said on February 23, 2006 1:58 PM:
I'm pretty sure the cleartype wierdness in the start menu is a bug... should be fixed in later builds.
# steamy said on February 23, 2006 2:33 PM:
thx, i hope to see more of these bugs:-)) it really looks better to me.
# Spydre said on February 24, 2006 12:12 AM:
Kudos for supporting option #3. Now I can stop bitching...
# Eli said on February 24, 2006 2:37 AM:
Wow, I didn't think you'd answer all that. Great information. =)
# ion said on February 24, 2006 11:52 AM:
Just one more question:
Is it possible to enable anti-aliasing on DWM to prevent the jagged edges on skin and in Flip3D?
# David said on March 9, 2006 1:52 PM:
If this is true - path No. 3 approach for OpenGL
I gotta thank MS for doing the right thing at last...
# nopcoder said on March 18, 2006 11:55 AM:
thx, option #3 is great news!
# Brandon said on March 19, 2006 9:35 PM:
ion, I'm pretty sure there was a registry key at some point which enabled AA on flip3d.  Not sure if it's in 5308 though
# 息乐园 said on March 19, 2006 11:50 PM:
<ul class="bullets"><li> <a href="http://news.com.com/2061-10802_3-6050696.html" target="_blank">AOL 将把 Netscape.com 变成技术新闻渠道</a>
 </li><li> <a href="http://www.gabcast.com/"
# HTK said on March 20, 2006 1:13 AM:
You have been dugg:
http://digg.com/technology/Microsoft_finally_enables_OpenGL_Windows_Vista_support

OpenGL may not be widely important to the general public, but it is a sensitive issue to some niches.
# Iosif said on March 20, 2006 6:11 AM:
Option #3 is great news indeed.

Is there any info on when  Vista ICD kits for option #3 will be available for driver developers or are they already available?.
# KRAMER said on March 20, 2006 6:15 AM:
Exceptional post!!
# Balaji’s Blog » links for 2006-03-20 said on March 20, 2006 9:20 AM:
PingBack from http://mvbalaji.weblogs.us/2006/03/20/links-for-2006-03-20/
# Information Technology » Microsoft finally enables OpenGL Windows Vista support said on March 21, 2006 4:00 PM:
PingBack from http://www.jmmclaughlin.com/informationtechnology/2006/03/21/microsoft-finally-enables-opengl-windows-vista-support/
# pmd said on March 22, 2006 4:12 PM:
I tried this out in 5308, just doing enough to do a glGetString.  Some pixel formats invoke the Microsoft generic render (bitmap, some window setups), and others invoke the D3D translation layer.

The generic renderer seems to not bother the Desktop Compositor, but the D3D translation layer renderer *always* does that awful cycle of:

1. cycle all the monitors and disable DC
2. run the app
3. cycle all the monitors and enable DC

I don't really mind using MSOGL, but is that really how it's supposed to work?  That still kinda sucks.  Or am I doing it wrong?

# Microsoft finally enables OpenGL Windows Vista support - The Digg Effect - Search for Diggs or get Dugg said on June 8, 2006 6:48 AM:
PingBack from http://www.alldugg.info/diggs/microsoft-finally-enables-opengl-windows-vista-support/
# Create Digital Motion » Vista Preview: DirectX 10 Offers Eye Candy, But OpenGL Lives said on July 7, 2006 2:30 PM:
PingBack from http://createdigitalmotion.com/2006/07/07/vista-preview-directx-10-offers-eye-candy-but-opengl-lives/
# Eternal Gaze // Scope » Blog Archive » Vista Preview: DirectX 10 Offers Eye Candy, But OpenGL Lives said on July 9, 2006 7:02 PM:
PingBack from http://scope.eternalgaze.net/2006/07/07/vista-preview-directx-10-offers-eye-candy-but-opengl-lives/
# skyman_2001 said on December 7, 2006 9:53 AM:

Advanced Visual Effects with OpenGL - Inside the GDC 2006

# PantherModem » Blog Archive » Wednesday :: Maser said on January 10, 2007 10:04 PM:

PingBack from http://panthermodem.com/blog/?p=43

# Windows Vista Ultimate - Page 2 - Emuforums.com said on June 17, 2007 7:50 PM:

PingBack from http://forums.ngemu.com/open-discussion/90669-windows-vista-ultimate-2.html#post1157429

# Vista » Blog Archive » Microsoft finally enables OpenGL Windows Vista support said on August 5, 2008 8:33 AM:

PingBack from http://vista.compspies.net/2008/08/05/microsoft-finally-enables-opengl-windows-vista-support/

# windows xp vrs. windows vista - P?gina 2 - Foros de CHW said on December 4, 2008 11:25 PM:

PingBack from http://www.chw.net/foro/guerras-santas-f47/216339-windows-xp-vrs-windows-vista-p2.html#post2769341

New Comments to this post are disabled

Search

This Blog

Syndication

Page view tracker