
Now you can use the Screen Image to display just the area of segmentation. From the Resources pane, drag the Render Target 2 to the Screen Image 0‘s Texture.
#ALPHA LENS STUDIO FULL#
Click the disclosure box next to Orthographic Camera 2 to open the Full Frame Region 0 and locate the Screen Image 0.Reactivate the Orthographic Camera 2 that you created in Step 1.Now you can reactivate your Orthographic Camera 2. Step 6: Reactivate Duplicate Camera/Assign Segmentation to Screen Image Texture. Back in the Objects pane, select the Orthographic Camera’s Screen Image 0, and in the upper right of the Inspector pane, you can see that the Screen Image‘s layer is still set to Orthographic.Then click out to close the Layers window. In the same window, click to activate the new, yellow Layer 1 and deactivate the green Orthographic Layer by clicking it off.In the Inspector’s Camera component, click the Layers box, then + Add New Layer.Select the Orthographic Camera in the Objects Panel.Step 5: Setting up the Segmentation Layer Set the Render Target to Render Target 2 by dragging it in from the Resources pane.In the Objects pane, select the Orthographic Camera and navigate to the Inspector.Open the Color Box and drag Opacity to 0%.Navigate to the Inspector to modify the Render Target 2‘s properties. Open the Render Target 2 located in the Resources Pane. Now it’s time to render that alpha information out to a new texture that we can manipulate however we please. You will now see a white, alpha channel mask updating over the area defined by the segmentation texture.īack in the Resources pane, drag the Device Camera Texture to the Screen Image component’s Texture, replacing the white texture with what the camera sees. Select the Screen Image in the Objects pane and assign the Unlit materia l to the Screen Image‘s Material.Set the Opacity Texture by dragging on the Segmentation Texture from the Resources pane.In the Color Mask component, switch on the Alpha Channel.Select the Unlit material and view its components in the Inspector pane. Right click -> Add New or click + and start typing to search. Navigate to the Resource panel and add 3 new resources. Make sure to switch the Stretch Mode to fit on the image component in the inspector! Next, right click and duplicate the camera. Set the image component stretch mode to Stretch in the Inspector. In the Objects panel, click + to add a new Screen Image. Step 1: Add Screen Image & Duplicate Camera To get and set a specific piece of what the camera sees, follow these steps. Lens Studio segmentation textures can isolate specific elements that your camera sees and render them out as a new texture to be used elsewhere in your Lens.
