Is there a way to put a mask around a camera to have it a NON square/rectangle shape? Like if I wanted to have round corners?
Laying a GUITexture over it isn’t a solution as I need to see behind the camera in the corners.
Is there a way to put a mask around a camera to have it a NON square/rectangle shape? Like if I wanted to have round corners?
Laying a GUITexture over it isn’t a solution as I need to see behind the camera in the corners.
You can’t do this with just a regular viewport, but you could use a RenderTexture and apply an alpha mask to it.
nice idea… but how do I put an alpha mask on a render texture?
That’s a good question. I’ve never done anything of the sort, but I think a good place to start would be the Image-based effects in the Pro Standard Assets.
One of the entries for the 3DU contest did this, I think - See http://forum.unity3d.com/viewtopic.php?t=3876&highlight=3du
(I made a new thread on this topic, but then found this, and deleted my thread.)
I don’t see how this idea is much different than a light cookie. Is there some way to have a camera render to screen pixels in a shape other than a rectangle? A “camera cookie”?
(I need to mix multiple cameras, taking an area of the world from one camera, and rendering data from another camera there. Even if I had Unity Pro, a render texture wouldn’t be a good way to go.)
Does someone know where to find this? Would it even work on the iPhone?
Maybe this is it…
http://forum.unity3d.com/viewtopic.php?t=1486&postdays=0&postorder=asc&highlight=hud+shader&start=15
…but if so, I would think that’s a no-go, on the iPhone.