Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conflict between QuickTime 6 and Direct 3D 9



It looks like there is a conflict between QuickTime 6.x and Direct 3D 9
on windows.

Our application display movies using the QuickTime API. We are developing
a Direct3D extensions to display movies on 3D objects. The problem is
that when Direct3D has been initialized, even on a new window totally
independent of the application, QuickTime cannot display movies any more.

We reproduced the problem with a sample of QuickTime API: MFC SimpleEdit.
Just add a call to a function that initializes the Direct3D device on a
new window that it creates with its own WindowProc.

Here is the initialization code: 

// create the Direct3D9 object 
if( NULL == ( g_pD3D = Direct3DCreate9( D3D_SDK_VERSION ) ) )
  return -1;

HERE : Creation of the new window with its own class name & Window Proc

// Set up the structure used to create the D3DDevice.
D3DPRESENT_PARAMETERS d3dpp;
ZeroMemory( &d3dpp, sizeof(d3dpp) );
d3dpp.Windowed = TRUE;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;
d3dpp.EnableAutoDepthStencil = TRUE;
d3dpp.AutoDepthStencilFormat = D3DFMT_D16;

// Create the D3DDevice
HRESULT hr = g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
new_window_hwnd,
    D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &g_pd3dDevice );

The whole sample for visual studio .NET is available in a ZIP, 100 ko :
ftp://ftp.arkaos.net/pub/Support/SimpleEdit.zip

Once we have started Direct3D9 the window displaying the movie stays white.

It looks like a conflict where events that should be used by QuickTime
are filtered.

Any peoples are using QT 6.x with direct 3D 9?


-----------------------------------------------------------

 Marco Hinic (email@hidden)
   ArKaos engine architect & CEO
     http://www.arkaos.net

        In cyberspace nobody knows you're a cat

-----------------------------------------------------------
_______________________________________________
quicktime-talk mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-talk
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.