supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

objLoader & gltfLoader not working #115

Open sfiddy opened 6 years ago

sfiddy commented 6 years ago

Similar to an issue previously reported (see it here), I am having trouble getting an obj and gltf model to render.

I worked off of the aframe-react boilerplate and

I have tried the following variations...

<Entity obj-model='obj: manikinxsmall.obj'/>
<Entity obj-model={{obj: 'manikinxsmall.obj'}}/>
<Entity gltf-model={{src: 'manikinxsmall.gltf'}}/>
<Entity gltf-model='src: manikinxsmall.gltf'/>
<!-- The two lines below were tested in conjunction -->
<Entity primitive="a-asset-item" id="manikin" src="manikinxsmall.gltf" />
<Entity gltf-model={{src: './manikinxsmall.gltf'}}/>

This is the error I when I try rendering the models: image

About the models...

I verified that the gltf model is intact. It's a small file (7.8 MB)

image

The obj file is also relatively small (20.9 MB) and I was able to render it with vanilla HTML + Aframe.

Any thoughts on how to resolve this?

williamtfalch commented 6 years ago

Did you ever find a solution to your problem?

l00f00 commented 5 years ago

Hi any news about your ( and mine) issue with Aframe-react Gltf ?

nries1 commented 4 years ago

I'm having the same problem. I can't render gtlf models from my local machine or a cdn.