You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am running react native on my andriod phone and I have a canvas with a car object that's an .obj extension and I am able to load this fine. However, I have another object that is a .glb extension and it is my chicken component but this does not render and gives me an error.
The code for my app is:
import { Canvas } from '@react-three/fiber';
import { Suspense } from 'react';
import Car from './components/Objects/Car';
import Chicken from './components/Objects/Chicken';
export default function App() {
return (
<Canvas camera={{position: [0,0,4], fov: 100, near:0.1, far:1000}}>
<pointLight color="white" position={[20,30,5]} intensity={1}/>
<Suspense fallback={null}>
<Car position={[0,0,0]}/>
<Chicken position={[0,-1,0]}/>
</Suspense>
</Canvas>
)
}
I am not 100% sure as to why this isn't working. I have seen online that it is something to do with andriod bundling?
When I run the app on my phone, I do get a render error which states coul not load 3: property TextDecoder does'nt exists
The text was updated successfully, but these errors were encountered:
Weird because i updated my package.json to a known good working state of the above library version combos, but this new error still pops up.
Does it have something to do with the Draco Loader CDN? Besides this, which is dynamically loaded from a URL, i don't understand how there could have been anything changed related to TextDecoder compared to when it was working a couple weeks ago with same deps.
This comes from three-stdlib that Drei uses, which I updated for compatibility here (try a clean install). Inlined textures still don't work because of missing APIs in react-native, although we're coming close to resolving that in #1972, my latest comments outline workarounds and previous patches for a proper fix.
So I am running react native on my andriod phone and I have a canvas with a car object that's an .obj extension and I am able to load this fine. However, I have another object that is a .glb extension and it is my chicken component but this does not render and gives me an error.
The code for my app is:
The code for my car component that works fine is:
The code that does not work is my chicken component which is an .glb extension:
My package.json file has the dependencies:
I am not 100% sure as to why this isn't working. I have seen online that it is something to do with andriod bundling?
When I run the app on my phone, I do get a render error which states
coul not load 3: property TextDecoder does'nt exists
The text was updated successfully, but these errors were encountered: