Home Technical Talk

obj does not contain texture links?

polycount sponsor
Offline / Send Message
malcolm polycount sponsor
I'm exporting an obj file from maya but when I open the file it has materials but no textures? Is this a limitation of the file format, if so is there another format which does have texture abilities that can be opened from max or maya? I'm setting up an art test and some of the applicants don't have maya so I need to be able to send them files and they need to be able to send me files back with textures applied in both cases.

Replies

  • Adam L. Gray
    Options
    Offline / Send Message
    Could be an issue with either the exporter or the importer, I never really imported texture-files along with maps earlier, so I think it generally doesn't work or something, I dunno really.

    If you look at the modelname.mtl file in a text editor though, it'll look something like this:
    # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
    # File Created: 17.10.2010 20:07:10

    newmtl defaultMat
    Ns 10.0000
    Ni 1.5000
    d 1.0000
    Tr 0.0000
    Tf 1.0000 1.0000 1.0000
    illum 2
    Ka 1.0000 1.0000 1.0000
    Kd 1.0000 1.0000 1.0000
    Ks 0.0000 0.0000 0.0000
    Ke 0.0000 0.0000 0.0000
    map_Ka C: \Tiros\3D\*snip* Old Bible\OldBible_d.png
    map_Kd C: \Tiros\3D\*snip* OldBible_d.png
    map_Ks C: \Tiros\3D\*snip* OldBible_s.png
    map_d C: \Tiros\3D\*snip* OldBible_d.png
    map_bump Map__5_Normal_Bump.tga

    So it deffo does include the maps, but doesn't look like it's actually using em? :s
  • Elyaradine
    Options
    Offline / Send Message
    Elyaradine polycounter lvl 11
    As far as I know, OBJ merely stores references to textures that it copies (compresses) in another folder. Collada and FBX are both supposed to be able to embed textures in their files somehow, though in my experience I've found them to be a bit fickle.
  • malcolm
    Options
    Offline / Send Message
    malcolm polycount sponsor
    Going with .fbx it seems to work.
Sign In or Register to comment.