Before updating to Windows 10 you may need to return your Pro license. More information here

OpenGL Rendering Modes / Using a Color Mask

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.

more ▼

asked Nov 03, 2010 at 01:24 PM

avatar image

100 17 17 25

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.

Nov 03, 2010 at 07:47 PM AIResearcher

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.

Nov 03, 2010 at 11:26 PM AIResearcher
(comments are locked)
10|3000 characters needed characters left

2 answers: sort oldest

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.

more ▼

answered Nov 09, 2010 at 05:28 PM

avatar image

100 17 17 25

(comments are locked)
10|3000 characters needed characters left

The word you seek is embedding (imbedding)

This will help you:


more ▼

answered Nov 03, 2010 at 04:39 PM

avatar image

1.7k 9 15 29

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.

Nov 03, 2010 at 07:45 PM AIResearcher
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Nov 03, 2010 at 01:24 PM

Seen: 3189 times

Last Updated: Nov 03, 2010 at 01:24 PM