How to set entering views to a scene

  • Hi every body,

    I 'm new to krpano and I 've created my tour and now need to set the entering view of scenc when I m clicking on hotspots, it seems that I must be able to see different views of a scene each time. I read some threads on the forum but didn't get the clue how the they work and although tried all the coding (of course if I have done it in a right way *wacko* ) but not been able to get the result at the end ! I'll be grateful if someone would answer my question for the last version of Krpano. *smile*

  • Hi,

    when using default VTOUR and the hotspots from there you could add a 'linkedscene_lookat' attribute with 'hlookat,vlookat,fov' values to the <hotspot> to set a custom view for this hotspot.

    E.g.

    Code
    <hotspot ... linkedscene="scene2" linkedscene_lookat="50,20,100" />

    Best regards,
    Klaus

  • Hi dear Klaus,


    Thanks for your reply, finally I got it working *blink* by using some codes of Demotour: Winecellar, here.
    Here is a sample of the code I used:



    <hotspot ........

    onclick="loadscene(scene-name,null,MERGE,BLEND(0.5));
    lookat(-155, 14.11, 109.8); "
    />


    Thanks for all your kindness and care.

    Bests
    Fatemeh

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!