X Files from Blender missing UV coords.
I'm having a bit of trouble getting Blender to export the texture coords to a .x file. I have a very simple model. A UV sphere, with smoothed normals. I added a texture from a .bmp file to the material for the sphere, adjusted its alignment and rendered the scene to make sure its set up the way I want. The texture is showing, properly mapped in Blender. But when I go to export to .X it doesn't include a MeshTextureCoords object in the Mesh. I've also tried exporting to .3ds and using conv3ds to create the .x file. It includes a MeshTextureCoords object but all the coords are 0,0. I'm a complete newbie when it comes to 3d modelling, and am just trying to create test models to work with in my game. Any help would be greatly appreciated. There will be punch and pie for all who reply* [smile]! Thanks! *Terms and conditions apply
Thanks for the suggestion, but I'd tried that exporter. I've also tried other exporters to different formats and none of them contain texture or UV data. The texture names are loaded in the export scripts by checking the face.image attribute for each face in mesh.faces. The UV data's existence is checked with mesh.hasFaceUV(). When I try to export it seems as if there are neither any face.image objects and hasFaceUV() always returns false, even though when I render the scene in blender the object is textured. I wrote a few test scripts and this is what's happening as far as I can tell. I'm stumped. Any more suggestions?
EDIT:
I tend not to believe that none of the exporters packaged with Blender work, and that its more I'm messing up on some step when applying the texture.
EDIT:
I tend not to believe that none of the exporters packaged with Blender work, and that its more I'm messing up on some step when applying the texture.
I had the same problem a while ago with the directx 9 .x file exporter in blender 2.37a. I tried downloading the latest version of the included exporter at http://www.omariben.too.it/, and it worked fine.
www.marklightforunity.com | MarkLight: Markup Extension Framework for Unity
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement