Hi everybody. Here’s the thing. I have a simple 3D model of an sphere. I need to send (using NDI Sender) the lights, shadow and the albedo map applied on it to another software. Basicaly, I need to generate a texture based on the lights and shadow that the model has in unity… is this possible?.. Thanks!
you can take a “screen-shot” Unity - Scripting API: ScreenCapture.CaptureScreenshot
I’d suspect you would want the background to be a single color, in order to find the texture you want inside the screenshot.
Alternatively, you can apply a renderTexture to your camera, and extract the pixels from that. Using this method would allow you to use raycasting to determine if you want to keep/reject a given pixel. (Unity - Scripting API: Camera.ScreenPointToRay , Unity - Scripting API: Physics.Raycast ).
Still, I’d expect a single color background to check against would be more efficient.