Hi, I'm trying to render the contents of a window, with desktop composition disabled, on an off-screen buffer. I have no control over the window and the only thing I have is the window handle and the DC. I thought about allocating an off-screen DC and doing something like:
/* The window handle is stored in the
hWnd variable and the offscreen DC,
is in hDC */
PostMessage(hWnd, WM_PAINT, 0, 0);
But it doesn't seem to work. Please note that I don't want the application to render on the primary display DC. In other words I want to redirect it's graphical output, and blit the result in my window.
I'm trying to mix Device Contexts and OpenGL but not the usual way. I don't want to draw with GDI on top of an OpenGL scene. What I wanna do, is apply an HDC bitmap as a texture on an OpenGL polygon. I know that this is generally a bad idea, but if you know anything about how is that possible, you would be very helpful. I'm coding on C/C++ on Win32. A DirectX 8/9 solution would also be appreciated.
Finally found the solution myself. If anyone else is interested in that, the process is simple. You create a bitmap from the DC (there are many websites that describe this), and then you apply that BITMAP object as a texture, the way you'd apply any other bitmap texture.
Hello my name is emile my best pro lang is vb2010. I love vb and I now all the code by hart I can pro in C# just as good as vb I now that C# is the best of the 2 langs but I want to do it in vb I have made an 3d cube using directx 10 and visual stodio 2010 but can't add 2 cubes or more I need step by step help to re making the cube and adding more then one to buld a box to walk in (in to make an camera that moves like a first person game) help
If you really want help, you will reduce this to the relevant snippet of code where your problem is and then ask a clear coherent question and description of your problem. No one is going to go through this mess to try and figure out what it is that you want to do.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
In school I had not heard anything about vectors and matrices yet, so I figured the whole transformation and projection stuff out with regular trigonometry. What a triumph when I had my first tetrahedron choppily rotating on the screen
What i want to do is to make an animation of a female character that appears on SCREEN and does everything it was supposed to do during animation.
The MAIN problem that i have no idea how to do this on the screen, without any borders of audio/video player. Closest EXAMPLE is VHGD aka VirtuaGirl player - girls walk on your screen without any border of the player (my version is NOT porn, it is rather gift).
Animation will be done by myself, all i ask is how to make it look like a VHGD.
How can i perform this using C# or any 3rd party libraries/ect?
The first thing is - thank you for the reply. I`ll look into that right now (well i`m working my 16th hour now )
If i get it right, i just need to use some sort of player to play usual AVI/H.264 file with animation... (of cource using technique you`ve provided)
Another question... this animation is "Advisor" - a copy of a real user actually that performs some actions like find document, search the database, edit the tables in the database and even dancing a bit. Is there any way to manipulate the AVI file to trigger events according to gestures?
For example, advisor raising it`s hand in the air and windows creates several buttons near advisor`s fingers.
Last Visit: 31-Dec-99 18:00 Last Update: 6-Oct-22 19:06