05-31-2012 06:26 AM
Hi,
I'm using a 3d party engine to show a 3d scene in a window. This works fine (a simplified diagram [window.png] is in the attachment). The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen.
However, I want to show the scene in a box on the vi front panel. Is there a way to get the hDC of a 3d picture control? I tried getting a window handle of the 3d picture control [3dpicture.png], but this doesn't work (since the 3d picture isn't a window)
06-29-2012 06:58 AM
Hello FVuijk,
To my knowledge, it is not possible to get a device context handle from a 3D picture control.
But can you give more details about what you want to achieve? What are you trying to render in the 3D picture control?
What possibilities offer the Horde3D library you use? Can't you use another kind of reference than a hDC?
06-29-2012 10:08 AM
Not being amiliar with that software package I can not be specific but it may be worth trying...
Drop an ActiveX container on you FP.
Right-click and try navigating to something that looks like the software you are after. You may have to poke around or create it from file or whatever...
But if the software in ActiveX enabeld, it may just work.
Ben
06-30-2012 02:53 AM
Thanks both,
The API for Horde3D can be found here and for the utility API here.
I believe the engine requires a HDC, but I'm not shure. Furthermore, there is no activeX control for it in the ActiveX container, but I wasn't familiar with building it myself.
Thanks for the tips though, I will look into them.
Fred