Page 1 of 1

Problem with point picking on .obj mesh

Posted: Wed Oct 21, 2020 3:24 pm
by tomas_123
Hello,
I am using the picking hub in my code to pick a point on a .obj mesh. The .obj mesh is quite large and is split into multiple groups.
When my model is zoomed out so that a whole mesh group is visible the picking works fine. But when the model is more zoomed in (so that only part of the mesh group is in the view) the point is picked incorrectly on the edge of the model view. Attached are few figures for illustration.
Do you know what could be causing this behavior?
Regards,
T.

PS: I have tested a different .obj model without any subgroups and still experiencing same behavior.

Re: Problem with point picking on .obj mesh

Posted: Thu Oct 22, 2020 10:12 am
by daniel
Which version are you using? Because there was a bug like that some time ago but it was fixed in the 2.12 version (= the master branch)

Re: Problem with point picking on .obj mesh

Posted: Thu Oct 22, 2020 10:53 am
by tomas_123
I pulled the latest code from git yesterday. Also tested on the official installation build v2.12 alpha.

Re: Problem with point picking on .obj mesh

Posted: Sat Oct 24, 2020 10:06 am
by daniel
Ah too bad. I tested on my side, and I realize that the 2.11.3 version doesn't have this bug. I think we fixed it in this version, and we probably forgot to apply the patch to the v2.12 version. Do you confirm it works with 2.11.3 on your side?

Re: Problem with point picking on .obj mesh

Posted: Sat Oct 24, 2020 11:32 am
by daniel
Ok, I confirm that a commit was missing. I cherry picked it to the master branch. It should fix this issue normally.

(I also updated the 2.12.alpha version online)

Re: Problem with point picking on .obj mesh

Posted: Thu Oct 29, 2020 8:37 am
by tomas_123
It seems to be working fine now. Thanks for the update.