ViewPort models in odd positions/sizes

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

1 Like

Maybe, changing the color and make it seems larger while it isn’t? I have realized over time that bloxburg UI when editing your house, is small, but the colors seem to make it bigger, almost like an opticial illusion.

Well the models are brown, however inside the viewport frame they are grey. Not entirely sure how I can make them brown when they are already brown :confused:

If it’s okay with you, is there a way you can send just the GUI so I can play around with it and see what works? If not, I understand and it’s fine.