Hi, I’m trying to make a furniture placement system where it shifts the center of the camera to the left and a menu will show up on the right.
I used this module to offset the camera.
Text is warped, this applies to chat and proximity prompts also, sun rays become black holes at some angles, the clouds are warped, and the cursor position in 3d is off center.
I haven’t been able to find any information for why this happens when I use the module.
I was able to reproduce your issue using camera manipulation.
External Media
The issue you’re having seems to be caused by argument R20, in whatever script you apply camera cframes in.
I don’t recommend touching these variables in the first place, but this is what the issue is, I believe.
1 Like
fl4mxr1
(flour_mixer)
April 13, 2024, 8:27pm
#3
cant you just use Humanoid.CameraOffset
to offset the camera?
Thanks, but if the R20 doesn’t change then the camera’s center doesn’t move, so I’ll probably have to find a replacement
1 Like
I’ve tested this but it doesn’t work very well when turning since the character spins around on the screen
Rynappel
(Rynappel)
April 20, 2024, 11:20pm
#6
Hi I’ve had the same problem and has solved it in my own post
Managed to solve this thanks to this person:
You need to parent the sun rays to nil while using the camera like this otherwise those black circles appear. A bit of a workaround but I’m fine with it.
Clamping the X value seemed to do most of the trick though! x = math.clamp(x, -0.663, 0.663)
Heres the full modified version of that module local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Camera = Workspace.Curre…
With changes thanks to:
Not sure where else to post this, but I recently came across the resize module you’re using, and everything works fine except for the fact that it breaks on smaller screens. No idea how to fix this.
(SunRays also break, but that I can live without.)
EDIT: Setting Camera.FieldOfViewMode to MaxAxis and adding this line to Module._getOffset() seems to fix this for the most part:
x = math.clamp(x, -0.663, 0.663)
Note that using MaxAxis can result in unwanted changes to the FieldOfVie…