expo-three icon indicating copy to clipboard operation
expo-three copied to clipboard

gltf on android.

Open voland62 opened this issue 4 years ago • 3 comments

Hi. Is there an example that loads gltf, and works on android? All I achived is web-version working, but android gives me some strange errors, that I unable to decrypt...

voland62 avatar Nov 02 '19 11:11 voland62

The following seems not going to work:

const loader = new THREE.FontLoader();
...
loader.load('/fonts/font_regular.typeface.json', function(font) {
  ...
})

Have you tried this: https://github.com/EvanBacon/expo-three-text Did it work? Because it seems outdated..

5ervant avatar Nov 07 '19 20:11 5ervant

https://github.com/EvanBacon/expo-three-text is still a valid guide!

Here's how you will load a font in JSON format:

const font = new THREE.FontLoader().parse(
  require('../../../../assets/fonts/font_regular.typeface.json')
);

5ervant avatar Nov 07 '19 20:11 5ervant

duplicate of https://github.com/expo/expo-three/issues/56

EvanBacon avatar Jun 14 '20 21:06 EvanBacon