Requesting help with upgrading the MeshSerializer version!

Problems building or running the engine, queries about how to use features etc.
Jvzi
Gnoblar
Posts: 1
Joined: Sat Jun 08, 2024 9:57 am

Requesting help with upgrading the MeshSerializer version!

Post by Jvzi »

How can I upgrade the version of .mesh files from MeshSerializer_v1.30 to MeshSerializer_v1.40? Is there any third-party tool that can perform batch upgrades?

User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 479
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 167

Re: Requesting help with upgrading the MeshSerializer version!

Post by sercero »

Code: Select all

D:\OGRE\bin>OgreMeshUpgrader.exe
Usage: OgreMeshUpgrader [opts] sourcefile [destfile]

  Upgrades or downgrades .mesh file versions.

-v             = Display version information
-pack          = Pack normals and tangents as int_10_10_10_2
-optvtxcache   = Reorder the indexes to optimise vertex cache utilisation
-autogen       = Generate autoconfigured LOD. No LOD options needed
-l lodlevels   = number of LOD levels
-d loddist     = distance increment to reduce LOD
-p lodpercent  = Percentage triangle reduction amount per LOD
-f lodnumtris  = Fixed vertex reduction per LOD
-el            = generate edge lists (for stencil shadows)
-t             = Generate tangents (for normal mapping)
-ts [3|4]      = Tangent size (4 includes parity, default: 3)
-tm            = Split tangent vertices at UV mirror points
-tr            = Split tangent vertices where basis is rotated > 90 degrees
-r             = DON'T reorganise buffers to recommended format
-E endian      = Set endian mode 'big' 'little' or 'native' (default)
-b             = Recalculate bounding box (static meshes only)
-V version     = Specify OGRE version format to write instead of latest
                 Options are: 1.10, 1.8, 1.7, 1.4, 1.0
-log filename  = name of the log file (default: 'OgreMeshUpgrader.log')
sourcefile     = name of file to convert
destfile       = optional name of file to write to. If you don't
                 specify this OGRE overwrites the existing file.

The -V option is for upgrading the mesh, be careful to specify a "destfile" if you want to preserve the original.

This program comes with your OGRE SDK