loadscene in a different direction

  • The hotspot created by the toureditor look like this
    <hotspot name="spot2" style="skin_hotspotstyle" ath="-179.980" atv="9.707"" linkedscene="scene_21-2" />

    I want to change it so that the linked scene opens in another direction than the one set in view.
    So I try this

    <hotspot name="spot2" style="skin_hotspotstyle" ath="-179.980" atv="9.707" onclick="loadscene(scene_20);lookat(180, -20, 110.0);" />

    But that does not work at all. No respons at all from the hotspot.

  • Hello Hans,
    how did you solved the problem?
    When I load a scene through the combox I would like to start it from a polygonal hotspot position, but I don't know what I'm doing wrong.


    This is the action

    <!-- combobox plugin -->
    <plugin name="box" keep="true"
    url="%SWFPATH%/plugins/combobox.swf"
    alturl="%SWFPATH%/plugins/combobox.js" native="false"
    align="toprightbottom" x="10" y="10"
    widhth="20"
    rowcount="20"
    onloaded="action(setupitems);"
    />

    <action name="setupitems">
    removeall();
    additem(Ciusa_F_3, action(art14) );
    </action>


    <action name="art14">
    <!-- select combobox item -->
    plugin[combobox].selectitem(Ciusa_F_3);

    <!-- dynamically add a hotspot -->
    addhotspot(Ciusa_F3);
    set(hotspot[Ciusa_F3].onclick, looktohotspot(Ciusa_F3); action(art14); );

    <!-- load scene image -->
    loadscene(scene_38)null,looktohotspot(Ciusa_F3),KEEPALL,BLEND(1));


    <!-- set view -->
    lookat(0,0,0);


    </action>


    This is the polygonal hotspot


    <!-- polygonal hotspots for the pictures on the wall
    (for a HTML5 a zoomicon is used as alternative) -->
    <style name="pichotspot62"
    capture="false"
    zorder="1"
    onclick="showpic();"
    alturl="hotspots/zoomicon.png"
    onhover="showtext( Ciusa Francesco - Vibrazioni di violino );"
    zoom="true"
    scale="0.5"
    />

    <hotspot name="Ciusa_F3" style="pichotspot62" pic="Ciusa_vdv">
    <point ath="60.87087" atv="4.169227" />
    <point ath="60.83824" atv="-0.236102" />
    <point ath="66.609892" atv="-0.316512" />
    <point ath="66.711845" atv="5.318165" />
    <point ath="64.249965" atv="5.725627" />
    <point ath="60.933266" atv="5.53932" />
    </hotspot>

    Thank you very much.

    Andrea

Jetzt mitmachen!

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