expo / expo-three

Utilities for using THREE.js on Expo
MIT License
711 stars 87 forks source link

@kyaroru Thank you for your example. Update Example #286

Open WorrenGilgamesh opened 1 year ago

WorrenGilgamesh commented 1 year ago
    @kyaroru Thank you for your example.

I checked your repo https://github.com/kyaroru/RNExpoThree Btw, could you please update your example using the latest expo sdk?

Originally posted by @kitkat0225 in https://github.com/expo/expo-three/issues/151#issuecomment-1081037720

Is there an update for this?

I try to use that example an I get the next error:

iOS Bundling failed 1844ms
SyntaxError: .../icebear/icebear.glb: Unexpected character ''. (1:4)

And if I run it with texture, I get the next error

iOS Bundling failed 1632ms
SyntaxError: .../icebear/lambert1_baseColor.xjpg: Unexpected character '�'. (1:0)
> 1 | ����JFIF��C��C���

My dependencies:

"dependencies": {
    "@react-navigation/native": "^6.0.16",
    "base64-arraybuffer": "^1.0.2",
    "expo": "^47.0.0",
    "expo-av": "~13.0.2",
    "expo-gl": "^12.0.1",
    "expo-three": "^7.0.0",
    "react": "18.1.0",
    "react-native": "0.70.5",
    "react-native-screens": "~3.18.0",
    "three": "^0.147.0"
  }, 

I post the question in SO too: https://stackoverflow.com/questions/74793213/react-native-expo-how-to-render-a-glb-3d-model-from-an-url

If you read this, upvote the change in expo: https://expo.canny.io/feature-requests/p/easy-implementation-of-3d-model-view