Flags used for modifying the data as it is loaded. These can be
passed to mash_data_load().
If any of the negate flags are set then they cause the vertex and
normal coordinates for the specified axis to be negated. This could
be useful when loading a model from a tool which uses a different
coordinate system than the one used in your application. For
example, in Blender if the view is rotated such that the x-axis is
pointing to the right, and the z-axis is pointing out of the screen
then y-axis would be pointing directly up. However in Clutter the
default transformation is set up such that the y-axis would be
pointing down. Therefore if a model is loaded from Blender it would
appear upside-down. Also all of the front faces would be in
clockwise order. If backface culling is then enabled then the wrong
faces would be culled with the default Cogl settings.
To avoid these issues when exporting from Blender it is common to
pass the %MASH_DATA_NEGATE_Y flag.
Flags used for modifying the data as it is loaded. These can be passed to mash_data_load().
If any of the negate flags are set then they cause the vertex and normal coordinates for the specified axis to be negated. This could be useful when loading a model from a tool which uses a different coordinate system than the one used in your application. For example, in Blender if the view is rotated such that the x-axis is pointing to the right, and the z-axis is pointing out of the screen then y-axis would be pointing directly up. However in Clutter the default transformation is set up such that the y-axis would be pointing down. Therefore if a model is loaded from Blender it would appear upside-down. Also all of the front faces would be in clockwise order. If backface culling is then enabled then the wrong faces would be culled with the default Cogl settings.
To avoid these issues when exporting from Blender it is common to pass the %MASH_DATA_NEGATE_Y flag.