Trouble converting OBJ with MTL file to VRML with texture PNG

Discussion in 'Design and Modeling' started by randomqazplm, Aug 21, 2013.

  1. randomqazplm
    randomqazplm New Member
    Hi, I am trying to convert this 3D model I made in to the format I need to for uploading a colour printable item on here. Can anyone help?

    I have attached the three files I have from when I made the model in Qubicle, and it opens correctly in 3DS Max, I just don't really know the software well enough to be able to convert it to this format - when I've tried the texture doesn't work properly.

    Attached Files:

  2. randomqazplm
    randomqazplm New Member
    Any advice would be great, if someone knows how to do this in 3DS max, but also if someone could just do it for me and attach the files that would be great too!
  3. AmLachDesigns
    AmLachDesigns Well-Known Member
    I cannot help directly since I do not know your software or what a .mtl file is supposed to do, but I will make the observation that your .png file does not seem to contain a viewable image.

    To upload a colour printable model to SW check out this tutorial d_for_color_printing (it may be a little out of date) and then search the forums once you have more questions - there are lots of posts on this subject.

    Good luck.
  4. randomqazplm
    randomqazplm New Member
    The .mtl file is another way of having the texture file, so the .png just contains one pixel for each of the colours used and the .mtl is basically the locations for all of those colours. What I want to do is to make the texture file a .png of the unwrapped textures instead of the .mtl and the .png.

    When I import the model into 3DS Max it shows perfectly, all the textures are correct. And I try exporting the texture to get the .png, and the attachment here is what it creates, which as far as I know is fine. Then I export the VRML file and upload them in a zip, but the texture on here doesn't work at all, sometimes the character will just be totally green, or totally pink, other times it'll be correct but all the brown becomes black, or only the white works, the rest is black. I've had a number of things like that happening and I'm not sure why, but I'm guessing I'm doing it wrong.

    I did follow the tutorial as best I could - but I still couldn't get it to work.

    I think someone who is more experienced with 3DS Max or any other 3D modelling software would probably be able to do it no problem, its just it's my first time doing this.

    Attached Files:

    • Sips.png


      File size:
      335.6 KB
    Last edited: Aug 22, 2013
  5. mkroeker
    mkroeker Well-Known Member
    I cannot help with 3dsmax either, but have you tried viewing your VRML with something like view3dscene just to see
    if the texture appears correct there ? If it does, it would mean that the VRML export from your software works fine, but
    there might be a problem with the underlying geometry (wrong orientation of face normals, holes or overlapping parts).
    The shapeways software will try to fix such geometry errors, but due to the resulting changes in the model the texture may
    no longer fit. (Also of note is that shapeways' rotating 3D preview is a bit broken with regard to colors and textures - if you
    see strangeness there, the model is probably still correct as long as the 2D image looks right)

    On the other hand, if the model does not look right in some vrml viewer, you need to check if you have more color/material
    definitions enabled than just the single texture file (there might be individual colors assigned to faces or vertices of your model
    that will be added to whatever your texture defines at a given point)
  6. randomqazplm
    randomqazplm New Member
    Yeah I tried that and it looks exactly how it looks when uploading to Shapeways - the model looks exactly right, but it's pink. It is a voxel based model so I don't think the underlying geometry could be wrong because you can't really go wrong with voxels.

    I also have blender if anyone has any advice for how to do it in blender?
  7. mkroeker
    mkroeker Well-Known Member
    I could take a look at the VRML later today if you like, maybe a default pink vertex color is overlayed on your texture.

  8. randomqazplm
    randomqazplm New Member
    That would be great :) Here's the vrml file along with the texture file in a zip folder. This time when I exported it, it was cyan instead of pink... I really don't know why it isn't working properly so any help would be great! Check back to previous posts if you want the original .obj file which should work fine in any 3D modelling software.

    Attached Files:


      File size:
      316.4 KB
  9. mkroeker
    mkroeker Well-Known Member
    Hmm. This vrml file does not even try to use the texture, all it has is a single
    near the top, which corresponds to the entire model being colored cyan.
    If I add
    immediately after that (or replace the whole material block with it), your robot-like figurine becomes textured with more or less disjunct blocks mostly arranged in vertical bands - not sure if that is what you intended, though it does seem to fit in with the disjunct nature of the texture image... one can barely make out a blocky humanoid figure on some kind of pedestal or platform that looks as if it had just had a violent encounter with a QR code.

    Guess you need a 3dsmax specialist after all to make sense of this (perhaps there is some magical incantation necessary to "bake" the texture to the model ??) If 3dsmax happens to offer DAE as an export option, you could try that instead - it should not require a separate texture file.

    Attached Files:

  10. randomqazplm
    randomqazplm New Member
    The files you attached didn't work how they were intended to. I have however taken your advice of a DAE file, and it opens the DAE perfectly in 3DS max when I import, with the correct textures, but it doesn't work when I upload it here?

    Thanks for your help by the way!
    Last edited: Aug 22, 2013