Milkshape export issue

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
dmj726
Gnoblar
Posts: 5
Joined: Tue Aug 09, 2005 3:08 am

Milkshape export issue

Post by dmj726 »

I have Milkshape 1.75/1.76 and niether of them will properly export a model to OGRE format. After export the mesh WITH MATERIAL I open the mesh in the OGRE Meshviewer and get an error: (i believe it was #6) to the effect of material not found. Why is this happening and how can I fix it?
dmj726
Gnoblar
Posts: 5
Joined: Tue Aug 09, 2005 3:08 am

Post by dmj726 »

I also get this error if I don't export the material, which means it must not be connecting the two in the first place. I'm kind of stuck until I get this problem resolved. Is there any particular way I need to export from milkshape to make it work in OGRE?
User avatar
Dark
Halfling
Posts: 63
Joined: Fri Jul 15, 2005 7:34 pm
Location: The Netherlands
Contact:

Post by Dark »

google: 3D object converter if that aint helpin i dont know waht else :wink:
Image
Domination Studios, making the sh*t you gonna play!
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Materials are exported as .material files, they're separate from the .mesh files. There is no 'hard' link between them except the name of the material. You just have to make sure the .material is somewhere on your resource path. Read the manual to see how .material scripts work.

Try it with a standard app rather than the mesh viewer if you can't get it to work, I'm not sure where the mesh viewer looks for material scripts. I'm thinking of replacing the meshviewer with the cegui based one sometime because it has some issues.
dmj726
Gnoblar
Posts: 5
Joined: Tue Aug 09, 2005 3:08 am

Post by dmj726 »

I realize they are two separate entities. I exported them in the same folder with the same filename (different extensions .mesh and .material respectively). When I opened the .mesh file in meshviewer it through me an error. I have tried exporting the mesh with and without the material file exported. Is this version of Milkshape incompatible with ogre? Which standard app would you suggest using?
Thanks.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

How about any of the demos that create an entity?

I'm sure the error is with the meshviewer, it's not developed by us (it's an addon) and is getting out of date now.
tonywt
Gnoblar
Posts: 4
Joined: Tue Apr 05, 2005 4:45 am

Mesh View

Post by tonywt »

It seems the .mesh, .material and texture file need to be in the same location, then things seem to work fine.
Post Reply