I am having issues creating a camera system for one of my games. I’m trying to have a part with a SurfaceGUI display a live camera feed from another part elsewhere.
I’ve tried looking both on YouTube and the Devforum, but to no avail. I’ve even tried a free model, which did work, but reduced the FPS in my game to about 20 (and it also had loads of parts missing).
Have any of you had any success in with this (or something similar)?
This is a very hard system to do, as it would require updating every workspace parts infront of the security camera, in the surfacegui, every frame.
You should instead show a stale image of the map on the SurfaceGui, but allow the player to click it and view from the security camera’s perspective. You’d also allow them to control the camera rotation from there.
All ViewportFrames have to refresh their textures by re-rendering anything under them.
Large maps aren’t good for this, however, you may be able to reduce lag by making a simplified model of only the visible-by-camera section of the map, and updating only the characters and models that are not anchored.
ah, i see.
what i’ll probably end up doing is finishing the map and then taking screenshots of the areas I need and putting them on the screen as a decal, possibly with some static overlay on top. Kind of a shame it won’t be live, but it’s good enough
I appreciate the security camera perspective suggestion, however that is not what I’m going for at this time.
Thank you for the help!