Hello, talented guys!.
I need your help!!!
I am building configuration project, but I have faced one problem.
In frontend side code,
useEffect(() => {
const testFetchGLTF = async () => {
try {
const url = baseUrl + feetInfo.gltf;
console.log("Fetching GLTF from URL:", url);
// const { nodes, materials, scene } = await useGLTF(baseUrl+feetInfo.gltf);
let model = useLoader(FBXLoader, baseUrl+feetInfo.gltf);
console.log(scene)
} catch (error) {
console.error(`Error fetching GLTF file: ${baseUrl + feetInfo.gltf}`, error);
}
};
if (feetInfo.gltf) {
testFetchGLTF();
}
}, [feetInfo, baseUrl]);
feetInfo is data from backend, and baseUrl is backend pre url.
the url that get from backend data is correct, and I can download using that url.
I don’t know the reason, it is very urgent problem.
I am looking forward to hearing good idea and good opinion.
Thank you.