Rendering terrain in a viewportframe

Hi so my question is basically that in the title. My code for the current minimap :

local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded
local hum = char:WaitForChild("Humanoid")
local humRootPart = char:WaitForChild("HumanoidRootPart")
local map = game.Workspace.Map
local gui = script.Parent
local ViewPortFrame = gui:WaitForChild("MinimapFrame")

local cam = Instance.new("Camera")
cam.Parent = game.Workspace
cam.CameraType = Enum.CameraType.Scriptable
cam.FieldOfView = 1
ViewPortFrame.CurrentCamera = cam

for i, minimapObjects in pairs(map:GetChildren()) do
	minimapObjects:Clone().Parent = ViewPortFrame
end

game:GetService("RunService").RenderStepped:Connect(function()
	local camFr = CFrame.new(humRootPart.Position+Vector3.new(0, 3500, 0), humRootPart.Position)
	cam.CFrame = camFr
	ViewPortFrame:WaitForChild("Arrow").Rotation = -humRootPart.Orientation.Y -90
end)

You cant render terrain using ViewportFrames yet, I suggest converting terrain to parts in order to render it.

You can, I saw someone do it. char tihng

He probably used skinned meshes in order to simulate a terrain.

No, you cannot render terrain in viewport environments, what you are probably referring to is not terrain nor skinned meshes, but this plugin.

1 Like

No, one of my friends which is currently on a vacation could do it.

By the looks of it, it appears that this video is using MiniMap Render…

As I’ve stated before, there is currently no possible way to render terrain in viewport environments.

What they are probably using is the same plug-in I linked above.