For a new startup i created in FreeCAD an object which i would like to show on the webpage using three.js. So first i converted the stl to a glb and gltf and started my journey in finding how to work with three.js to render it. Using the https://blackthread.io/gltf-converter/ to convert the STL and a few of his samples to get started i updated my webserver MIME types etc and got the sample code to work.
Now when i replace the sample gbl file with my converted file it doesn’t render. Though when i upload the stl into the webpage it shows in the preview the object very nicely including lighting etc.
Worked several days on this topic and i’m about to give up as a lot of the information is so overwhelming that i don’t know where to start anymore or what i’m doing wrong.
Can someone help me getting started? i can share the stl, glb, gltf, js and html files if that helps in finding what i’m doing wrong.