- Home /
Glow-like effects and WebCamTextures
Questions like this have been asked plenty of times, but this is a special case for one reason.
So a quick description about my problem: The full screen background for my scene is a WebCamTexture (live feed from a camera) and I have exactly one (1) object that I need to display in front of the scene. I want to apply a glow effect (doesn't need to be THE glow effect from the pro effects per se, just something that looks nice) to that object, but only to that one.
The way this is usually accomplished is with the basic pro image effects 'glow script', that applies the glow to any objects that have their material's main texture alpha channel set to higher than zero. This becomes a problem because of the background (a WebCamTexture), which pretty much has to use an unlit/self-illuminating shader. If I use the unlit/self-illuminating shaders (for the WebCamTexture) that unity (or NGUI) provide, everything gets the effect from the glow/bloom image-effects. If I use any other shader, the WebCamTexture becomes too dark (with no lighting, duh).
I have two separate cameras, one for the WebCamTexture and one for the object that I need to display in front. As for the object that presents the WebCamTexture, I have tried using both a normal camera with a GUITexture and also a NGUI camera with a NGUI's own textures. Both end up in the same result, as the post-render image effects just apply the effects to everything.
Any ideas what would be the best way to deal with this?
Your answer
Follow this Question
Related Questions
Neon light or LED light 1 Answer
Selective glow through a multi camera setup with a bloom effect 0 Answers
Image Effects Causing Bright Glow on Startup 0 Answers
Bloom and Bloom Streaks proper use 0 Answers
Glow Effect 3 Answers