Putting a 3D Object in a GUI

I think I remember, a long time ago, watching a tutorial for putting blocks in GUIs. Essentially, you’d be able to see the block or group of blocks as a sort of image on the GUI without actually having to create a decal of the group of blocks. How do I do this?

11 Likes

You can use ViewportFrames to achieve this: ViewportFrame | Documentation - Roblox Creator Hub

16 Likes

Yes, but there was also another method of doing it without ViewportFrames. I’d like to know all my options before going ahead.

2 Likes

The other way was basically making it look like there was a 3D Part when it actually wasn’t, they did this by positioning the part relative to the camera.

The best way is to use viewport frames as that’s what they’re for and it’s easier to do.

1 Like

The other option is to move the object in front of the camera every frame. This has some drawbacks though. The object is affected by dynamic lighting and it can clip with the environment. You also need to do some special tricks to get it to render in front of the UI.

Stick to ViewportFrames.

2 Likes

There are other methods, but ViewportFrames are definitely the easiest way to do it. I wouldn’t bother with other methods unless you have a specific reason for not using ViewportFrames.

1 Like

This was how it was done way back when. The advantage being that the parts are actually simulated in the workspace so you get shaders, animations, most things you really like the viewport to support.

5 Likes