Jump to content

Is there anything different or broken with scene.pick?


chicagobob123
 Share

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...