# \#glb

**URL:** https://discourse.threejs.org/tag/glb/628.md?page=1

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

**Page:** 2

---

## [How to load GLB/GLTF model first then the textures using GLTFLoader?](https://discourse.threejs.org/t/how-to-load-glb-gltf-model-first-then-the-textures-using-gltfloader/64129)

<div class="topic-metadata">

**Author:** [@Naresh\_Bisht](https://discourse.threejs.org/u/Naresh_Bisht)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 4:16am UTC](https://discourse.threejs.org/t/how-to-load-glb-gltf-model-first-then-the-textures-using-gltfloader/64129 "2024-04-16T04:16:51Z")

</div>

Hello, I want to improve the loading time of the 3d model. To improve the loading time I want to load the model with default white material first and then once the 3d model is loaded I want to load the textures separatel…

---

## [GLB/GLTF lights not visible in three js](https://discourse.threejs.org/t/glb-gltf-lights-not-visible-in-three-js/63450)

<div class="topic-metadata">

**Author:** [@zotakk4o](https://discourse.threejs.org/u/zotakk4o)\
**Replies:** 2\
**Last updated:** [March 31, 2024, 5:11pm UTC](https://discourse.threejs.org/t/glb-gltf-lights-not-visible-in-three-js/63450 "2024-03-31T17:11:11Z")

</div>

Hi, I am trying to import lights from Blender with .glb extension but the lights seem to not enlighten the scene. Here is a sandbox with an ambient light commented out so one can check that the model and texture are oka…

---

## [New at three.js, I want to place 3d-glb model in another 3d glb model, How can i achied child co-ordiate to be relative to parent](https://discourse.threejs.org/t/new-at-three-js-i-want-to-place-3d-glb-model-in-another-3d-glb-model-how-can-i-achied-child-co-ordiate-to-be-relative-to-parent/62324)

<div class="topic-metadata">

**Author:** [@Prateek\_Saxena](https://discourse.threejs.org/u/Prateek_Saxena)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 7:09pm UTC](https://discourse.threejs.org/t/new-at-three-js-i-want-to-place-3d-glb-model-in-another-3d-glb-model-how-can-i-achied-child-co-ordiate-to-be-relative-to-parent/62324 "2024-03-06T19:09:59Z")

</div>

// Create a Three.js scene const scene = new THREE.Scene(); scene.background = new THREE.Color(0x999999); // Create a directional light const directionalLight = new THREE.DirectionalLight(0xffffff, 1); directionalLight…

---

## [GLB's disappearing from certain angles after instancing](https://discourse.threejs.org/t/glbs-disappearing-from-certain-angles-after-instancing/62132)

<div class="topic-metadata">

**Author:** [@ZainAliHaider](https://discourse.threejs.org/u/ZainAliHaider)\
**Replies:** 5\
**Last updated:** [March 4, 2024, 4:50am UTC](https://discourse.threejs.org/t/glbs-disappearing-from-certain-angles-after-instancing/62132 "2024-03-04T04:50:26Z")

</div>

I don’t know why but my houses are diapering form certain angle as I applied instancing on my GLBs to optimize the overall performance. Here is the code for instancing the models interface HouseConfig { houses: …

---

## [My exported GLB file is missing part of the object in the scene when I use Blender to open the file. Can you help me? ](https://discourse.threejs.org/t/my-exported-glb-file-is-missing-part-of-the-object-in-the-scene-when-i-use-blender-to-open-the-file-can-you-help-me/61807)

<div class="topic-metadata">

**Author:** [@Emily](https://discourse.threejs.org/u/Emily)\
**Replies:** 2\
**Last updated:** [February 22, 2024, 9:08pm UTC](https://discourse.threejs.org/t/my-exported-glb-file-is-missing-part-of-the-object-in-the-scene-when-i-use-blender-to-open-the-file-can-you-help-me/61807 "2024-02-22T21:08:43Z")

</div>

Hi! I used Blender to combine 2 meshes and create a new GLB file of the scene containing both objects. When I opened the combined file with Meshlab or online viewer, I could see both objects. But when I used Blender one …

---

## [Incredible Compression on a GLB](https://discourse.threejs.org/t/incredible-compression-on-a-glb/56996)

<div class="topic-metadata">

**Author:** [@Absurd0](https://discourse.threejs.org/u/Absurd0)\
**Replies:** 18\
**Last updated:** [February 15, 2024, 9:06pm UTC](https://discourse.threejs.org/t/incredible-compression-on-a-glb/56996 "2024-02-15T21:06:21Z")

</div>

TL;DR- I’m trying to figure out how these GLB files are so small, and secondly, when I attempt to import the optimized versions into Blender I receive the error: Extension EXT\_texture\_webp is not available on this addon …

---

## [Glb model sliding after animation](https://discourse.threejs.org/t/glb-model-sliding-after-animation/60784)

<div class="topic-metadata">

**Author:** [@ubibakarsoft](https://discourse.threejs.org/u/ubibakarsoft)\
**Replies:** 2\
**Last updated:** [January 29, 2024, 2:09am UTC](https://discourse.threejs.org/t/glb-model-sliding-after-animation/60784 "2024-01-29T02:09:32Z")

</div>

My animation is fbx and the model (character) is glb. I do the code something like: mixer = new THREE.AnimationMixer( gltf.scene ); mixer.clipAction( fbx.animations\[ 0 \] ).play(); // idle Seems the fbx animation skele…

---

## [Loading EXR embedded inside GLB](https://discourse.threejs.org/t/loading-exr-embedded-inside-glb/60462)

<div class="topic-metadata">

**Author:** [@Torben\_Van\_Assche](https://discourse.threejs.org/u/Torben_Van_Assche)\
**Replies:** 13\
**Last updated:** [January 22, 2024, 9:34am UTC](https://discourse.threejs.org/t/loading-exr-embedded-inside-glb/60462 "2024-01-22T09:34:58Z")

</div>

How would I load the EXR file from the buffer directly? Loading it from the buffer it appears to think its a texture. var parser = gltf.parser; var bufferPromises = parser.getDependency("bufferView", parser.json.images…

---

## [Cannon-es creates trimesh for externally loaded GLB file, but the trimesh does not scale down when the glb file is scaled down](https://discourse.threejs.org/t/cannon-es-creates-trimesh-for-externally-loaded-glb-file-but-the-trimesh-does-not-scale-down-when-the-glb-file-is-scaled-down/60102)

<div class="topic-metadata">

**Author:** [@Soham\_Bhaumik](https://discourse.threejs.org/u/Soham_Bhaumik)\
**Replies:** 2\
**Last updated:** [January 13, 2024, 1:43pm UTC](https://discourse.threejs.org/t/cannon-es-creates-trimesh-for-externally-loaded-glb-file-but-the-trimesh-does-not-scale-down-when-the-glb-file-is-scaled-down/60102 "2024-01-13T13:43:45Z")

</div>

I am using the gltf loader from threejs to load a glb file on to the scene. I traverse the children of this model to create trimesh from the convex hull of each of these geometries. I am following this: example. However…

---

## [Looking for a way to edit a GLB file as a string in runtime](https://discourse.threejs.org/t/looking-for-a-way-to-edit-a-glb-file-as-a-string-in-runtime/37745)

<div class="topic-metadata">

**Author:** [@Suraj\_VIBROMECH](https://discourse.threejs.org/u/Suraj_VIBROMECH)\
**Replies:** 29\
**Last updated:** [May 9, 2022, 9:57am UTC](https://discourse.threejs.org/t/looking-for-a-way-to-edit-a-glb-file-as-a-string-in-runtime/37745 "2022-05-09T09:57:29Z")

</div>

Good Day, I have a usecase where I have edited a GLB model using a hex editor. I have added some ciphers into the file and Saved it. In Threejs code, I am looking for a way to decode the cipher by performing a edit on …

---

## [Add mesh to .glb bones](https://discourse.threejs.org/t/add-mesh-to-glb-bones/59438)

<div class="topic-metadata">

**Author:** [@Michael\_Romeo](https://discourse.threejs.org/u/Michael_Romeo)\
**Replies:** 8\
**Last updated:** [December 21, 2023, 11:38pm UTC](https://discourse.threejs.org/t/add-mesh-to-glb-bones/59438 "2023-12-21T23:38:46Z")

</div>

Hello, I’m trying to add a mesh to a bone. I used this example code below to try testing with no luck. Uncommenting skinnedMesh.skeleton.bones\['mixamorigRightArm'\].add(box) throws an error '\<a class='gotoLine' href='#\[…

---

## [Compressed draco + ktx2 embedded texture does not load](https://discourse.threejs.org/t/compressed-draco-ktx2-embedded-texture-does-not-load/59144)

<div class="topic-metadata">

**Author:** [@Torben\_Van\_Assche](https://discourse.threejs.org/u/Torben_Van_Assche)\
**Replies:** 5\
**Last updated:** [December 15, 2023, 12:39am UTC](https://discourse.threejs.org/t/compressed-draco-ktx2-embedded-texture-does-not-load/59144 "2023-12-15T00:39:41Z")

</div>

I have a mesh that I am trying to load which is using ktx2 compression and draco on my glb loader but I cannot get it to load, nor do I get an error message. I have tested the asset in donmccurdy’s viewer and it seems t…

---

## [Line2 becomes a weird plane when exporting scene to glb](https://discourse.threejs.org/t/line2-becomes-a-weird-plane-when-exporting-scene-to-glb/58223)

<div class="topic-metadata">

**Author:** [@JaymeFM](https://discourse.threejs.org/u/JaymeFM)\
**Replies:** 1\
**Last updated:** [November 16, 2023, 2:36pm UTC](https://discourse.threejs.org/t/line2-becomes-a-weird-plane-when-exporting-scene-to-glb/58223 "2023-11-16T14:36:59Z")

</div>

I am making my own small 3d editor where you can make boxes, spheres and lines and can load some stuff in from a database. I wanted to be able to make thin and thick lines, for this I decided to use Line2 after some res…

---

## [How to set OrbitControls using the camera object in the glb file?](https://discourse.threejs.org/t/how-to-set-orbitcontrols-using-the-camera-object-in-the-glb-file/56925)

<div class="topic-metadata">

**Author:** [@tm.ahn](https://discourse.threejs.org/u/tm.ahn)\
**Replies:** 1\
**Last updated:** [October 13, 2023, 3:55am UTC](https://discourse.threejs.org/t/how-to-set-orbitcontrols-using-the-camera-object-in-the-glb-file/56925 "2023-10-13T03:55:10Z")

</div>

Hello everyone. (I don’t speak English and used a translator) I configured OrbitControls using a camera object from a glb file. But OrbitControls didn’t work the way I wanted… When I set the OrbitControls, it moves to…

---

## [Playing Animation's from GLB file to VRM file](https://discourse.threejs.org/t/playing-animations-from-glb-file-to-vrm-file/56148)

<div class="topic-metadata">

**Author:** [@Anmol\_Singh](https://discourse.threejs.org/u/Anmol_Singh)\
**Replies:** 2\
**Last updated:** [September 20, 2023, 1:17pm UTC](https://discourse.threejs.org/t/playing-animations-from-glb-file-to-vrm-file/56148 "2023-09-20T13:17:45Z")

</div>

I new to Animation and Three js . I have 2 file : VRM file(having mesh,texture,lighting ,skeletons etc) character file. GLB file having (animation but no mesh) exported from unreal. What i am trying to achieve is pla…

---

## [3d model ruins colors and lightnings after upload next 13](https://discourse.threejs.org/t/3d-model-ruins-colors-and-lightnings-after-upload-next-13/56125)

<div class="topic-metadata">

**Author:** [@shayan\_ghoree](https://discourse.threejs.org/u/shayan_ghoree)\
**Replies:** 2\
**Last updated:** [September 18, 2023, 4:48pm UTC](https://discourse.threejs.org/t/3d-model-ruins-colors-and-lightnings-after-upload-next-13/56125 "2023-09-18T16:48:10Z")

</div>

Hey Guys, i cloned a next website for fun and it was missing the 3D model so i had my friend made one for me but after the upload the model is missing textures and lightning and i dont know whats wrong with that and her…

---

## [The rendering effects of setting textures and glb model textures are different](https://discourse.threejs.org/t/the-rendering-effects-of-setting-textures-and-glb-model-textures-are-different/56122)

<div class="topic-metadata">

**Author:** [@neciszhang](https://discourse.threejs.org/u/neciszhang)\
**Replies:** 1\
**Last updated:** [September 18, 2023, 2:14pm UTC](https://discourse.threejs.org/t/the-rendering-effects-of-setting-textures-and-glb-model-textures-are-different/56122 "2023-09-18T14:14:08Z")

</div>

Hi, I set the texture on the 3D model, but it is inconsistent with the texture rendering that comes with the model. I checked that the two map parameters are consistent. Even the texture was flipped, and I How to set th…

---

## [GLB created in blender using 'clamp to' to animate object along a curved path](https://discourse.threejs.org/t/glb-created-in-blender-using-clamp-to-to-animate-object-along-a-curved-path/54895)

<div class="topic-metadata">

**Author:** [@Karmaqueen](https://discourse.threejs.org/u/Karmaqueen)\
**Replies:** 4\
**Last updated:** [August 15, 2023, 1:25pm UTC](https://discourse.threejs.org/t/glb-created-in-blender-using-clamp-to-to-animate-object-along-a-curved-path/54895 "2023-08-15T13:25:13Z")

</div>

I created an animated bird along a curved path in blender using the tool ‘clamp to’ a Bézier curve. In https://gltf-viewer.donmccurdy.com, the GLB model animation behaves exactly in blender, but in my project it just doe…

---

## [Unsupported glTF-Binary header: Expected “%s” to be “%s”](https://discourse.threejs.org/t/unsupported-gltf-binary-header-expected-s-to-be-s/54651)

<div class="topic-metadata">

**Author:** [@h\_hh](https://discourse.threejs.org/u/h_hh)\
**Replies:** 4\
**Last updated:** [August 5, 2023, 9:57am UTC](https://discourse.threejs.org/t/unsupported-gltf-binary-header-expected-s-to-be-s/54651 "2023-08-05T09:57:49Z")

</div>

I receive this error when trying to import any .glb file. I have tried searching for a solution, but there is only one other forum post mentioning this and I can’t say it helps me. (The .obj file in the code loads jus…

---

## [React Three Fiber - rotate GLB model on scroll](https://discourse.threejs.org/t/react-three-fiber-rotate-glb-model-on-scroll/54256)

<div class="topic-metadata">

**Author:** [@Scach](https://discourse.threejs.org/u/Scach)\
**Replies:** 5\
**Last updated:** [July 28, 2023, 9:30pm UTC](https://discourse.threejs.org/t/react-three-fiber-rotate-glb-model-on-scroll/54256 "2023-07-28T21:30:47Z")

</div>

Hi, I have managed to load my GLB model in a starter template but would like to rotate the car on scroll event (spin depending on scroll position). Would appreciate tips/suggestions for how to implement this (I’ve read t…

---

## [A material made in the editor appears different in my web app](https://discourse.threejs.org/t/a-material-made-in-the-editor-appears-different-in-my-web-app/54172)

<div class="topic-metadata">

**Author:** [@ValoWolf](https://discourse.threejs.org/u/ValoWolf)\
**Replies:** 3\
**Last updated:** [July 22, 2023, 10:20pm UTC](https://discourse.threejs.org/t/a-material-made-in-the-editor-appears-different-in-my-web-app/54172 "2023-07-22T22:20:45Z")

</div>

I do have an eyeglass object that I changed its material in the editor and exported it as glb, but after I import it into my webapp, one of the materials doesn’t appear as how it looks in the editor. \[I’ll provide the o…

---

## [Add img texture to loaded glb, threejs](https://discourse.threejs.org/t/add-img-texture-to-loaded-glb-threejs/53854)

<div class="topic-metadata">

**Author:** [@Zaven](https://discourse.threejs.org/u/Zaven)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 2:35pm UTC](https://discourse.threejs.org/t/add-img-texture-to-loaded-glb-threejs/53854 "2023-07-13T14:35:42Z")

</div>

materialOrginal.glb (209.4 KB) Hey maybe My question is weird but I am new in Three js, and I need some assistance and will be grateful to get some help, I want to apply the image texture to the loaded glb file but the …

---

## [Can somebody tell me how to test my 3D model in puppeteer to see how well it works?](https://discourse.threejs.org/t/can-somebody-tell-me-how-to-test-my-3d-model-in-puppeteer-to-see-how-well-it-works/53517)

<div class="topic-metadata">

**Author:** [@jayy.96](https://discourse.threejs.org/u/jayy.96)\
**Replies:** 5\
**Last updated:** [July 6, 2023, 9:02am UTC](https://discourse.threejs.org/t/can-somebody-tell-me-how-to-test-my-3d-model-in-puppeteer-to-see-how-well-it-works/53517 "2023-07-06T09:02:13Z")

</div>

Actually, I require a test case in order to execute an automated puppeteer test. So, if anyone has a script or resource for it, please send it to me here.

---

## [Load the grid position by default in the bottom of the scene](https://discourse.threejs.org/t/load-the-grid-position-by-default-in-the-bottom-of-the-scene/53481)

<div class="topic-metadata">

**Author:** [@Santy4tas](https://discourse.threejs.org/u/Santy4tas)\
**Replies:** 2\
**Last updated:** [July 4, 2023, 4:31pm UTC](https://discourse.threejs.org/t/load-the-grid-position-by-default-in-the-bottom-of-the-scene/53481 "2023-07-04T16:31:06Z")

</div>

Hello dear friends, I’m very new on this, I’m loading a GLB file with Three.js, so far so good, the problem is I haven’t been able to load the object in the position I want, the object should load like in the center of …

---

## [Raycasting visible objects under few layers in glb model using orthographic projection](https://discourse.threejs.org/t/raycasting-visible-objects-under-few-layers-in-glb-model-using-orthographic-projection/53154)

<div class="topic-metadata">

**Author:** [@Razni\_Hashim](https://discourse.threejs.org/u/Razni_Hashim)\
**Replies:** 4\
**Last updated:** [June 24, 2023, 8:39am UTC](https://discourse.threejs.org/t/raycasting-visible-objects-under-few-layers-in-glb-model-using-orthographic-projection/53154 "2023-06-24T08:39:43Z")

</div>

I’m new to ThreeJS and I would like to know whether it raycasting is possible for visible objects that are under few layers in a glb model? I have several layers of objects and when orthographically projected they give a…

---

## [Can someone check my glb file?](https://discourse.threejs.org/t/can-someone-check-my-glb-file/53084)

<div class="topic-metadata">

**Author:** [@ExoGeN](https://discourse.threejs.org/u/ExoGeN)\
**Replies:** 5\
**Last updated:** [June 21, 2023, 9:10am UTC](https://discourse.threejs.org/t/can-someone-check-my-glb-file/53084 "2023-06-21T09:10:01Z")

</div>

Hi. Iam using an exporter to make CAD Solidworks files to glb. But somehow all the models we export are not centered in three 3D Viewer. The model are to big / to near. Here is the glb file. What is wrong in that file…

---

## [Loading GLB models with texture. Can't see the texture in the scene!](https://discourse.threejs.org/t/loading-glb-models-with-texture-cant-see-the-texture-in-the-scene/47480)

<div class="topic-metadata">

**Author:** [@mohammadreza\_Aalaei](https://discourse.threejs.org/u/mohammadreza_Aalaei)\
**Replies:** 4\
**Last updated:** [June 12, 2023, 2:40pm UTC](https://discourse.threejs.org/t/loading-glb-models-with-texture-cant-see-the-texture-in-the-scene/47480 "2023-06-12T14:40:54Z")

</div>

I’m trying to load a 3d model from 3dsMax to three.js. Within 3dsMax I added a texture to the object, but I can’t see the texture in the scene this is what I see in the scene: This is what I see in 3dsMax: Here …

---

## [Drawing Vertices of GLB Model from Float32Array](https://discourse.threejs.org/t/drawing-vertices-of-glb-model-from-float32array/52503)

<div class="topic-metadata">

**Author:** [@Gabriel\_Schaldach](https://discourse.threejs.org/u/Gabriel_Schaldach)\
**Replies:** 7\
**Last updated:** [June 7, 2023, 7:29pm UTC](https://discourse.threejs.org/t/drawing-vertices-of-glb-model-from-float32array/52503 "2023-06-07T19:29:30Z")

</div>

Im trying to draw the vertices of a glb model in my three js scene. The problem is, different models appear to have different vertice orientations. Im getting the vertices via geometry.attributes.position.array: scene.…

---

## [3D models interconversions](https://discourse.threejs.org/t/3d-models-interconversions/52290)

<div class="topic-metadata">

**Author:** [@kreysix](https://discourse.threejs.org/u/kreysix)\
**Replies:** 6\
**Last updated:** [June 1, 2023, 5:55pm UTC](https://discourse.threejs.org/t/3d-models-interconversions/52290 "2023-06-01T17:55:50Z")

</div>

Hey, I have a use case in which there are three model formats (GLB, OBJ, FBX). A user can convert any format into the other two, and download it. Is there any SDK/APIs for this ?

---

## [Precise GLB collision detection](https://discourse.threejs.org/t/precise-glb-collision-detection/50627)

<div class="topic-metadata">

**Author:** [@Harun\_Catic](https://discourse.threejs.org/u/Harun_Catic)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 8:15am UTC](https://discourse.threejs.org/t/precise-glb-collision-detection/50627 "2023-04-20T08:15:15Z")

</div>

I found this post that mentions concave real time collision detection, and an answer about three-mesh-bvh. I have came across this package before, but never used it. I tried to apply the solution to .intersectsGeometry …

[Previous page](https://discourse.threejs.org/tag/glb/628.md?match_all_tags=true&tags%5B%5D=glb)

[Next page](https://discourse.threejs.org/tag/glb/628.md?match_all_tags=true&page=2&tags%5B%5D=glb)
