How to make a viewportframe the same size as the portal?

Hi, I’m trying to make a portal, but I’m not sure how to make a viewportframe the same size as the portal in an oval shape.

1 Like

I don’t think this is achievable with roblox. You could try to use a SurfaceGui and UIcorner but im not sure if UIcorner works on a viewportframe.

1 Like

its very much achievable you can filter out everything else and it will just show the portal

1 Like

@S0MBRX How to filter out everything else?

follow along a youtube video like this and set the viewports background transparency to1

I’m not sure what you mean by this. I believe the OP wants the view port to look like this:

image

with oval shaped portals. This wouldn’t be possible with just background transparency, since actually parts would need to be clipped at the borders of the oval.


@OP
The picture of the game above only lets players create portals on pre-determined surfaces. I assume they do one of three things:

  • Split the surface into a few parts to remove the area where the portal is, fill in that area with a mesh of a cube with an oval cut out, and sink the viewport frame into the wall
  • Place a ViewPortFrame/Decal/ImageLabel that looks like the wall infront of the view port frame
  • Add a border wide enough that it can cover the edges of the not-oval-shaped UICorner:

890345434

A game link if anyone wants to try to figure out how this works:

https://www.roblox.com/games/7266427538/Doomspire-Portals

2 Likes

Wouldn’t a transparent image with the edges filled suffice?

1 Like

Yeah that’s what I was thinking here:

If you make a transparent image with oval shaped edges it would probably be hard to get it to match the wall behind it though.


I believe that game I linked above did it like this:

2 Likes