valepu Posted June 26, 2016 Share Posted June 26, 2016 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) http://www.babylonjs-playground.com/#26DEBS#3 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 )? Quote Link to comment Share on other sites More sharing options...
Nabroski Posted June 26, 2016 Share Posted June 26, 2016 Hello both examples works on my chrome browser, maybe you just have to reset the cache in your browser (from time to time). When i resize the window,- sometimes the console log freeze. I use the console window from babylon to pass msg like i++ http://www.babylonjs-playground.com/#26DEBS#4 Good Luck Quote Link to comment Share on other sites More sharing options...
valepu Posted June 26, 2016 Author Share Posted June 26, 2016 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 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted June 26, 2016 Share Posted June 26, 2016 Hello 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.http://www.babylonjs-playground.com/#VNVOU#6 Tell me if you got some news Best Quote Link to comment Share on other sites More sharing options...
valepu Posted June 27, 2016 Author Share Posted June 27, 2016 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 $ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2016 Share Posted June 27, 2016 Hey you can just set your decal.isPickable = false valepu 1 Quote Link to comment Share on other sites More sharing options...
valepu Posted June 27, 2016 Author Share Posted June 27, 2016 Oh it was that simple....thanks! GameMonetize 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.