jpvaillancourt Posted October 23, 2018 Share Posted October 23, 2018 I have a very strange problem with the ray picker. I've been searching online for the past hours and tried so many things. I've checked the vertex normals and the geometry. Everything seems fine. It seems the ray only pick some faces of my mesh. Always the same ones, so it's not a "collision logic" issue. Every parts of my meshes are correctly UV mapped and they are all merged together. As you can see on the image, only this part of this mesh seemed to be picked by the ray. Any idea? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted October 23, 2018 Share Posted October 23, 2018 hi change a target as bit (target.x += 0.00001; , target.y+= 0.00001;target.z += 0.00001;) that work for me in my projects Quote Link to comment Share on other sites More sharing options...
jpvaillancourt Posted October 23, 2018 Author Share Posted October 23, 2018 By target, you mean the mesh? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2018 Share Posted October 23, 2018 Hello and welcome (Nice mesh btw) Can you share a repro in the playground? Additional questions: - Is the mesh animated with bones? - If yes then you cannot pick precisely as the CPU has no idea where the vertices are because they are animated by the GPU - In this case you may need to provide an impostor which is not animated (or animated using regular animations) jpvaillancourt 1 Quote Link to comment Share on other sites More sharing options...
jpvaillancourt Posted November 1, 2018 Author Share Posted November 1, 2018 Thanks for the compliment I have created a playground, and it turns out it was working. I had to build an AssetsManager for our game. Turns out I had a problem with some of my transform since, mesh.parent = X is not the same as mesh.setParent(X). Still not sure why... I guess there's a manipulation on the transformation matrix on the setParent() method that need to be done. Quote Link to comment Share on other sites More sharing options...
jpvaillancourt Posted November 1, 2018 Author Share Posted November 1, 2018 Since then I had a texture problem. I checked out another branch on my git and did an "npm install". It started to glitch again. It seems the problem wasn't fixed with setParent vs .parent, but by updating my npm packages. So I have NO idea what was wrong at first... Maybe a Babylon bug that was fixed. Probably the same reason why it worked into the playground. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2018 Share Posted November 1, 2018 So you're all good now? Quote Link to comment Share on other sites More sharing options...
jpvaillancourt Posted November 1, 2018 Author Share Posted November 1, 2018 Yes!! :D Quote Link to comment Share on other sites More sharing options...
Guest Posted November 2, 2018 Share Posted November 2, 2018 This looks PRETTY good. Can we see it by any chance? Quote Link to comment Share on other sites More sharing options...
jpvaillancourt Posted November 2, 2018 Author Share Posted November 2, 2018 Thanks ! I'll put a reminder to put the link here when it will be online for the beta. It's our company interactive christmas card. GameMonetize and Pryme8 2 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.