Blender 3d export/moho import problem (texture maping)

(This forum has been closed. Please use the General Moho Discussion forum.)

Moderators: Víctor Paredes, slowtiger

Locked
larspanky
Posts: 9
Joined: Thu Dec 30, 2004 12:55 am

Blender 3d export/moho import problem (texture maping)

Post by larspanky »

I see a lot of people have a problem getting textures to map in moho, I have been trying for hours with no luck. I am exporting an obj file from blender with textures and I get a white model in moho. Anyone know or have done this with blender?

Thanks
larspanky
Posts: 9
Joined: Thu Dec 30, 2004 12:55 am

Post by larspanky »

I noticed that Blender does "map" the UV correctly but it does not "link" the texture to the object, you need to re link the texture with annother progrma, I used Gile to do this and it works fine.
F.M.
Posts: 497
Joined: Thu Nov 04, 2004 4:29 pm
Location: Between my ears

Post by F.M. »

Anyone know of a program like Gile for the Mac?
GusM
Posts: 19
Joined: Thu Aug 05, 2004 5:25 pm
Location: Valencia - Spain
Contact:

Post by GusM »

Nope, but you can try it with Wings3D, as far as I know it works fine...

Regards,
Gustavo Muñoz
Roy
Posts: 14
Joined: Thu Aug 12, 2004 6:23 pm
Location: Essex, UK

Post by Roy »

If you are trying to use procedural testures from blender, that will not work. If you just use an image map, that should be fine. Simple colours also export ok.

Hope this helps.
Errr. Um.
User avatar
jorgy
Posts: 779
Joined: Sun Sep 05, 2004 8:01 pm
Location: Colorado, USA

Post by jorgy »

I'm still starting with moho and I would like to import 3D models. However, while I have access to a windows box, primariliy I use linux. I have followed the discussions here about using wings3d to create a model and then gile to "bake" the textures on. But, while there is a linux wings3d, there is not for gile. There is, of course, a linux version of blender. Is it possible to import a model from blender with a texture? Or is gile the only way to do this?
melkman
Posts: 20
Joined: Sat Oct 01, 2005 7:12 pm

Post by melkman »

I Use Blender too and had the same Problem,
i asked on elysum for an Answer, i got that.
And it works !!!!

This might be totally stupid advice (as I don't know the specifications for the OBJ file format) but it looks like Blender doesn't write the UV map data into the corresponding .mtl file that is saved with your model.

When you save your file: 'myfile.obj' you should also have a 'myfile.mtl' file in the same directory. This is what saves the material info for the model.

Inside that file, you should see an object definition something like this (when opened in your text editor of choice):
Code:
newmtl cube1_auv
Ns 98.0392156863
Kd 1.0 1.0 1.0
Ka 1.0 1.0 1.0
Ks 1.0 1.0 1.0
d 1.0
illum 2


At the end of that block add the reference to your UV map:
Code:
map_Kd myUVmap.tga

Where 'myUVmap.tga' is the filename to your UV mapped texture and see if that works.

You may want to make sure that the texture is in the same folder/directory as the obj and mtl files. Since I don't know the OBJ/MTL file format, I'm not sure if/how it escapes directory slashes.
sciboy
Posts: 5
Joined: Sun Aug 14, 2005 3:55 pm

Post by sciboy »

I recall being able to bake lighting into textures with YaFray, some googling and elysiun will probably allow you to find out more.
GusM
Posts: 19
Joined: Thu Aug 05, 2004 5:25 pm
Location: Valencia - Spain
Contact:

Post by GusM »

You can bake radiosity and procedurals to UV inside Blender with some Python plugins. Search for such words at Elysiun.
Locked