Warning: Any users that have downloaded and extracted this file should follow all the terms below.
Should there be any violation of the terms, 
the producers of this file ( Metroscape Vision ) have the right to bring a prosecution.
Punishment will be made to those causing damage to the interests of our team.

FixZMX Version 1.30
Written by CF.
Directed by ATE31 and FX9995

User Agreement
Before using the file, please read and follow the rules, agreements and statements written underneath.
1. This is an additional program for converting mesh which can then be used in the game The Omnibus Simulator(OMSI).
   You are advised to use it only for exported .x files from Zmodeler, otherwise, damages to your computer may be resulted which we are not responsible for.
2. (a) This file is under the protection of HKSAR and International law. 
         Without the permission of our team, you are not permitted to copy, edit or transmit any part of the file. 
         If you are found disobeying the rules, our team will not tolerate anyone who is involved in these illegal activities.
    (b) Our official website is the only available place for downloading the file, 
         any kind of transferring or transmitting for further downloading is prohibited.
    (c) The file is only for personal use and not for commercial purposes. This file should not be used for obtaining any benefits or privileges.
         If any lost are caused to the team, our team will consider taking action against the offender.
3. No notices will be made to any corrections or changes made to this user agreement. Our team has the final right to interpret the user agreement of this file.
4. No changes can be made to this file. Modification of this file will not be authorised under any conditions.

User Manual
Microsoft .NET Framework 3.5 or above should be installed before running this program.
This tool fixes the DirectX .x mesh exported from ZModeler 1.07
so that the mesh can be successfully converted to .o3d by OmsiXConv (included in Inofficial OMSI SDK).

Multiple files selection (batch conversion) is possible in the file selection dialog.

Removing specular highlight in OmsiXConv does not work correctly, so the function has been added to this tool.

This tool also generates .sco scenery objects for each mesh.
The place holder {infilename} is to be replaced by the input .x file name (excluding the ".x" extension).
The place holder {outfilename} is to be replaced by the output .x file name (excluding the ".x" extension) 
according to the settings in file creation options.
The texture file names in the materials of the mesh is also included in the .sco and matl_alpha is set to 1 
so that transparency is supported in OMSI when viewing the mesh.
The two textboxes of the output format of .sco can be edited by user to suit specific needs.
The upper one is for non-repeating contents (nature of scenery object) and the lower one (default to be material definitions)
is for repeating contents according to number of materials detected in the .x mesh.
File names of the .sco generated follow the output .x file names.

********************************************************************************************
Important Remarks:

This tool does not correct the coordinate system of the .x exported by ZModeler.
To make the .x mesh z-up, please do the following steps in Zmodeler before exporting .x files:
1. Rotate the mesh anti-clockwisely by 90 degrees in the left view (Cltr+click and set the angle)
2. Reorient the surfaces of the mesh.
To suit the orientation of OMSI, you may also wish to do the following in Zmodeler:
   Rotate the mesh by 180 degrees in the front view after rotating by 90 degrees in the left view and then reorienting,
or Rotate the mesh by 180 degrees in the top view before rotating by 90 degrees in the left view and then reorienting.
You are reminded that there should only be 1 object (whatever name) in the Zmodeler for export.

After using FixZMX to generate a fixed .x file, open OmsiXConv in the SDK.
Do the conversion for each fixed .x file one by one using the default settings. Wait until the red dot disappears.
If you put your .sco files under the folder ...\ABCDE\ (as an example), 
please put the .o3d files under the folder ...\ABCDE\model\ and textures under the folder ...\ABCDE\texture\.
********************************************************************************************

Contact
If you have any problem or suggestion, you can
1. Send a private message (PM) to the forum account of ATE31 in www.hkbdc.info(#5667) or www.hkbf.org(#3428).
2. Send an email to metroscapevision@gmail.com

Copyright by
Metroscape Vision 2011
metroscapevision.info
