Jump to content

Decal interferes with Actionmanager Pick trigger


Recommended Posts

Hello :)

I'm having an issue where i'm using an ActionManager with these actions:

- On mouseover adds a decal
- On mouseout removes a decal
- On click does something else (console.log in the playground i linked below)



While the decal is active it won't let me click on the mesh all the time. On the playground if you click on the mesh sometimes it works, sometimes it doesn't (if it works try to move to another point). I suppose that's because the Decal is a mesh itself so it won't let me click on the original mesh below.

Is there something that can be done (other than using scene.pick, which seems to not be affected by this problem: http://www.babylonjs-playground.com/#1BAPRM#75 )?

Link to comment
Share on other sites

Sadly, is not just that. I used it on 2 different browsers (chrome and mozilla) before writing this post, and even the babylon console window gives me the same problem.

If it works try clicking on a different point of the ground in my example

Link to comment
Share on other sites


i think now, its an logic error.

I think you have to call update/dispose material the right way to get it to work correctly

unfortunately i have no idea how to do this :)

Here is the same example without using jquery, or pickinginfo, but if you figure it out, it dont matter - i think.


Tell me if you got some news



Link to comment
Share on other sites

the playground you linked brings me to an example that i think has nothing to do with my issue: http://www.babylonjs-playground.com/#VNVOU#6  I think you meant to link this: http://www.babylonjs-playground.com/#26DEBS#5


But even in that playground it doesn't work (you forgot to add clickAction) Mouseover and Mouseout work fine, is the click that doesn't work: http://www.babylonjs-playground.com/#26DEBS#7

Even without using dispose at all i still have the same issue: http://www.babylonjs-playground.com/#26DEBS#6

Anyways i am not using jQuery, the $ in $dispose is just a variable name that starts with $ :)


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.

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.


  • Recently Browsing   0 members

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