Creating A Live Camera Feed
Problem:
For the maze puzzle in the Dining Hall side room, I wanted to have a live camera feed. This feed would show the maze from a top down perspective on a screen connected to the wall in the room. I planned for this to further assist the player in planning out the path they wanted to take to solve the maze. To do this, I set up a SceneCapture2D camera with the desired pov, and created a render target for the camera to render to. With this, I created a material from the render target and placed it on the desired mesh for the screen. This worked perfectly in editor. However, whenever we would make a build the screen would appear untextured. This can be seen in the image below,
Solution:
Initially I thought I had solved this issue pretty quickly. I went into the material for the camera and had noticed that there was an error that I had not noticed. I needed to change the sampler type from color to linear color due to how I was using the material.
After fixing this, the render target worked exactly how I wanted it in the build. At least that was what I thought until a few days later when we were making a new build and it had the same issue with not showing the texture. After some testing, we deduced that it must have been related to us building the levels lighting and the changes made to the level from building it. Fellow developer Ethan Ortega suggested changing some of the lighting settings on the material. Following his advice, I changed the following settings,
After changing these settings and applying the changes, I created a new build and thankfully it was finally rendering properly in the level. The final results can be seen below.
End Result:
- Christian Ortiz, VECCA Dev
Shutdown
Status | Released |
Authors | TheSenate2002, ekicks0, Vrixic, CameronEuston, Boomishhe, mditcharo |
Genre | Puzzle, Adventure |
Tags | First-Person, Singleplayer |
Languages | English |
More posts
- The FinallyApr 27, 2023
- Post Mortem VideoApr 27, 2023
- Fixing issue with Hud not being validApr 27, 2023
- Finalization of GameplayApr 27, 2023
- Circuit Puzzle ChangesApr 27, 2023
- Touching Up SoundsApr 22, 2023
- Level MusicApr 22, 2023
- Getting people to play the gameApr 21, 2023
- Tuning the Lighting in Level 3Apr 21, 2023
- Static Mesh Mass ScaleApr 21, 2023
Leave a comment
Log in with itch.io to leave a comment.