aframe-react icon indicating copy to clipboard operation
aframe-react copied to clipboard

objLoader & gltfLoader not working

Open sfiddy opened this issue 6 years ago • 3 comments

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?

sfiddy avatar Mar 20 '18 18:03 sfiddy

Did you ever find a solution to your problem?

williamtfalch avatar Jul 02 '18 13:07 williamtfalch

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

l00f00 avatar Dec 12 '18 11:12 l00f00

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

nries1 avatar Feb 24 '20 19:02 nries1