I tried the BlenderExporter and have some troubles:
here's what I did:
1. I moved the .py file from the ogrenew/Tools directory into blenders script directory
2. at the beginning when starting blender there's always this cube, a perfect test object, I thought
3. I did a file/export/Ogre XML - no errors
4. I used the OgreXML converter to build the .mesh file. (OgreXMLConverter inputfile outputfile. I didn't use any parameters)
5. tried to load the file in ogre - worked I've seen my cube
6. Tried to put a texture on it with ent->setMaterialName("Simple/RockWall");
7. The cube is still BLACK
Before someone tells me now about reading the black object threats in the help forum. I did. And replacing the .mesh with a .mesh that comes with ogre, e.g. the head works perfectly.
Is there something i mad wrong, that could cause this problem??
Exporting from Blender
- charlie
- Greenskin
- Posts: 146
- Joined: Mon Nov 15, 2004 1:43 pm
- Location: Austria
- Contact:
- haffax
- OGRE Retired Moderator

- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 8
- Contact:
The cube probably doesn't have valid texture coordinates. See the Blender manual for how to create them: http://mediawiki.blender.org/index.php/ ... UV_Mapping
- jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
I am still a Blender n00b, but here's what I do:
* Select the cube, if it isn't already.
* Press 'N' to view the Transform Properties for the cube.
* Enter a number for SizeX, SizeY, SizeZ.
* Close the Transform window.
* Switch to UV Face Select mode.
* Select all.
* Switch to Material Mode
* Load an image into the UV image editor.
* Switch back to normal Model view and watch your cube textured.
* In Object Mode: Press Ctrl + A to apply transforms/rotations.
* Export - make sure that export Game Engine Materials is selected.
Well, that's what I do..
* Select the cube, if it isn't already.
* Press 'N' to view the Transform Properties for the cube.
* Enter a number for SizeX, SizeY, SizeZ.
* Close the Transform window.
* Switch to UV Face Select mode.
* Select all.
* Switch to Material Mode
* Load an image into the UV image editor.
* Switch back to normal Model view and watch your cube textured.
* In Object Mode: Press Ctrl + A to apply transforms/rotations.
* Export - make sure that export Game Engine Materials is selected.
Well, that's what I do..
-
reimpell
- OGRE Contributor

- Posts: 570
- Joined: Mon Mar 01, 2004 10:35 am
- Location: Hamburg, Germany
Re: Exporting from Blender
Please read the exporter FAQ.charlie wrote:Is there something i mad wrong, that could cause this problem??