Open xeolabs opened 2 years ago
This is what I meant with https://github.com/xeokit/xeokit-sdk/issues/493, but it's way better explained here
EmphasisMaterial
to not make selected and/or highlighted objects appear to float over other objects: https://xeokit.github.io/xeokit-sdk/docs/class/src/viewer/scene/materials/EmphasisMaterial.js~EmphasisMaterial.html#instance-set-glowThroughTo make this work within the renderer, we need to make selected objects always appear opaque when selectedGlowThrough is false
. Even transparent windows will appear opaque, as shown in the screenshot below.
This is a necessary hack at this point, because of the way renderer is currently architected. It will take a slightly deeper change to be able to preserve the original transparency of each selected object. However, perhaps the opacity is desirable?
Is it possible to define different behavior for over and select?
@Amoki at the xeokit-sdk level it's supported for highlight and select, so could also be made to work for mouse-over as well.
Examples of selection and highlighting objects on mouse hover:
https://xeokit.github.io/xeokit-sdk/examples/#picking_canvas_mesh_highlight_glowThroughFalse https://xeokit.github.io/xeokit-sdk/examples/#picking_canvas_mesh_selection_glowThroughFalse
Another possibility: Add Colorize tool #107
Feedback from user:
We would like to have Selection Tool work like Colorize Objects. The main difference is that we do not want the Selected Entity to be visible behind other solid materials (walls etc...).
Possible options:
Notes:
(1) would allow us to have different colors on selected objects (2) restricts us to the same color for all selected objects
(2) is likely cleaner than (1) architecturally, because xeokit's "colorized" was not intended for visualizing selected objects and may break user expectations (and require hacks)