interactive hotspot with a slider?

  • Hi all,
    can somebody help me how to use the slider from this example http://www.krpano.com/examples/10815…bes/slider.html to blend not the cubes, but the interactive hotspot? I tried to study the code, but it is really too much for me :(

    I would like to have this result but with a slider :https://krpano.com/examples/hotspotextract/
    (it is from the tutorial http://www.krpano.com/forum/wbb/inde…D=7272&pageNo=1)
    many many thanx!

    Best regards,
    Igor Socha

  • Hi,

    the slide code in that example calls a 'setblend' action with a value from 0.0 to 1.0,

    so you could just:

    1. remove the current setblend actions (for flash and html5)
    2. add a new setblend action where you set the alpha of the hotspot you want to change,
    e.g.

    Code
    <action name="setblend">
      set(hotspot[...name...].alpha, %1);
    </action>


    Best regards,
    Klaus

  • can U advice me with one other problem, please?

    I have the room with the RGB lamps - the color of these can be changed with RGB touch pad controller - something like this one:

    I have shot several main colors (dark and light blue, violet, pink, red, orange, yellow, green) of the light and I´d like to use it as hotspots -
    I think, it would be simple to assign specific onclick event to show the hotspot with particular color light to different parts of this controller - which I know how to do easily, but would it be possible to do it with mouse dragging - so it would change the hotspots gradually? For example, if the mouse is positioned between light and dark blue, there would be 50/50 % alpha of dark blue and light blue hotspots - when I will move the mouse to blue, the blue light hotspot willl be 100%, all theothers would be 0%, when I move the mouse towards the violet, gradually the violet hotspot would appear... etc.

    What do you think? would it be too complicated?
    Thank U,

    Best regards,
    Igor Socha

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!