itch.io is community of indie game creators and players

Devlogs

Creating A Live Camera Feed

Shutdown
A downloadable game

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

Leave a comment