expo-three
expo-three copied to clipboard
gltf on android.
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...
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..
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')
);
duplicate of https://github.com/expo/expo-three/issues/56