Page 1 of 1

simAssimp.exportMeshes ignores upvector

Posted: 24 Sep 2020, 12:13
by ohnowhathaveidone
hi,

i ran into some trouble when exporting meshes from coppeliaSim. when using simAssimp.exportMeshes, it seems to ignore the simAssimp.upVector parameter and to always export with the upvector being Y. when importing these geometries into other software (e. g. blender), this leads to the mesh being essentially rotated -90° around the x axis.

as a workaround for the issue, i changed entries in the transformation matrix.

a sample file that reproduces the export issue and contains the workaround can be found here: https://github.com/ohnowhathaveidone/co ... portMeshes

coppeliaSim version: 4.1.0. (rev. 1)
OS: linux


cheers!

Re: simAssimp.exportMeshes ignores upvector

Posted: 24 Sep 2020, 13:27
by ohnowhathaveidone
... and a small addendum: simAssimp.exportMeshes also seems to ignore the provided scaling factor.

cheers!

Re: simAssimp.exportMeshes ignores upvector

Posted: 25 Sep 2020, 12:09
by coppelia
Hello,

thanks a lot, correct, that was forgotten. The plugin in the repository was corrected. If you want we can compile it for your platform, otherwise it will be available in next release.

Cheers

Re: simAssimp.exportMeshes ignores upvector

Posted: 25 Sep 2020, 12:24
by ohnowhathaveidone
great, thanks!

no worries - if it's in the repo, i can compile myself.


cheers!

Re: simAssimp.exportMeshes ignores upvector

Posted: 07 Oct 2020, 13:48
by ohnowhathaveidone
hi,

at least to me, the issue still seemed to be present in the repo. i created a pull request with corrections that work for me.

one issue, however, remains with importing meshes through the menu (file->import->mesh). the behavior of choosing y or z as upvector seems to be reversed in my opinion.


cheers!

Re: simAssimp.exportMeshes ignores upvector

Posted: 08 Oct 2020, 12:31
by ohnowhathaveidone
update: sorry, it was me who mixed up y and z upvectors. it's now fixed in my fork.

cheers!

Re: simAssimp.exportMeshes ignores upvector

Posted: 09 Oct 2020, 07:06
by coppelia
Thanks again Niki!

Cheers