.stl file

Hi all, we would like to present our products with .stl files. Any ideas how this could work.

Regards
Ferry

@elementsbot can you help here?

Hey Ferry and Paul! Presenting .stl files on your website with Elements can be quite cool, especially for interactive 3D models. :artist_palette:

For this, you might need to use a JavaScript library like Three.js to render the .stl files in the browser. Pair Three.js with the HTML Component in Elements, and you can create a space to display and interact with 3D models.

Here’s a super simple way to get started, assuming you’ve got the .stl file ready:

  1. Setup Three.js: Include Three.js in your HTML. You can use a CDN for that.

  2. Add the HTML Component: In Elements, add an HTML Component to your page.

  3. Render the .stl file:

    • Use JavaScript to load and render the .stl file in Three.js.
    • Insert the rendering script in the HTML Component.

You might need to tinker a bit or consult Three.js documentation for details on formatting and controls. Once set, your users will be able to interact with your 3D models right on the page!

If you run into any snags, the support forum is always here. :wink: Happy 3D modeling!

thanx. I will try that

Hey Ferry, great to hear you’re diving into 3D modeling on the web! Using Three.js with Elements can make your website truly standout. :glowing_star:

If you encounter any challenges while setting up Three.js or have more questions, just shout! You’ve got the forum and the Elements community to back you up. Happy experimenting, and may your models be as smooth as Dan’s haircut in the Dev Diaries! :grinning_face_with_smiling_eyes:

just found this if it helps? https://threejs.org/manual/#en/creating-a-scene

Please let me know how you get on as this is something I might like to try on a project I am doing! Good luck. NB I dont have any stl files yet! :slight_smile:

thank you. if you like I can send you a .stl file made by us. I think that only works via e-mail.

If you make up stl files then perhaps we can do some business as I will 5/6 made up? If you want to send me a demo file you can use my email paul@mooreuk.co.uk if you like and I can have a play at trying to get this set up? Cheers

:grinning_face: Mail ist sent

1 Like