recp / AssetKit

🎨 Modern 2D/3D - Importer • Exporter • Util - Library, also known as (AssetIO)
Apache License 2.0
185 stars 18 forks source link

Make Converting Coord Sys Optional #5

Closed recp closed 7 years ago

recp commented 7 years ago

As default behavior, AssetKit tries convert document coordinate system to default coordinate system which is configurable option AK_OPT_COORD. But the problem is that viewer may not want involve to any coord-sys specific operation.

Making this step optional will improve loading performance

Default is Y_UP but with an option like ak_opt_set(AK_OPT_USE_DOC_COORD, true); loaded document's coord sys can be considered as default coord-sys e.g. if imported document is Z_UP default will be Z_UP and loader will skip converting coord-sys (geometries, transforms, cameras, lights...)

AK_OPT_USE_DOC_COORD should not override AK_OPT_COORD option

recp commented 7 years ago

Implemented with https://github.com/recp/assetkit/commit/787631e83c926bcbc954dcd2aadf64bc1996d3a1