Hello.
I am currently trying to set up a security-camera like system in which a player can Touch a Trigger which will change what TextureRenderTarget2D a certain Material is referencing.
Currently I have 2 SceneCapture2DActors successfully capturing their scenes and mapping them to a single face of separate cubes. I also have a large "television" on the wall which is just a BSP brush with its front face referencing the same material as one of the other cubes. So, I have two small cubes displaying the feeds of camera A and B. I also have a large TV on the wall displaying the feed of camera A.
My question is this:
How can I Touch a Trigger so that I can have the television display the feed of camera B? Can I get a handle on the material being applied to the brush face so that I may change its TextureSample reference? This is less than ideal, I believe, because it will also change the other instances of the material so that they display camera B's feed. With any luck, I can actually switch the material on the face of the television.
Thank you.
I am currently trying to set up a security-camera like system in which a player can Touch a Trigger which will change what TextureRenderTarget2D a certain Material is referencing.
Currently I have 2 SceneCapture2DActors successfully capturing their scenes and mapping them to a single face of separate cubes. I also have a large "television" on the wall which is just a BSP brush with its front face referencing the same material as one of the other cubes. So, I have two small cubes displaying the feeds of camera A and B. I also have a large TV on the wall displaying the feed of camera A.
My question is this:
How can I Touch a Trigger so that I can have the television display the feed of camera B? Can I get a handle on the material being applied to the brush face so that I may change its TextureSample reference? This is less than ideal, I believe, because it will also change the other instances of the material so that they display camera B's feed. With any luck, I can actually switch the material on the face of the television.
Thank you.
Comment