# Loading a model on iOS with three.js and Mapbox GL

**URL:** https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796
**Category:** Questions
**Tags:** loaders, ios, glb, mapbox
**Created:** [October 15, 2020, 6:11pm UTC](https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796 "2020-10-15T18:11:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![maciekish](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/maciekish/32/13984_2.png) [@maciekish](https://discourse.threejs.org/u/maciekish)
#### Post date: [October 15, 2020, 6:11pm UTC](https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796/1 "2020-10-15T18:11:29Z")

</div>

Hi, I’m trying to load a .glb model on iOS but it’s not working. It says OES\_texture\_float\_linear not supported. Works on desktop. Am I doing something wrong or is this simply not supported on iOS? Is this a model issue or something I can fix in how three.js is configured? Built-in Safari on iOS 14.0.1.

Example: [https://maps.appulize.com/all/](https://maps.appulize.com/all/) and click any flag.

---

<div class="post-metadata">

### Author: ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)
#### Post date: [October 15, 2020, 6:16pm UTC](https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796/2 "2020-10-15T18:16:21Z")

</div>

Which version of iOS and which device? ([regarding your error](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_float_linear))

> [@maciekish](#):
>
> something I can fix

It’s hardware/browser WebGL support, the only way to fix it is to change the hardware (or not use floating point textures.)

---

<div class="post-metadata">

### Author: ![maciekish](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/maciekish/32/13984_2.png) [@maciekish](https://discourse.threejs.org/u/maciekish)
#### Post date: [October 15, 2020, 6:21pm UTC](https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796/4 "2020-10-15T18:21:08Z")

</div>

Sorry, I have updated the question with the required information. So this means i could somehow modify the .glb file to use a different texture format? It comes straight out of Agisoft MetaShape so I know nothing about the texture format unfortunately.

---

<div class="post-metadata">

### Author: ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)
#### Post date: [October 15, 2020, 6:33pm UTC](https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796/5 "2020-10-15T18:33:13Z")

</div>

Can you share the model / sample code that would be causing that error?

Tbh that’s the first time I see float point textures used. Changing [Texture.type](https://threejs.org/docs/#api/en/textures/Texture.type) and [Texture.format](https://threejs.org/docs/#api/en/textures/Texture.format) to an integer texture may fix the issue, but also cause colour changes / artifacts on the texture - but I’m guessing, maybe @Mugen87 / @Fyrestar will know more about how it works internally.

---

<div class="post-metadata">

### Author: ![maciekish](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/maciekish/32/13984_2.png) [@maciekish](https://discourse.threejs.org/u/maciekish)
#### Post date: [October 15, 2020, 6:34pm UTC](https://discourse.threejs.org/t/loading-a-model-on-ios-with-three-js-and-mapbox-gl/19796/6 "2020-10-15T18:34:07Z")

</div>

Of course, both models in the example link, but there is a direct one [http://maps.appulize.com/halfar/Hal%20Far%20Raceway-400k.glb](http://maps.appulize.com/halfar/Hal%20Far%20Raceway-400k.glb)
