What I’ve got
vs how I’d look them to look (Bloxburg)
Not sure if it’s because the buttons size that just makes them look incredibly small. But the other problem is the position of the models.
The 3rd button on my UI has the couch facing the opposite direction. The 2nd button is basically the same design, but double the size, and it’s facing the right way (you can tell because of the white ‘cushions’) I tried rotating the model to no avail.
Also having problems with the colors of the models in the frame. They look grey, even tho they are brown (see image of models at the bottom of the post)
function getCameraOffset(fov, targetSize)
local x, y, z = targetSize.x, targetSize.y, targetSize.Z
local maxSize = math.sqrt(x^2 + y^2 + z^2)
local fac = math.tan(math.rad(fov)/2)
local depth = 0.5*maxSize/fac
return depth + maxSize/2
end
local viewport = Instance.new('ViewportFrame')
viewport.AnchorPoint = Vector2.new(0.5, 0.5)
viewport.BackgroundTransparency = 1
viewport.Size = UDim2.new(0.9, 0, 0.9, 0)
viewport.Position = UDim2.new(0.5, 0, 0.5, 0)
local camera = Instance.new('Camera')
camera.FieldOfView = 60
local clone = item:Clone()
clone.Parent = viewport
clone:SetPrimaryPartCFrame(CFrame.new(Vector3.new(-0.5, -0.4, -0.5).unit*(getCameraOffset(camera.FieldOfView, clone:GetExtentsSize()))))
camera.CFrame = CFrame.new(Vector3.new(), Vector3.new(-0.5, -0.4, -0.5))
viewport.CurrentCamera = camera
If you have suggestions on what I could do? Changing the camera FOV, size of the buttons/etc.
These are the models btw