How could I render a Roblox part on a website? Is there an easy way to do it?
I don’t know if I entirely understand what you’re asking. Is this a Roblox scripting-related topic? If not, it might be good to switch your category to something like off topic.
You can render 3D assets on websites using WebGL stuff. There’s a popular library called three.js that works pretty well for rendering 3D scenes within the browser. It might be a bit overkill for this use-case though.
In terms of getting the 3D model, you can right-click a model in the explorer within Studio and click the Export context menu button.
I’m making a marketplace type website where people can sell their stuff.
I want to create a preview of what someone would buy. To do this, I want someone to upload a .rbxm file (which is what someone would get when they buy it) and it would then render it on the site.
I already know about libraries like three.js, but I wanted to know the best way of doing this.
The simplest way would be for the models to be exported in .obj format from ROBLOX Studio, that way all the parts would be a single model, with its texture or its material. I think the 3D View on the ROBLOX website is made with WebGL, and the avatars for example are .obj, as shown in this api: https://www.roblox.com/avatar-thumbnail-3d/json?userId=106848128