Closed stepanchvatik closed 7 months ago
Is is possible, to make whole model xrayed, but with some filtered entities fully visible, so that they are clickable "through the xrayed" model?
Here is code what I do, when user filteres, toShow is array of filtered entities
$("#btnSearch").on("click",function(e){ e.preventDefault(); var entities = scene.objects; if(toShow.length == 0){ for (var key in entities) { entities[key].xrayed = false; entities[key].pickable = true; entities[key].highlighted = false; } }else{ for (var key in entities) { if(toShow.indexOf(key)>-1){ entities[key].xrayed = false; entities[key].pickable = true; entities[key].highlighted = true; }else{ entities[key].xrayed = true; entities[key].pickable = false; entities[key].highlighted = false; } } } })
Screenshots: 1) entity that i want to click
2) entity that gets clicked (outer wall, bad behavior)
It may be related to https://github.com/xeokit/xeokit-sdk/issues/879
Will reopen if still happening and not fixed by https://github.com/xeokit/xeokit-sdk/issues/879
Is is possible, to make whole model xrayed, but with some filtered entities fully visible, so that they are clickable "through the xrayed" model?
Here is code what I do, when user filteres, toShow is array of filtered entities
Screenshots: 1) entity that i want to click
2) entity that gets clicked (outer wall, bad behavior)