ViewportFrame Camera System

If anyone want to try messing with this “dual render” scope system, here you go!
CameraViewPortACOG.rbxl (222.9 KB)

(I added a NonPlayerObjectsFPS variable to the beginning of the script. It works in theory but in practice it ends up too slow to actually do what you ask :frowning: @TheRings0fSaturn)

You can see how the NPCs render smoother than the balls and crates!

2 Likes

I am a bit curious on how accurate the scope actually is, or if there’s a bit of an offset that could throw your aim off.

I’ll see if I can figure out why the FPS variable isn’t working. That’s a bit odd I think.

CameraViewPortACOG.rbxl (193.7 KB)
Have fun with this lol

3 Likes

Looks super cool. I will definitely try this out! Got a question, how long did it take you to do this?

Just one day, but all of that day😅

I was working on it all day yesterday, except for a few breaks here and there.

Updated OP with version 3!

Implemented all the polish and optimization from the Dual Render Scope, so now it can run at 60FPS even with a large map!

3 Likes

Didn’t even know this was possible! Hope to see more new projects coming from you.

1 Like

This is very interesting for a security system with camera’s and monitors.

1 Like

Super fun implementation of this! I quickly made an RC car system, and used it as a camera so I have a system similar to R6S that lets players keep peripheral vision while piloting their drone!

7 Likes

Is that Rainbow Six Siege in Roblox I hear?

2 Likes

Basically exists

This is really cool! I just wish there were an API in place that would let us do this… you know… without these types of hacks? I’ve heard it’s in the works, we just have to wait.

1 Like

wow I can’t wait for ViewportFrames to be fully released :smiley:

1 Like

With the live release of ViewportFrame, tried to use this on two of my group games but both had errors. Can’t seem to use the newest version or the v3 without suffering errors.

EDIT: Just realized you’re still replicating the entire workspace which is the problem I addressed with raycasting to find what’s available on the camera’s view.

Raycasts are expensive and end up being slower. Instead, I do simple math operations to check if it’s within the FoV.

It works perfectly for me, what errors are you getting?

It’s still replicating everything and lagging tremendously.

I wouldn’t suggest raycasting for that sort of problem. If anything a simple spatial partitioning system will work much better

Make the Map a model named ‘Map’ in workspace. If the map never changes, we don’t bother performing checks on it. This saves tons of performance, allowing it to work far more smoothly.

Hello there. I saw your camera system and I fell in love with it. I did try your system and added multiple cameras and monitors, and also made a script that hides the players’ names. One thing that I noticed is that for a reason, it teleports the player where the monitor for the camera is when they spawn in. Because I am not the best at scripting and for sure do not know how to use the ViewPortFrame, is there a way that you can change the scripts so that it still works, but does not teleport the player to the screen? Thank you for your time.

1 Like

Can’t get on my PC rn, and I forget where exactly but in one of the scripts it simply CFrames the player. I did it so that you end up by the screen so you can see it when you play test.

1 Like