# \#stl-loader

**URL:** https://discourse.threejs.org/tag/stl-loader/630.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Unable to load .fbx or .gltf file, while .stl file is working with no issue](https://discourse.threejs.org/t/unable-to-load-fbx-or-gltf-file-while-stl-file-is-working-with-no-issue/70012)

<div class="topic-metadata">

**Author:** [@umgst](https://discourse.threejs.org/u/umgst)\
**Replies:** 5\
**Last updated:** [August 29, 2024, 6:20am UTC](https://discourse.threejs.org/t/unable-to-load-fbx-or-gltf-file-while-stl-file-is-working-with-no-issue/70012 "2024-08-29T06:20:38Z")

</div>

I have 3 files to be loaded into the scene (.stl, .fbx, .gltf). All these files are located in the same directory. I am facing no issue while loading .stl, but for .fbx and .gltf I get the error 404. Not sure whats cau…

---

## [Unable to load .fbx or .gltf file](https://discourse.threejs.org/t/unable-to-load-fbx-or-gltf-file/69368)

<div class="topic-metadata">

**Author:** [@umgst](https://discourse.threejs.org/u/umgst)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 4:59am UTC](https://discourse.threejs.org/t/unable-to-load-fbx-or-gltf-file/69368 "2024-08-29T04:59:56Z")

</div>

I have 3 files to be loaded into the scene (.stl, .fbx, .gltf). All these files are located in the same directory. I am facing no issue while loading .stl, but for .fbx and .gltf I get the error 404. Not sure whats cau…

---

## [How to load a stl from URL?](https://discourse.threejs.org/t/how-to-load-a-stl-from-url/20278)

<div class="topic-metadata">

**Author:** [@AlanXin](https://discourse.threejs.org/u/AlanXin)\
**Replies:** 7\
**Last updated:** [March 21, 2024, 9:48pm UTC](https://discourse.threejs.org/t/how-to-load-a-stl-from-url/20278 "2024-03-21T21:48:20Z")

</div>

Hello developers, As the topic, how to load a stl from URL(http://www.csmmg.com/pikachu.stl); loader.load( “http://www.csmmg.com/pikachu.stl”, function ( geometry ) { } ); Chrome consoled error: Access to XMLHttpRe…

---

## [RangeError when loading STL File via parse, How to use FileReader for importing models](https://discourse.threejs.org/t/rangeerror-when-loading-stl-file-via-parse-how-to-use-filereader-for-importing-models/52746)

<div class="topic-metadata">

**Author:** [@Michael\_Nicol](https://discourse.threejs.org/u/Michael_Nicol)\
**Replies:** 7\
**Last updated:** [June 13, 2023, 8:57pm UTC](https://discourse.threejs.org/t/rangeerror-when-loading-stl-file-via-parse-how-to-use-filereader-for-importing-models/52746 "2023-06-13T20:57:59Z")

</div>

Why does the parsing of the file result in a range error? RangeError: Invalid typed array length: 15921938187

---

## [How do I call loader function inside app.post in Node.js?](https://discourse.threejs.org/t/how-do-i-call-loader-function-inside-app-post-in-node-js/29785)

<div class="topic-metadata">

**Author:** [@godsofheaven](https://discourse.threejs.org/u/godsofheaven)\
**Replies:** 9\
**Last updated:** [May 27, 2023, 7:56pm UTC](https://discourse.threejs.org/t/how-do-i-call-loader-function-inside-app-post-in-node-js/29785 "2023-05-27T19:56:35Z")

</div>

I am trying to create a node app in which I need to calculate the volume of the stl file which is uploaded by the user. I am using express and multer to handle the file uploading process. I am using three.js to calculate…

---

## [Why the stl loader does not work on ios (swift)](https://discourse.threejs.org/t/why-the-stl-loader-does-not-work-on-ios-swift/18551)

<div class="topic-metadata">

**Author:** [@AlanXin](https://discourse.threejs.org/u/AlanXin)\
**Replies:** 4\
**Last updated:** [May 2, 2023, 9:24am UTC](https://discourse.threejs.org/t/why-the-stl-loader-does-not-work-on-ios-swift/18551 "2023-05-02T09:24:12Z")

</div>

Hi Guys, The following code works well on Android, but when I run it on wkwebview(IOS), it does not work. Is there any ios configuration reason or anything else? var lo var loader = new THREE.STLLoader(); await loa…

---

## [Problems with loading STL file](https://discourse.threejs.org/t/problems-with-loading-stl-file/43705)

<div class="topic-metadata">

**Author:** [@Kedar\_Patil](https://discourse.threejs.org/u/Kedar_Patil)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 1:27pm UTC](https://discourse.threejs.org/t/problems-with-loading-stl-file/43705 "2022-10-17T13:27:17Z")

</div>

I’m trying to load the stl file from my local machine but it is showing me error of page not found , can someone help me in this ,thank you in advance. import "./style.css"; import \* as THREE from "three"; import { Orbi…

---

## [Stl import problem](https://discourse.threejs.org/t/stl-import-problem/41956)

<div class="topic-metadata">

**Author:** [@vozercg](https://discourse.threejs.org/u/vozercg)\
**Replies:** 2\
**Last updated:** [August 27, 2022, 2:24pm UTC](https://discourse.threejs.org/t/stl-import-problem/41956 "2022-08-27T14:24:16Z")

</div>

Hello. I have a stl model from exported sculptgl. If i import this model in meshmixer or others, model seems smooth . But in three.js it seems like voxels. What is the reaseon of this?

---

## [Parse binary STL file](https://discourse.threejs.org/t/parse-binary-stl-file/24826)

<div class="topic-metadata">

**Author:** [@leonnicklas](https://discourse.threejs.org/u/leonnicklas)\
**Replies:** 4\
**Last updated:** [May 17, 2022, 9:00pm UTC](https://discourse.threejs.org/t/parse-binary-stl-file/24826 "2022-05-17T21:00:46Z")

</div>

My goal is to load private stls with three.js from my (non-public) Laravel 8 storage folder. Of course this is not possible with the .load function from the STLLoader.js like this: const loader = new THREE.STLLoader()…

---

## [Is there any possibility to split stl file section cuts and need to export section cuts using three js](https://discourse.threejs.org/t/is-there-any-possibility-to-split-stl-file-section-cuts-and-need-to-export-section-cuts-using-three-js/38018)

<div class="topic-metadata">

**Author:** [@Phani\_Devisetti](https://discourse.threejs.org/u/Phani_Devisetti)\
**Replies:** 0\
**Last updated:** [May 10, 2022, 6:29pm UTC](https://discourse.threejs.org/t/is-there-any-possibility-to-split-stl-file-section-cuts-and-need-to-export-section-cuts-using-three-js/38018 "2022-05-10T18:29:31Z")

</div>

Is there any possibility to split stl file section cuts and need to export section cuts and save as .stl file format using three js.

---

## [UPDATED: STL file does not appear when using STL Loader](https://discourse.threejs.org/t/updated-stl-file-does-not-appear-when-using-stl-loader/36503)

<div class="topic-metadata">

**Author:** [@Swhite215](https://discourse.threejs.org/u/Swhite215)\
**Replies:** 2\
**Last updated:** [March 29, 2022, 5:58pm UTC](https://discourse.threejs.org/t/updated-stl-file-does-not-appear-when-using-stl-loader/36503 "2022-03-29T17:58:38Z")

</div>

I am attempting to render an custom STL file using ThreeJS and React. When the application loads there are no errors, but nothing is rendered to the screen. Any thoughts?

---

## [Unable to parse STL file in Azure Blob Storage with Three.js](https://discourse.threejs.org/t/unable-to-parse-stl-file-in-azure-blob-storage-with-three-js/35298)

<div class="topic-metadata">

**Author:** [@JKornberg](https://discourse.threejs.org/u/JKornberg)\
**Replies:** 0\
**Last updated:** [February 24, 2022, 6:57pm UTC](https://discourse.threejs.org/t/unable-to-parse-stl-file-in-azure-blob-storage-with-three-js/35298 "2022-02-24T18:57:37Z")

</div>

I am trying to use the @azure/storage-blob package to download a STL file blob for use in Three.JS as follows: const downloadResponse = await containerClient.getBlobClient('models/Large Knob.STL').download(); const down…

---

## [React Native - Three js - STLLoader returned BufferGeometry not showing](https://discourse.threejs.org/t/react-native-three-js-stlloader-returned-buffergeometry-not-showing/32667)

<div class="topic-metadata">

**Author:** [@AlanSmithGit](https://discourse.threejs.org/u/AlanSmithGit)\
**Replies:** 0\
**Last updated:** [December 14, 2021, 2:57pm UTC](https://discourse.threejs.org/t/react-native-three-js-stlloader-returned-buffergeometry-not-showing/32667 "2021-12-14T14:57:51Z")

</div>

Using STLLoader from Three.js Loaders. The stl file / object is loaded successfully but when added to the scene through mesh, it does not show on the screen. Have tried all sorts of mesh materials to create mesh but noth…

---

## [Can I use the model's original color in the code instead of setting new color?](https://discourse.threejs.org/t/can-i-use-the-models-original-color-in-the-code-instead-of-setting-new-color/17747)

<div class="topic-metadata">

**Author:** [@tnovkirishka](https://discourse.threejs.org/u/tnovkirishka)\
**Replies:** 1\
**Last updated:** [August 8, 2020, 12:35pm UTC](https://discourse.threejs.org/t/can-i-use-the-models-original-color-in-the-code-instead-of-setting-new-color/17747 "2020-08-08T12:35:58Z")

</div>

Hi, I am new to this and I was wondering if there is a way to get the original color of the model from Solidworks, I exported the model in STL format but I read that it might not have the color information in it… Is th…

---

## [Type error even after importing STLLoader seperately in Three.js](https://discourse.threejs.org/t/type-error-even-after-importing-stlloader-seperately-in-three-js/30011)

<div class="topic-metadata">

**Author:** [@godsofheaven](https://discourse.threejs.org/u/godsofheaven)\
**Replies:** 0\
**Last updated:** [September 17, 2021, 5:54pm UTC](https://discourse.threejs.org/t/type-error-even-after-importing-stlloader-seperately-in-three-js/30011 "2021-09-17T17:54:24Z")

</div>

I am trying to implement Three.js in node as I want my code to be on the server-side and not visible to the client. This is my code currently that I am using: const THREE = requires('three'); const STLLoader = import('t…

---

## [Is there an STL to jpg converter](https://discourse.threejs.org/t/is-there-an-stl-to-jpg-converter/28902)

<div class="topic-metadata">

**Author:** [@swathi\_madineni](https://discourse.threejs.org/u/swathi_madineni)\
**Replies:** 1\
**Last updated:** [August 14, 2021, 8:45am UTC](https://discourse.threejs.org/t/is-there-an-stl-to-jpg-converter/28902 "2021-08-14T08:45:24Z")

</div>

I want the STL generated at run-time to be captured as an image. Is there any API to perform the same in three? Found the below when I googled, which is exactly what I want

---

## [Is there three.js as .stl file load and preview?](https://discourse.threejs.org/t/is-there-three-js-as-stl-file-load-and-preview/14111)

<div class="topic-metadata">

**Author:** [@Niraj](https://discourse.threejs.org/u/Niraj)\
**Replies:** 9\
**Last updated:** [July 8, 2021, 8:08am UTC](https://discourse.threejs.org/t/is-there-three-js-as-stl-file-load-and-preview/14111 "2021-07-08T08:08:31Z")

</div>

Hi its possible way three.js from load the .stl file from users and preview it??

---

## [Can someone please for the love of god send me a working code of STL file loading?](https://discourse.threejs.org/t/can-someone-please-for-the-love-of-god-send-me-a-working-code-of-stl-file-loading/18814)

<div class="topic-metadata">

**Author:** [@n13](https://discourse.threejs.org/u/n13)\
**Replies:** 23\
**Last updated:** [June 11, 2021, 8:51pm UTC](https://discourse.threejs.org/t/can-someone-please-for-the-love-of-god-send-me-a-working-code-of-stl-file-loading/18814 "2021-06-11T20:51:00Z")

</div>

I have spent 8 hours trying to render an STL. I cannot although i am following verbatim the tutorials. The code on the internet does not work. The STLLoader code does not work. Nothing works and nothing renders. I ge…

---

## [Volume of an uploaded stl file returning 0 after calculation](https://discourse.threejs.org/t/volume-of-an-uploaded-stl-file-returning-0-after-calculation/20693)

<div class="topic-metadata">

**Author:** [@Stephenlaye2](https://discourse.threejs.org/u/Stephenlaye2)\
**Replies:** 4\
**Last updated:** [November 13, 2020, 5:18pm UTC](https://discourse.threejs.org/t/volume-of-an-uploaded-stl-file-returning-0-after-calculation/20693 "2020-11-13T17:18:22Z")

</div>

Hi everyone, I have managed to calculate the voule of the stl file I uploaded. I can get the distance between two points using p1.distanceTo(p2). However, I’m unable to get the volume of the geometry. It always return 0…

---

## [STL model is not rendered correctly](https://discourse.threejs.org/t/stl-model-is-not-rendered-correctly/18888)

<div class="topic-metadata">

**Author:** [@n13](https://discourse.threejs.org/u/n13)\
**Replies:** 14\
**Last updated:** [September 21, 2020, 2:44pm UTC](https://discourse.threejs.org/t/stl-model-is-not-rendered-correctly/18888 "2020-09-21T14:44:47Z")

</div>

I have managed to render STL files, using STLLoader. However, the result does not look like i would like to. Here are some pictures of the rendered model: However, look how the model looks like when i open it wi…

---

## [STL Loader file path issues](https://discourse.threejs.org/t/stl-loader-file-path-issues/18287)

<div class="topic-metadata">

**Author:** [@Nordine](https://discourse.threejs.org/u/Nordine)\
**Replies:** 6\
**Last updated:** [August 30, 2020, 9:41pm UTC](https://discourse.threejs.org/t/stl-loader-file-path-issues/18287 "2020-08-30T21:41:00Z")

</div>

Hi everyone, I have some problems rendering my STL file with the STLLoader from ThreeJS. First, I encountered this error message RangeError: Invalid typed array length: 16367289120. I imagine it’s because I didn’t giv…

---

## [For all loaders, how to set synchronized mode?](https://discourse.threejs.org/t/for-all-loaders-how-to-set-synchronized-mode/16140)

<div class="topic-metadata">

**Author:** [@AlanXin](https://discourse.threejs.org/u/AlanXin)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 4:12am UTC](https://discourse.threejs.org/t/for-all-loaders-how-to-set-synchronized-mode/16140 "2020-06-12T04:12:54Z")

</div>

Hello all, For all loaders, the loader.load is asynchronous. How to change to synchronous? var loader = new THREE.STLLoader(); loader.load( file, function ( geometry ) { currentObj = geometry; $( “#loading\_data” ).…

---

## [Can't load new STL files with STLLoader.js](https://discourse.threejs.org/t/cant-load-new-stl-files-with-stlloader-js/15831)

<div class="topic-metadata">

**Author:** [@Eccsx](https://discourse.threejs.org/u/Eccsx)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 10:56pm UTC](https://discourse.threejs.org/t/cant-load-new-stl-files-with-stlloader-js/15831 "2020-06-02T22:56:17Z")

</div>

Hi everyone, I would like for a project to be able to load custom STL files that I will create on TinkerCAD website. To do this, I followed the example file on the Three.js website and I managed to load and display the…

---

## [Load an STL file from SQL to Three.js STL loader](https://discourse.threejs.org/t/load-an-stl-file-from-sql-to-three-js-stl-loader/13461)

<div class="topic-metadata">

**Author:** [@N.J](https://discourse.threejs.org/u/N.J)\
**Replies:** 2\
**Last updated:** [March 12, 2020, 2:48pm UTC](https://discourse.threejs.org/t/load-an-stl-file-from-sql-to-three-js-stl-loader/13461 "2020-03-12T14:48:43Z")

</div>

Hi i was wondering if its possible and probably is but i\`m not that good at PHP and the three.js is new to me so my question is it possible to load my stl models from MySQL and if it is possible could you give me an e…

---

## [STLLoader in Vue.js Error](https://discourse.threejs.org/t/stlloader-in-vue-js-error/8068)

<div class="topic-metadata">

**Author:** [@Javier\_Sancho](https://discourse.threejs.org/u/Javier_Sancho)\
**Replies:** 22\
**Last updated:** [March 10, 2020, 7:10pm UTC](https://discourse.threejs.org/t/stlloader-in-vue-js-error/8068 "2020-03-10T19:10:27Z")

</div>

Hi all, I have been trying to implement Three.js in Vue.js and i have been able to create a scene where i am capable to create a bunch of cubes with no problem. All that works as it should. My main issue is within the S…
