Mesh is getting mirrored

Blitz3D Forums/Blitz3D Programming/Mesh is getting mirrored

I create a mesh in Blender and export it to .x format. When it's loaded into Blitz, the mesh is mirrored across the ZY plane (-x becomes +x and vice versa).

Has anyone else encountered this? Is Blitz loading them incorrectly? Is Blender exporting incorrectly?

If no one else out there uses Blender to do your modelling, perhaps you could just tell me if you've ever seen these results in whatever modelling program you have been using.

Add this line at the start of your prog:
LoaderMatrix "x",-1,0,0,0,1,0,0,0,1


Thanks GfK.

However, I wonder how much overhead is involved in that operation? Would it be better to mirror my mesh in my modelling program before exporting?

I am talking about a huge mesh (around 30,000 polys).

Dunno. Depends how many times you have to load the model I suppose.

Do some tests. I can't see LoaderMatrix taking a vast amount of time, tbh.

Well I tried it with and without LoaderMatrix and it had zero effect on the loading time.
starttime = MilliSecs()
terrain = LoadMesh("track1.x")
Endtime = MilliSecs()

1759 milliseconds without LoaderMatrix and
1754 with LoaderMatrix

Thanks GfK. Looks like that will do the job nicely.

Just for reference, I get this problem too, going from LWO -> X when using Ultimate Unwrap. In order to fix it, I tick the "Flip handedness" box on the export options.

I've yet to figure out if I need to tick it if I load a previously exported X into UU3D and go to save it as X again.