I’m not sure if my subject describes the problem accurately, but here goes.
I want to simulate the effect of looking through binoculars at objects in the scene. I don’t need any magnification through the binoculars - I just need it to reveal objects as I move over them. I’m developing this for the iPad, so I want to be able to drag the binoculars using my finger to any point on the screen and get information on the object visible through the binoculars.
I’ve attached an image to visualize what I’m describing.
I’m not sure what kind of texture I need to create for the binocular mask.
a. Should I create a large (double resolution) GUITexture with the binocular cutout in the middle so that no matter where I drag it on the screen, the rest of the screen will still be black.
b. Should I create a smaller texture of just the binocular cutout and then generate the surrounding black textures in the OnGUI() call?
c. Is there a better way to do what I’m trying?
I appreciate any help on this! Thanks!
