michiel Posted October 28, 2017 Share Posted October 28, 2017 Hi everybody, I'm having a lot of fun with Babylon.js! However, I've run into a problem. I hope maybe one of you can help me figure it out. Playground: https://playground.babylonjs.com/indexstable#V6DPNQ#10 I'm trying to highlight faces on a box. I've created a box and baked a (1000, 100, 100) scaling matrix into the box. This does not appear to change the geometry. When I use scene.pick in the pointermove event, the faceId returned is sometimes 14 and causes problems (buffer overflow) later on. Can anyone explain why this would happen? When I change the scaling matrix to (100, 100, 100) there is no problem. If you need any additional information, I'd be happy to provide it. Thanks for reading! Quote Link to comment Share on other sites More sharing options...
michiel Posted October 28, 2017 Author Share Posted October 28, 2017 I think I'm somehow picking the other side of the doublesided mesh. This is easily fixed with a simple check. Playground with fix: https://playground.babylonjs.com/indexstable#V6DPNQ#12 Looks like I was a bit too fast with my question. I apologize! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2017 Share Posted October 30, 2017 No need to apologize all questions are good! 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.