[FIXED] Exporting problems

Tyn

11-02-2006 00:35:02

Hey again

Am having a problem with exporting a mesh, the guy doing it is working through the normal map tutorial, using a simple box mesh. When exporting, the log came back with:
16:17:31: == Exporting Objects ==


16:17:31: Exporting Object: Box01_entity


16:17:31: Object has 1 texture sets


16:17:31: Compiling material Ogre_Normal_Rockwall


16:17:31: New texture unit rockwall_NH.tga


16:17:31: New texture unit foshizzle.dds


16:17:31: New texture unit foshizzle.dds


16:17:31: New texture unit rockwall.tga


16:17:31: Caught exception in compilemesh()


16:17:31: Please report it


16:17:31:

== Exporting Materials ==


16:17:31: 0 material(s) exported to C:\Documents and Settings\Theo\Desktop\forizzle\bullshizzle.material


The material file is cut off half way through export and doesn't produce the .mesh files, presumably due to the error message in the log.

Here's a rar'd version of the Max file, the log, the material and the OSM file generated so you can hopefully recreate the problem and see what happened.

http://www.spacecolonization.net/boxmesh.rar

Cheers

IFASS

11-02-2006 00:36:58

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=433 ;)

Tyn

11-02-2006 00:42:36

No, this is a seperate issue, or at least not one addressed by the patch mentioned there. Before, it wouldn't even go through with the export, whereas now it will, just with no mesh exported and a cropped material file. The exporter literally froze and came up with an error box on the generation of materials, whereas now it actually goes through without error.

Lioric

11-02-2006 01:45:26

Tyn, the issue with the box scene is that your modeler is not setting the value of the "ambient" property of the "AmbientOneTexture" shader of the "decal_pass" pass, the ambient property is left without a value (for the tutorial it should be r:1 g:1 b:1), and shaders should be never left without values as undefined result will occur for the display, the exporter recognizes this and it prevents from producing that material file

In the next update default parameters will be added in case you dont define them

For now, tell your modeler that add the 1,1,1 value to the ambient property

That should work

Lioric

Tyn

12-02-2006 13:30:21

Thanks, he did and it all worked, no exporting problems. Thanks Lioric.