[vtkusers] vtk and windows8 applications

David Cole dlrdave at aol.com
Wed Jul 24 16:06:57 EDT 2013


> So my question is. Anyone got a vtk window into a win8 metro 
> application, i.e. windows  8 application?



I’m doubtful this can be done easily, if at all.


Quoting from this blog: http://kennykerr.ca/2012/11/09/windows-8-whered-you-put-my-hwnd/



"So what can you do with this HWND? Well not very much. The reality is that everything on Windows 8 is rendered with Direct3D. Even your aging GDI app is ultimately composited together with other windows and presented to the screen as if the whole desktop were one giant DirectX application, and in some ways that’s what it is. 
So even though you can get the HWND for your app, you already have access to the window’s Direct3D surface which is far more powerful than anything you could do with the HWND on your own. So why does this cloaked interface exist? Why to allow Direct3D to get your HWND of course! Oh, and ICoreWindowInterop exists on Windows Phone 8 as well."


Metro apps, especially if you are aiming to put one in the store, should be built on code that can be compiled for ARM as well as traditional x86/x64 desktop architectures. ActiViz is certainly not the proper route to get there. (ActiViz does not exist for ARM.)


And cross-compiling VTK might be possible, but it still sounds like it will be difficult to show a vtkRenderWindow in the context of a metro app. Perhaps a DirectX-based VTK rendering module instead of an OpenGL one would make it less difficult... I’m not aware of any current DirectX+VTK efforts.



HTH,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130724/6bc4c108/attachment.htm>


More information about the vtkusers mailing list