0

I am just getting started with a-frame 0.4.0 3d objects, but I think I make something basic wrong. I started as I see here: https://aframe.io/docs/0.4.0/components/obj-model.html and I used this model: http://tf3dm.com/3d-model/wood-texture-created-in-cycles-82780.html But this doesn't worked for me. Why? How can I do well?

<!DOCTYPE html>
    <html>
    <head>
        <title>objtest</title>
        <meta charset="utf-8">
    </head>
    <body>
    <a-scene>
      <a-assets>
        <a-asset-item id="tree-obj" src="WoodTexture.obj"></a-asset-item>
        <a-asset-item id="tree-mtl" src="WoodTexture.mtl"></a-asset-item>
      </a-assets>
      <a-entity obj-model="obj: #tree-obj; mtl: #tree-mtl"></a-entity>
    </a-scene>

    </body>
    </html>
gabor aron
  • 390
  • 2
  • 3
  • 15

1 Answers1

0

did you use aframe.js? if not, try it. rename .obj and '.mtl' file without space. I have tried this model file, it works for me.

Craig.Li
  • 1,336
  • 10
  • 17
  • Thanks! Is it normal to see without texture? I renamed the .mtl file too, and the model is gray. I created a screenshot here: http://imgur.com/a/wlCSA Why? – gabor aron Feb 11 '17 at 07:30
  • Yes, you can look into this `.mtl` file, the file doesn't use any texture pictures. this model made by Blender and export to `.obj` type. the reason why it shows without texture you can see [.fbx export why there are no materials or textures?](http://blender.stackexchange.com/questions/57531/fbx-export-why-there-are-no-materials-or-textures), you can choose another suitable model. – Craig.Li Feb 11 '17 at 08:41