Home » Support » 3D Design » Trouble converting OBJ with MTL file to VRML with texture PNG
Search Search  
Show: Today's Messages    Show Polls    Message Navigator
Trouble converting OBJ with MTL file to VRML with texture PNG [message #73397] Wed, 21 August 2013 17:19 UTC Go to next message
avatar randomqazplm  is currently offline randomqazplm
Messages: 6
Registered: August 2013
Go to my shop
Junior 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.

Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73416 is a reply to message #73397 ] Wed, 21 August 2013 23:06 UTC Go to previous messageGo to next message
avatar randomqazplm  is currently offline randomqazplm
Messages: 6
Registered: August 2013
Go to my shop
Junior 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!
Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73434 is a reply to message #73416 ] Thu, 22 August 2013 05:41 UTC Go to previous messageGo to next message
avatar AmLachDesigns  is currently offline AmLachDesigns
Messages: 1345
Registered: September 2011
Go to my shop
Shapie Expert
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 https://www.shapeways.com/tutorials/exporting_to_vrml_and_x3 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.
Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73475 is a reply to message #73434 ] Thu, 22 August 2013 14:45 UTC Go to previous messageGo to next message
avatar randomqazplm  is currently offline randomqazplm
Messages: 6
Registered: August 2013
Go to my shop
Junior 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.

  • Attachment: Sips.png
    (Size: 335.58KB, Downloaded 27 time(s))

[Updated on: Thu, 22 August 2013 14:46 UTC]

Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73481 is a reply to message #73475 ] Thu, 22 August 2013 15:01 UTC Go to previous messageGo to next message
avatar mkroeker  is currently offline mkroeker
Messages: 1947
Registered: June 2012
Go to all my models
Shapie Expert
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)
Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73486 is a reply to message #73481 ] Thu, 22 August 2013 15:45 UTC Go to previous messageGo to next message
avatar randomqazplm  is currently offline randomqazplm
Messages: 6
Registered: August 2013
Go to my shop
Junior 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?
Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73488 is a reply to message #73486 ] Thu, 22 August 2013 16:10 UTC Go to previous messageGo to next message
avatar mkroeker  is currently offline mkroeker
Messages: 1947
Registered: June 2012
Go to all my models
Shapie Expert
I could take a look at the VRML later today if you like, maybe a default pink vertex color is overlayed on your texture.

Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73489 is a reply to message #73488 ] Thu, 22 August 2013 16:18 UTC Go to previous messageGo to next message
avatar randomqazplm  is currently offline randomqazplm
Messages: 6
Registered: August 2013
Go to my shop
Junior Member
That would be great Smile 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.

  • Attachment: Sips.zip
    (Size: 316.44KB, Downloaded 19 time(s))

Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73519 is a reply to message #73489 ] Thu, 22 August 2013 22:06 UTC Go to previous messageGo to next message
avatar mkroeker  is currently offline mkroeker
Messages: 1947
Registered: June 2012
Go to all my models
Shapie Expert
Hmm. This vrml file does not even try to use the texture, all it has is a single
Quote:


material Material {
diffuseColor 0.3412 0.8784 0.7765
}


near the top, which corresponds to the entire model being colored cyan.
If I add
Quote:


texture ImageTexture {url "Sips MediumDiffuseMap.png"}


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.

Re: Trouble converting OBJ with MTL file to VRML with texture PNG [message #73521 is a reply to message #73519 ] Thu, 22 August 2013 23:08 UTC Go to previous message
avatar randomqazplm  is currently offline randomqazplm
Messages: 6
Registered: August 2013
Go to my shop
Junior 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!

[Updated on: Thu, 22 August 2013 23:08 UTC]


 
   
Previous Topic:Upload closing holes
Next Topic:3D Fashion

Logo

Hello.

We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers:

Click anywhere outside this window to continue.