V
V
vvk9962015-02-03 01:45:59
3D
vvk996, 2015-02-03 01:45:59

How to display a 3D file on a website?

There are links to stl-files. You need to display them on the site. Yes, I know that webgl and threejs are needed.
But I need a viewer (player), so to speak, into which I will insert a link, and it will show a 3D model on the site.
Here is an example https://sketchfab.com/models/9ad93fb874b247ada12a8...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2015-06-15
@vvk996

Just today I figured out how it works based on other examples and, as a result, created a demo https://github.com/romiras/threejs-stl-demo
The scene rendering logic using three.js is in the js/app.js file,
An auxiliary file for loading STL models is located in js/STLLoader.js .

E
evlogii, 2015-02-03
@evlogii

Sketchlab has embedded code and embed.ly with its API.

S
svaa1982, 2015-02-19
@svaa1982

I took Blend4Web. They have a player there, exactly the same as the sketchfab. You throw the models into a directory on the server, connect the player via an iframe and that's it. I just want to warn you right away, you will have to work a little in Blender.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question