chicagobob123 Posted February 7, 2018 Share Posted February 7, 2018 My camera.mode = BABYLON.Camera.ORTHOGRAPHIC_CAMERA; and the Mesh Names of whats chose is way off. I call this on MouseUp and scene.pick(scene.pointerX,scene.pointerY); And the Mesh hit is not the one I am clicking on. So is there something different in doing this in ORTHOGRAPHIC_CAMERA mode? Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted February 7, 2018 Share Posted February 7, 2018 Is your canvas full screen or does it have an offset? pointerX and pointerY might not be having the right coordinates. chicagobob123 1 Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 7, 2018 Author Share Posted February 7, 2018 I think you right. Its an offset I am looking at. Thanks, Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 8, 2018 Author Share Posted February 8, 2018 This turned out to be the problem I was having with the CreatePlane AdvancedDynamicTexture.CreateForMesh The create plane was creating a HUGE plane overlapping multiple objects in the scene even if you could not see it. A good fix supplied by Wingnut turn on bounding box. Size the plan then the material until you get what you want. https://www.babylonjs-playground.com/indexstable#ZI9AK7#210 Wingnut 1 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.