Hersir Posted November 15, 2017 Share Posted November 15, 2017 Hi, downloaded news dist folder from master branch and now scene.pick is broken for me: // prefix is RegEx const predicate = (currentMesh) => prefix.test(currentMesh.name) && currentMesh.isPickable; const pick = scene.pick(scene.pointerX, scene.pointerY, predicate); It finds objects but in mirror so to pick object that is lets say in top of screen are clickable in same position but bottom of screen. Works fine with newest beta version on npm. Any ideas ? I will try to dig into code as I saw that pick was changed recently. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 15, 2017 Share Posted November 15, 2017 So, the order of the picked meshes was reversed ? is that the problem? Want to reproduce it on the playground? you can switch between latest and stable and see if there are any changes. Quote Link to comment Share on other sites More sharing options...
Hersir Posted November 15, 2017 Author Share Posted November 15, 2017 @RaananW no mesh was picked in wrong place, rendered in top left corner but scene.pick found it in bottom left corner, so somehow it founds meshes in mirrored positions. (if mesh posiiton.x is lets say 50 it was picked at posiiton.x -50 ) Still trying to pinpoint the issue Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 15, 2017 Share Posted November 15, 2017 I see! I thought you meant mirrored as in the order of the picked meshes (if more than one is selected). Ok, waiting for your assessment! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.