I’m wondering if there is any way to have a light that only renders for a specific camera?
I’m trying to make a night vision screen using a scene capture, and I figured the easiest way would be to have a light only it can see to mimic the IR light from real night vision. But if that’s not possible, I’m not sure how else to go about it.
I think I found you a solution that will work and keep the cost down. In the material that you are using to connect the Render Texture to your Phone element (HUD?), multiply the Render Texture by a constant (I did 25 in my test case which might be too extreme for what you are looking for). If you want to make the contrast a little more stark before you multiple that the texture and raise it to a power of a constant (high value, more contrast; lower value, less contrast) then take those results and use it as the base in your multiply node.
Though more costly you could also try setting the Global Illumination >> Indirect Lighting Intensity settings in your Screen Capture 2D Actor up to above 1.0. Global Illumination is way down at the bottom of the Capture Actor’s details panel just below Layers and above LOD and you will have to roll it out to see options.
Hope this works for you, I would love to see the final results -
Eric, I’m looking at your example here, and I was trying to apply a post processing material to mesh, but using the Render Target texture as the source to the Emissive Color, the material doesn’t render and is just the default gray checkered texture. My set up just has a SceneCaptureComponent2D with a target texture set to my RenderTarget texture, and then I created a material from my texture. The materical is changed from Surface to Post Process. So what is different than yours?
Thanks a bunch. I was trying to use it as an Unlit texture, since that seemed to mimic Eric’s image (Unlit only works with Emissive Color) Speaking of lighting, how much lighting has to be in a scene? Because in my case, I do want it as dark as possible.
I knew that, I just wanted to double check he didn’t just make it a HUD element. What I really want to know is how he applied the Scene Capture 2D material to the mesh and have the Scene Capture camera follow the pawn so the phone screen updates dynamically. I’ve been trying to do that, but I cant seem to get it to work. I should probably post this in a new thread shouldn’t I
I was not using a post process effect here either just a manipulation of the render target texture by increasing/decreasing contrast and increasing brightness. You can play around with both ideas by adding a post process material to your scene capture 2D actor and then take the results and increase contrast and brightness after the capture has occured.
You could just attach the scenecapture camera to my player character. I expanded my character in Blueprints and added the capture component and placed it as a child of the main camera so it follows the main camera movement