I would like to set Unity3D to draw in an overlay mode where it draws over other non-unity windows. This is for using unity output behind other text / images created by another application.
I am sorry I do not know the proper vocabulary. But this is like setting VLC Media Player and/or Media Player Classic to render in an overlay draw mode (which disables screen capture) but allows setting the background color of another app to 0x00F / 0x001 respectively so that the rendering from VLC or MPC will draw over the 0x00F/0x001 mask while leaving the other text alone, thus blending video with anything else very quickly.
There should be a way in a script to set the GL. modes so that it renders in such a way as to draw on screen but only in a specific color-mask. I will try to research the GL command necessary (settings / modes) to accomplish this.
In order to clarify what I'm trying to accomplish. I want to render OpenGL behind other windows, but in such a way that I can set a color in the foreground window that will allow the OpenGL behind it to be passed through. This can be done if the OpenGL is rendered in hardware with a color-coded graphics context that hints to the OpenGL where to draw on screen.
Answer by AIResearcher
Nov 09, 2010 at 05:28 PM
The mode you seek is called, "Hardware Overlay" Wikipedia. And although not officially supported by OpenGL (too much hardware abstraction) on MacOSX it may be supported in later versions by QuartzGL, OSX's on flavour of OpenGL. Most Windows applications use hardware overlay through a DirectDraw layer.
Enable QuartzGL for the application using the application's plist file, then set the mode to hardware overlay. In OSX the color is typically a shade of green.
Answer by IJM
Nov 03, 2010 at 04:39 PM
The word you seek is embedding (imbedding)
This will help you:
I should mention that I don't have the source for the other application(s) and it has no plugin framework what-so-ever.
I was hoping to use hardware level color masking / overdraw as described in the question.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
How do I draw a background image *fast* (on Android)?
External terrain renderer
Texture lookup in Surface Shader in pixel space
OpenGL Context from Plugin
Native Rendering Plugin with Oculus Rift