Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 7860 times and has 1 reply Next Thread
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
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]
[Jun 16, 2008, 7:26:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Oct 5, 2008, 4:06:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved