simAssimp.exportMeshes ignores upvector

Report crashes, strange behaviour, or apparent bugs
Post Reply
ohnowhathaveidone
Posts: 17
Joined: 31 Mar 2020, 13:02

simAssimp.exportMeshes ignores upvector

Post 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!

ohnowhathaveidone
Posts: 17
Joined: 31 Mar 2020, 13:02

Re: simAssimp.exportMeshes ignores upvector

Post by ohnowhathaveidone »

... and a small addendum: simAssimp.exportMeshes also seems to ignore the provided scaling factor.

cheers!

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: simAssimp.exportMeshes ignores upvector

Post 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

ohnowhathaveidone
Posts: 17
Joined: 31 Mar 2020, 13:02

Re: simAssimp.exportMeshes ignores upvector

Post by ohnowhathaveidone »

great, thanks!

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


cheers!

ohnowhathaveidone
Posts: 17
Joined: 31 Mar 2020, 13:02

Re: simAssimp.exportMeshes ignores upvector

Post 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!

ohnowhathaveidone
Posts: 17
Joined: 31 Mar 2020, 13:02

Re: simAssimp.exportMeshes ignores upvector

Post by ohnowhathaveidone »

update: sorry, it was me who mixed up y and z upvectors. it's now fixed in my fork.

cheers!

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: simAssimp.exportMeshes ignores upvector

Post by coppelia »

Thanks again Niki!

Cheers

Post Reply