Posts by San7

    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

    Klaus, thanks for the quick reply! *attention*
    If the verification is really fast, then I can use it. *thumbsup*

    I think, perhapse, renderer svg makes problems.. try a pic and renderer webgl.
    ((?) i'm not on desktop now..)


    Tuur*thumbsup*

    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.

    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=" "
    />


    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.

    Hey, there's not much information online about learning Krpano.
    The examples on this website are really helpful. The key is to analyze how the code works and run more small test runs, focusing on analyzing individual actions, events, layers, and interactive points. It's very helpful!
    Don't be lazy, you can do it. *smile*

    Hi, I did this test.

    Code
    <image prealign="0|90|0" >
    <events name="test" keep="true" 
        onclick="screentosphere(mouse.x, mouse.y, toh, tov); js(console.log(get(toh)));"  
    />

    Clicking on the screen next to the hotspot displays the correct ath coordinates.
    I created a dynamic hotspot, copied it to the tour, and after rebooting, it snaps into place correctly without prealign="true"
    I think prealign is needed for hotspots that were created before alignment.

    Hello everyone! Sorry for not making any changes in a while.
    The menu has been updated to v2.31.

    • Fixed errors with automatic thumbnail display.
    • Fixed errors with placing a marker on the thumbnail of a viewed panorama.

    Hi,
    No, the heading only applies to the entire floor plan, not to each point.
    First, align all panoramas in the same direction using the Krpano tools or the plugin.


    Then you can apply the north correction to the plan (heading radar) —the radar will adjust accordingly.

    how are you doing it now ?

    Hi!
    1. I set up a hotspot (a map with areas) in 3D coordinates
    2. I calculate x y taking into account the scale factor (pixelwidth/imagewidth)
    3. I get 3D coordinates of the point taking into account rotations along the axes rx ry rz from x y locally on the hotspot (the code in js was written by ai Grok)
    4. I set the offset for the point by tx ty tz as for the hotspot and get 3D coordinates of the point
    5. I get ath atv spacetosphere(tx,ty,tz);
    It was possible to leave 3D coordinates but not all polygons are visible
    I do this for each point in the coordinate array and create polygonal hotspots

    maybe try to disable fill ?

    what happens if you create a filled 3d polygon and not all points are on the same plane ?

    In the example all the points have ty=1000, but if you change the value of one of them to 1001, the polygon will become visible.
    I think it shouldn't be like that, it should always be visible

    points3d="-3064,1001,-524,-2953,1000,-172,-2443,1000,-334,-2551,1000,-687"

    Hello everyone! There is such a polygon

    Code
    <hotspot name="p1" keep="true"  fillcolor="0xffff00" points3d="-3064,1000,-524,-2953,1000,-172,-2443,1000,-334,-2551,1000,-687" />

    but I don't see it.. ? Is it just me or everyone? Please try.
    if i change 1000 to 1001 for example it will appear ... *whistling**confused*

    to combine the image with the ground, you often have to rotate the hotspot, scale and rotate it along all axes. Probably, you need to calculate the position of each point in 3D space taking into account the scale tx tz rx ry rz of the hotspot *whistling*