0

I created a Maya file when I export it to OBJ with the .obj the .mtl and the texture .png everything is loaded except the textures everything is black. Am I missing something while exporting to maya? Here is the OBJ and the texture: https://www.dropbox.com/sh/3cxqacay9sao1bu/AADtArGP5Pu2qdPY3hJBJ3Yka?dl=0

Thank you!

     
     
    <a-assets>
    <a-asset-item id="object-obj"   src="objects/ccentercables.obj"></a-asset-item>
      <a-asset-item id="object-mtl" src="objects/ccentercables.mtl"></a-asset-item>
   </a-assets>
   
   <a-obj-model src="#object-obj" mtl="#object-mtl" material="src: #texture"></a-obj-model>

enter image description here

M_Maria
  • 93
  • 1
  • 8

1 Answers1

0

Although there is a component for the obj's, and .mtl's, the a-frame team recommends the .glTF format as it is designed for webGL.

A-frame's Don McCurdy's pointed out multiple times that .obj's differ from each other, and can be hard to interpret by the webGL engine.

You should try converting the model to glTF with this, or this exporter. Though they are created for blender...

That's why You should also check out Don's article on exporting .gltf models from maya.

Piotr Adam Milewski
  • 14,150
  • 3
  • 21
  • 42