ViewPortPriview | A simple way to draw a 3D model in the UI


ViewPortPriview

Displaying a 3D object in the UI

Download Source Code|attachment (.rbxl) (33.2 KB)


Screenshot

Screenshot



When is it needed?

When you need to build a prototype game. Or display 3D models in your inventory. It will also work for you if you have not worked with ViewPort before.


Example code

local ViewPortPriview = require(game.ReplicatedStorage.ViewPortPriview);

local myVP = ViewPortPriview.New(script.Parent.Frame , game.ReplicatedStorage.Blocks.Part);
16 Likes

Very good resource! But there’s a spelling error! Preview isn’t spelled Priview.
Also more documentation and explanations would be useful :+1:

3 Likes

I noticed the mistake before posting xD I decided to leave

2 Likes

This is going to be extremely useful, simplifying the task of manually having to create and script viewport frames. Thanks for making this!

2 Likes

So is there any functionality except for making a ViewPortFrame and setting up a camera with a part in it? What stops me from just making my own to fit my needs? Why should I use yours?

2 Likes

Pure ViewPort is not very convenient to work with. I would have used something ready-made myself, but nothing worked for me.

There is no functionality here. Only the creation of previews for the model.

1 Like

Is there a way to destroy the object, saying that i used MouseEnter event?

2 Likes

Not in my module :frowning:
Most likely I will not add anything to it. But you can add it separately

1 Like