Answer the question
In order to leave comments, you need to log in
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
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 .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question