ViewportFrame Release

Really excited for this fix. My car looks wonky…

6 Likes

Dang, that’s too bad. Hopefully something could be worked on to allow some form of this? (Obviously I have no clue how difficult it really is to make… but still, I hope :stuck_out_tongue:)

3 Likes

Tried making splitscreen with it :stuck_out_tongue:

16 Likes

24 Likes

Now we are thinking with portals!

9 Likes

Would really enjoy being able to play animations in ViewportFrames… please.

23 Likes

Could we see the addition of a Subject property? By default this property would be null, however if it was not then instead of using the children of the class, it would use the children of this property. This would allow two frames to display the same object, as well as objects which exist in workspace (allowing animations to be displayed).

37 Likes

Really loving the start already! :smiley:
Excited to see what the final result of the ViewportFrames will be. :slight_smile:

6 Likes

someone get on this please. this is the genius play.

3 Likes

ViewportFrame is not designed for massive objects rendering. So it’s not a good idea to use it for split screen, portal or rendering lots of workspace objects because of performance. These features should be implemented using other methods instead of ViewportFrame.

15 Likes

How did you even do this?

6 Likes

Will we be getting other methods of doing this?

13 Likes

The only thing that really bothers me with this is the lighting. I realize that its probably more system intensive to calculate light on these viewed objects, however, if you had a simple fixed lighting angle, just to give some sort of ‘depth’ to the look of them so they don’t look so flat. This could have the ability to toggle it on or off, so those who are only using a few viewport frames could enable it, and not suffer much performance hit. Or maybe you already have plans for lighting in the works?

3 Likes

I believe they have lighting planned.

4 Likes

Would it be possible to use ViewportFrames inside PluginGuis? I was thinking of how they could be used as a sort of model display or preview for some of the plugins I want to make in the future.

3 Likes

I’ve already done that. In my game as shown earlier in the replies I used ViewportFrames to display items. I had to make a plugin to calibrate the camera position for each of the items and it works fine :wink:

4 Likes

Looks like it works pretty well for scanner HUD type systems.

viewportcam1
viewportcam2
viewportcam3
viewportcam4
viewportcam5

OuterFrame is as tall as the screen, and clamped to a 1:1 aspect ratio, ClippingFrame is half of that in size and placed in the center of OuterFrame, and ViewportFrame is double ClippingFrame’s size and moved left and up by half of ClippingFrame’s size.

OuterFrame:
Size: { 1, 0 }, { 1, 0 }
Horizontal alignment: center
Aspect ratio: 1

ClippingFrame:
Size: { 0.5, 0 }, { 0.5, 0 }
Position: { 0.25, 0 }, { 0.25, 0 }

ViewportFrame:
Size: { 2, 0 }, { 2, 0 }
Position: { -0.5, 0 }, { -0.5, 0 }

There won’t be any distortion as long as the ViewportFrame’s height matches the screen viewport’s height because it will use the same perspective world → camera projection.

47 Likes

I love this! I’ve always liked the look of 3D in UI, gives it that cool professional e d g e.
I have to express my excitement! Here’s something from what I’ve been cooking. (It’s subtle, but good)

And it complements really well with this already existing thing!

14 Likes

unknown-87-1

This is all viewport.

28 Likes

I like that first image’s idea. Hope you don’t mind if i use something like that… :wink:

3 Likes