Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
Question about .mtl files
I had tried importing an .obj with it's .mtl file (made in Art Of Illusion) but the texture from the .mtl file was so small and the way it tiled, it just did not look right. I tried redoing the .obj but I increased the image size of the texture this time from 200 by 200 to about 400 by 400 but that did not make any difference, the texture when imported into SH3D was just as small and when tiled, it still did not look right. It was the "Greenery" texture by Nate Ryan from this page at the bottom: http://www.housepixels.com/aoitiki/tiki-index...0Repository&pagenum=3.
What is the recommended size for the images in the .mtl file?
BTW, Emmanuel, it was for my fancy lamp, in case you wanted to know. The lamp shade should have the "Greenery" texture like this: http://www.storm-artists.net/full/48247
[Note: this thread was started on sourceforge.net forums]
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
Re: Question about .mtl files
I think you must define texture coordinates on your object, often called UV coordinates. But note I discovered that there was a bug in the OBJ file loader of Java 3D. If an object of a 3D model use texture coordinates, then all the other objects must have also texture coordinates (even if these other objects don't use any texture), otherwise the texture won't be displayed correctly. For example, in the photo frame http://sweethome3d.sourceforge.net/models/AntelopeCanyonFrame.zip I designed with Blender, the picture is a texture applied to a rectangle with UV coordinates, but the grey and the black part of the frame defines also texture UV coordinates, otherwise it wouldn't work.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator