Hi!
If I set depthbuffer=true in a hotspot, it hides behind the model but remains mouse-sensitive.
How can I disable sensitivity if it's out of view? ![]()
depthbuffer
-
-
San7
May 13, 2026 at 5:27 PM Changed the title of the thread from “depthwrite” to “depthbuffer”. -
Something like this:
Spacial Events Plugin for krpanoThis plugin enriches your hotspots with some extra events and properties, and provides some extra useful krpano actions related to the spacial…krisoft.gumroad.com -
Something like this:
But in the example, the hotspots behind the wall are mouse-sensitive.
-
you can set enabled="false" when they get behind a wall
-
you can set enabled="false" when they get behind a wall
But is this with hittest="true"?
If hittest="true" and depthbuffer=true, then the hotspot is already insensitive.
hittest="true" wastes resources, which is undesirable. -
can you show the full hotspot code?
Tuur

-
Points are created dynamically based on the camera coordinates in the model, and all points are created simultaneously for all panoramas.
I created a plugin for selecting the required ones.
You can set hittest="true" and depthbuffer=true to hide the points outside the models. But hittest="true" is required.<style name="navi_hs3d" type="image" keep="false" capture="false" alpha="0.5" distorted="true" depth="0" depthbuffer="true" renderer="svg"
url="%VIEWER%/xml/hs_r.svg" width="100" height="100" scale="0.5" rx="-90.0" ry="0.0" rz="0.0"
linkedscene="" route="" route2="" scen="" dist="" ah="" av="" creat="false"
onover.addevent="scale= 0.55; alpha=0.8; "
onout.addevent="scale=0.5; alpha=0.5;"
onclick="if(!select_hs, tour3d_loadscene(*linkedscene,*tx,*ty,*tz, 0 ); );"
ondown=" "
/>
-
I think, perhapse, renderer svg makes problems.. try a pic and renderer webgl.
((?) i'm not on desktop now..)
Tuur
-
I think, perhapse, renderer svg makes problems.. try a pic and renderer webgl.
((?) i'm not on desktop now..)
Tuur
If depthmap.hittest="true" , hotspots are hidden.
If depthmap.hittest="false," they are visible.
However, "hittest" takes up performance, and I wouldn't want to enable it. -
- New
- Official Post
Hi,
without hit-testing it is not possible to detect if a hotspot is before or behind a 3D-model.
And hit-testing should be actually very fast, krpano uses a very efficient BVH-tree for intersection testing.
Best regards,
Klaus -
Hi,
without hit-testing it is not possible to detect if a hotspot is before or behind a 3D-model.
And hit-testing should be actually very fast, krpano uses a very efficient BVH-tree for intersection testing.
Best regards,
KlausKlaus, thanks for the quick reply!
If the verification is really fast, then I can use it.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!