I've done something like what I think you're talking about. Yes, it is
possible to grab the window as a texture and place it in 3D space, but
only if the window is unobstructed. So for instance, if I wanted to
grab a picture of IE and place it in a texture, I could do that by
working with the dc of that window and getting the bits. However, if
that window was partially obstructed, I'd also get the bits of the
offending window. (This only applies to capturing existing Windows
windows, if you are creating "fake" windows from scratch, then you have
alot more control.)
Anyway, I did this by running multiple monitors, one for the 3D view,
and one for the windows environment. I could grab from the windows one
and draw it in the 3D view, but moving from card to card was very slow.
If you want more details, let me know.
In article <Pine.OSF.4.10.10002102229190.24545-
> > We are currently running a multi document program where in it we
> > IE like browser thanks to CHTML (I believe). Everything looks
great. We now
> > want to give it a 3D'ish look by moving some of the browsers in the
> > further back in the environment, or have the browsers tilt, if the
> > tilted his/her head, and other graphics related procedures. Is it
> > to do this with opengl, by mapping what the browser as an object in
> > so that it could be manipulated. We are also currently trying to
find out if
> > this is possible under directX . We would ideally like to run this
> > Windows 2000, or Windows NT.
> Both OGL and DX have the same purpose: to generate 2D graphics from
> 3D data....people simply say that it's for doing 3D.
> What you can do is a stereo image, 2 images in fact, one for each eye.
> That's as simply as I can put it at this point. To give the
> depth for your windows, you need to get the graphical information of
> browsers, copy them as texture, and position them in space with the
> necessary x, y, z triplets.
> This is possible in both OGL and DX, just that you have to figure out
> to get the graphical data of your browsers (what you see on the
> and after that's it easy.
> However, if you want to run on NT, your only choice is OGL.
> PS: don't use DX. This is a OGL ng. :)
Sent via Deja.com http://www.deja.com/
Before you buy.