I’ve been trying to make a VR Barrel distortion effect for my game that looks like this image here.
Is there any way I can make this happen?
I’ve been trying to make a VR Barrel distortion effect for my game that looks like this image here.
You can maybe use frames to do that.
I have tried frames, but I couldn’t manage to get the correct shape.
you can not with Roblox.
It’s possible with Unity, but with a VR headset (like oculus) you can VR with Roblox.
Maybe you can try to use Image Label.
But If I want to use viewport frames that fit into the image, what do I do?
Maybe you can also use a non-Roblox windows application to write code and distort roblox screen for smartphone VR
You can do something similar by abusing illegal Camera CFrame tricks. Not really the effect you’re going for, but maybe you can make it work. I’m not aware of any other ways to distort the client like you’re trying to do.
local RunService = game:GetService("RunService")
local WorkspaceService = game:GetService("Workspace")
local CurrentCamera = WorkspaceService.CurrentCamera
local R00 = 0.1
local R11 = 0.1
local R22 = 1
local function Distort()
CurrentCamera.CFrame = CurrentCamera.CFrame * CFrame.new(0, 0, 0, R00, 0, 0, 0, R11, 0, 0, 0, R22)
end
RunService.RenderStepped:Connect(Distort)
the Glass material can somewhat behave in a way like this in the sense that it refracts the pixels you see in it depending on its shape. You could experiment with different lens shapes in a ViewportFrame in combination with Depth of Field and FOV to get this desired effect