Having trouble loading textures/materials using ViroMaterials.createMaterials like in the old examples:
ViroMaterials.createMaterials({
white: {
lightingModel: "PBR",
diffuseTexture: require(.......),
metalnessTexture: require(......),
roughnessTexture: require(......),
}
});
On Android, this gives a getAssetByID error. (I haven’t checked iOS.)
I tried working around it with expo-asset, but then the materials sometimes don’t load properly — some textures just don’t show up. Even if I use require directly in Viro3DObject, I still see assets not loading every now and then.
It’s really noticeable in the Car Driving demo (wheels don’t load sometimes) and in the Car Marker demo (materials are white on first load sometimes).
Having trouble loading textures/materials using
ViroMaterials.createMaterialslike in the old examples:On Android, this gives a
getAssetByIDerror. (I haven’t checked iOS.)I tried working around it with
expo-asset, but then the materials sometimes don’t load properly — some textures just don’t show up. Even if I userequiredirectly inViro3DObject, I still see assets not loading every now and then.It’s really noticeable in the Car Driving demo (wheels don’t load sometimes) and in the Car Marker demo (materials are white on first load sometimes).