Thanks a loooooot Tuur !!
Beiträge von gabriel
-
-
Hi All, I'm looking to randomise the sound of a hotspot.
I have a folder call "sounds" with 12 sounds named "1.mp3", "2.mp3" ... to "12.mp3".I try to adapt a code found here, with some changes, but it doesn't work. here is :
<krpano>
<plugin name="hasard"/>
<action name="hasard">
mul(randomvalue, random, 10);
roundval(randomvalue,0);
set(plugin[hasard].numero,
get(randomvalue));
trace('randomvalue=', randomvalue);
trace('randomvalue by get=', get(plugin[hasard].numero));
txtadd(plugin[hasard].action); call(plugin[hasard].action);
</action><action name="onclickspotpoint12">
playsound(soundspotpoint12, %$videos_sounds_path%/sounds/
((txtadd(plugin[hasard].action)).numero).mp3,
true, false, -121.693252, -28.525799,90, 1, spotpoint12);
</action>
</krpano>What I was looking to do is to randomise the name of the .mp3, but maybe it's not the best way to achieve what I want to do.
Any help is very welcome. Thank you. -
Hello,
I would like to completely disengage right click, I have a registered banding free licence, running krpano 1.20, I have put : <contextmenu fullscreen="false" versioninfo="false"/> into the main xml, erase everything about context menu in skin.xml, but I have still " about the krpano panorama viewer " when right click.
Thanks for your help. -
Hello,
I would like to completely disengage right click, I have a registered banding free licence, running krpano 1.20, I have put : <contextmenu fullscreen="false" versioninfo="false"/> into the main xml, erase everything about context menu in skin.xml, but I have still " about the krpano panorama viewer " when right click.
Thanks for your help. -
Hi All,
i have make a tour with intro effects, who works well, but i don't know how to switch to "normal" view when they are finished,
here is my code :Code
Alles anzeigen<!-- startup action - load the first pano/scene --> <action name="startup" autorun="onstart"> if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); ); loadscene(get(startscene), null, MERGE); if(startactions !== null, startactions() ); </action> <events onloadcomplete="delayedcall(0.0, vue_1()); delayedcall(6, vue_2()); delayedcall(10, vue_3()); delayedcall(10, vue_4());" /> <action name="vue_1"> tween(view.hlookat, 0, 4, easeOutBack); tween(view.vlookat, -90, 4, easeOutBack); tween(view.fov, 360, 5, easeInCirc); tween(view.fisheye, 1, 5.25, easeInOutQuad); tween(vlookat_moveforce,+1); </action> <action name="vue_2"> tween(view.hlookat, 0, 5, easeOutBack); tween(view.vlookat, -90, 4, easeOutBack); tween(view.fov, 360, 10, easeInCirc); tween(view.normal, 10, 10, easeInOutQuad); tween(vlookat_moveforce,-1, 10); ); </action> <action name="vue_3"> tween(view.hlookat, 0, 5, easeOutBack); tween(view.vlookat, 0, 4, easeOutBack); tween(fovtype, MFOV, 4, easeOutBack); tween(view.fov, 120, 10, easeInCirc); tween(view.normal, 10, 10, easeInOutQuad); </action> <action name="vue_4"> skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.fisheye, 0.0, distance(1.0,0.5)); tween(vlookat_moveforce,+0.5, 3); </action> <scene name="scene_equi-02_final" title="equi-02 final" onstart="" thumburl="panos/equi-02_final.tiles/thumb.jpg" lat="" lng="" heading=""> <view stereographic="true" fisheye="100" hlookat="180" vlookat="90" fovtype="VFOV" fov="360" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" /> <preview url="panos/equi-02_final.tiles/preview.jpg" /> <image type="CUBE" multires="true" tilesize="512"> <level tiledimagewidth="6144" tiledimageheight="6144"> <cube url="panos/equi-02_final.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" /> </level> <level tiledimagewidth="3072" tiledimageheight="3072"> <cube url="panos/equi-02_final.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" /> </level> <level tiledimagewidth="1536" tiledimageheight="1536"> <cube url="panos/equi-02_final.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" /> </level> <level tiledimagewidth="768" tiledimageheight="768"> <cube url="panos/equi-02_final.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" /> </level> </image> <!-- place your scene hotspots here -->
Thanks for your help and have a nice day.
Gabriel.
-
Hi All,
this plugin works well, but i have a problem with the URL
i mean, when my code isCodeonclick="forma_px(320 , 100 , http://www.gabrielacoca.fr/testspotify/lecteurs/kc.html,'get(activehotspot)');"
everything is ok, and the name kc appears in the title of the window, even he is called by 'get(activehotspot)')
but for the url, if i write kc.html, it works, but not with 'get(activehotspot)', either 'get(activehotspot)'), either trace(%1), etc ...
you can see the link here : http://www.gabrielacoca.fr/testspotify/lecteurs/kc.htmlNote that the site is a wordpress with a plugin who send to index for every 404 errors, and i have my index page in the window, so it's just the end who don't work.
i know that it's not in the "normal" use of this plugin, this plugin works well when use normally ( i mean by give the url .../kc.html in my case ), but maybe someone had already this error.
Thanks for your help and have a nice day.
Gabriel.
-
Hi Alexey,
Thanks for your rapid answer,
yes, in the project i work on actually left is well, and if i can also set the level y, it will be better.
But maybe the possibilité to setup both left/center/right/top/bottom, etc ... will be better for future projects.Thank you and have a nice day,
Gabriel.
-
Hi Alexey,
Thank you for your rapid answer, but i miss something: if i want anyway to move the window, where i can do that, i have seen all the xml and the css and i have not find where the position of the window is set , if you can tell me that, it will be helpfull because in the project i'm actually working on, there is already others element at the middle, and the web-box have to be somewhere else.
Regarding the lessons on krpano, it looks very interesting, do you give a .pdf or something with the lessons with ?
Have a nice day.
Gabriel.
-
Hi all,
ok, it's a noob question, i assume
how can i open the html window elsewhere than in the middle of the page ?
Before asking, i have read all the thread, i had a look in modal_window.xml and iframe.css, but i don't find anything.second point : you said to Lukas : "If it's difficult for you, come to our educational courses. It available on English."
well, i'm interested by educational courses in krpano.
Have a nice day,
Gabriel. -
Hi all,
i have make a code who half works, here is :Code<action name="decount"> set(layer[decompteur].html,60); asyncloop(true, delayedcall(1, dec(layer[decompteur].html,1,,)); ); </action>
What i have is my layer's html wait 1 second from 60 to 59, and then, go very fast from 59 to 0.
and what i want is 1 second delay between all frames from 60 to 0.Thanks for your help, and have a nice day,
Gabriel. -
Hi Klaus,
and thank you for your answer who reassures me.
I'm beginer in Krpano, and everytime i finaly found a solution, most of the time helped by members ,
then i seen after that it was wrote in the documentation ...
Thanks for this elegant and subtile language.
Gabriel. -
Thank you Panomaster for the time you take and for the lesson you give me.
Your code is simple, effective, and ... logical !
i learn 3 things with your answer :
-it's possible to tell "nextframe"
-use less images than 22 !
-try to be simple as possibleThanks again and have a nice day.
Gabriel.
-
I all,
here is my tour :
http://www.gabrielacoca.fr/eginand, as you see, hotspots tweens with differents delayedcalls
i want to loop this action.This action is call via the first hotspot :
then action1 is working, and at the end :
but this don't work
A other thing that is that the quality of the image decrease with the time: at the beginning it's ok, but when the action starts, the image is "blurry". Maybe it's because there is a fade , but all the images are made from the same point, using a trigger, so normally, it doesn't move.
Thank you and have a nice year.
Gabriel. -
It's what i want to do, but the value 2 who is working is "trace",
so the question is how to put the value of "trace" in a variable that i can put in the if condition. -
Hi Panomaster, and thank you for your answer.
here are some explainations of what i'm looking to do :
i have a hotspot named "music" who play music while on over :Code<hotspot name="music1" onover="playsound(bgsnd, 'url.mp3|alt_url.ogg', 0); check_decompte(); trace(hotspot[music1].name)" />
this hotspot is set to enabled="false", and is enabled="true" when he is at the middle of the screen. This is done by a other action based on getlooktodistance action.
In the same time the user can give the name of the music in a box, i use for that the plugin textinput.js
the action "compare" is called directly by the plugin and compare the answer of the user with the true name of the music.Code<action name="comparekc"> set (A,false); if((text == "right name of the music currenntly played"), set (A, true)); if(A == true,
Code<plugin name="inputtest" devices="html5" type="container" url="textinput.js" text="" onchanged="txtadd(plugin[output].html,, get(text)); compare(); set(text,);" enabled="true"/>
this works, but works also for all the hotspots, if they are at the middle of the screen or not.
What i want to do is a double condition : if the hotspot is at the middle of the screen And if the answer is correct, then is ok
the trace fonction for the hotspot works , the inputtest works too, what i want to do is to put them together in a double condition : if the hotspot is at the middle of the screen, and if the answer is correct, then do something.
thanks a lot for your help,
Gabriel. -
Hi All,
happy new year!
i'm looking to use the trace content as a new variable for a if action, like in this exemple:Code<action name="compare"> set (A,false); if((text == "get(trace)"),set (A, true)); if(A == true,...
Is there a way to remplace the sentence "get(trace)" by something who works ?
thank you.Gabriel.
-
Hi Klaus, and thank for your rapid answer.
i use a iPhone 6, the tour is embedded in the phone by goodreader, and read by safari.
But it's already when i build the tour on my computer that i can hear the delay.
in fact it's like the music is duplicated, and a little bit slowed, with a kind of echo ...
Thank you and have a nice day.Gabriel.
-
Hi All,
i have make a tour for cardboard, and try to add different sound for each panos, it works, but i have a "delay", something special where the music is a little bit slower, and "duplicate". Here is the code of my xml, may someone tell me where i go wrong . Thank you and have a nice day. Gabriel.
Code<krpano logkey="false" showerrors="false" onstart="startup();"> <action name="startup"> if(startscene === null, copy(startscene,scene[0].name)); loadscene(get(startscene), null, MERGE);</action> <layer name="txtpanoswitch" url="skin/loading.png" keep="true" visible="false" align="center" soundOn="true" scale="0" onloaded="if(side == right, set(ox,-10), set(ox,+10) );" /> <plugin name="soundinterface" preload="true" url="%SWFPATH%/plugins/soundinterface.swf" alturl="%SWFPATH%/plugins/soundinterface.js" keep="true"/><action name="playsoundaction"> set(plugin[data].soundOn, true); playpanosounds(forcesounds);</action> <scene name="scene_01" title="01" onstart="" seen="false"><view fov="110" /><preview url="pics/01.tiles/preview.jpg" /><image><cube url="pics/01.tiles/pano_%s.jpg" /><mobile><cube url="pics/01.tiles/mobile_%s.jpg" /></mobile></image> <events onloadcomplete="onloadcompleteaction();"/><action name="onloadcompleteaction"> playpanosounds());</action><action name="playpanosounds"> playbackgroundsound(%BASEDIR%/sounds/air_-_playground_love.mp3,100);</action> <action name="playbackgroundsound"> if(%1 == none, stopallsounds(); set(plugin[soundinterface].background,%1); , if(plugin[soundinterface].background == %1, if (%3 == forcesounds, stopallsounds();playsound(backgroundsound,%1,); ) , stopallsounds();playsound(backgroundsound,%1,); set(plugin[soundinterface].background,%1); ) ); </action> </scene>
-
-
Hi Everybody,
i recently make a tour for handicapped people when they are visiting a museum ( there is a little stair, people with wheelchair cannot enter in this piece ).
So, i would like that the hotspots on the tour showing a image instead of going to a other piece ( there is only one piece where they cannot go, and only one pano in my tour )
the virtual tour is here : http://www.gabrielacoca.fr/musee-bourdelle/index.html , you can see there several hotspot, showing additional information.
here is the VR version of this tour : http://www.gabrielacoca.fr/musee-bourdell…oard/index.html
i try to do the same in the VR, i change several things in the "tour.xml" and the "mobilevr.xml", here is my code (unfunctionnal):
tour.xml:Code<krpano> <scene name="bourdelle"> <view hlookat="0" vlookat="0" /> <image> <cube url="panos/bourdelle/%$cubesideprefix%_pano_%s.jpg" /> </image> </scene> <hotspot name="spotsevastos" keep="true" zorder="10" ath="-51.0" atv="9.831959" visible="true" distorded="true" height="150" width="150" url="icon.png" handcursor="false" onclick="do_hotspot_sevastos_onclick" /> <action name="do_hotspot_sevastos_onclick"> tween(layer[sevastos].visible,true,); </action> <layer name="sevastos" keep="true" align="center" url="sevastos.jpg" width="444" height="500" handcursor="false" alpha="1" visible="false" /> </krpano>
and mobilevr.xml:
Code
Alles anzeigen<krpano onstart="loadscene(0, null, MERGE);"> <!-- no default krpano fullscreen --> <contextmenu touch="false" fullscreen="false" /> <!-- set the default fov settings (might need to be adjusted for the particular VR adapter) --> <view fovtype="DFOV" fov="90" fovmin="30" fovmax="150" view.vlookatmin="-70" view.vlookatmax="90" /> <!-- events for sync viewing control --> <events name="vrcontrol" keep="true" onxmlcomplete="if(side == left, loadgyro() );" onviewchange="if(plugin[gyro].available, js(sync_1to2()) , if(syncother, if(side == left, js(sync_1to2()) , js(sync_2to1()) ); ) );" onmousedown="set(syncother,true); events[vrcontrol].onviewchange();" onmousewheel="events[vrcontrol].onmousedown();" /> <action name="loadgyro"> addplugin(gyro); set(plugin[gyro].onavailable, js(sync_set(control.usercontrol,off)) ); set(plugin[gyro].url, 'gyro.js'); </action> <action name="js_sync_call"> js( sync_call(%1(%2,%3)) ); </action> <action name="do_hotspot_sevastos_onclick"> tween(layer[sevastos].visible,true,); </action> <!-- zoom the hotspots when looking at them and after 2 seconds load the linked scene --> <events name="testshotspots" keep="true" onviewchanged="testhotspots();" /> <action name="testhotspots"> for(set(i,0), i LT hotspot.count, inc(i), getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv); if(d LT 7, hotspot_in_focus(get(i), get(hotspot[get(i)].tween(layer[sevastos].visible,true,);)); , hotspot_out_of_focus(get(i), 0.5, 0.5); ); ); </action> <action name="hotspot_in_focus"> if(hotspot[%1].infocus != true, set(hotspot[%1].infocus, true); tween(hotspot[%1].scale, 1.0, 2.0, default), tween(layer[sevastos].visible,true); </action> <action name="hotspot_out_of_focus"> set(hotspot[%1].infocus, false); tween(hotspot[%1].scale, 0.5, 0.5); </action> <!-- include the panos --> <include url="tour.xml" /> </krpano>
What i want to do is that the hotspot open the image :
- for 10 second,and then close.
or
- trig a action to close the hotspot (move the head for example)I f someone can tell me where did i go wrong or have an example of code who work, it will be helpful.
Thanks a lot and have a nice day.
Gabriel.