Search results
Search results 1-20 of 156.
I was wondering if there is any sharpening applied when viewing a hotspot in krpano. Hotspot is an img hotspot. The original image is here: https://www.pexels.com/photo/smiling-gir…k-shirt-774091/ When viewed at 25% in photoshop, I see something like this (best viewed in new window) But when I view inside krpano on a hotspot at approximate the same size as 25% in photoshop, there are some noticable artifacts visible. See screenshot (best viewed in new window): I tried playing around with scale/w...
Hi Klaus, This is now working in build INFO: krpano 1.21 (build 2023-03-21) But I still found a potential issue with this: when I have a preview defined, for example this: Source code 1 <preview type="grid()" /> Then the onloadcomplete is triggered BEFORE all materials have been downloaded. When I dont define this in the tour, the event is triggered AFTER all materials have been downloaded (as expected). Demo: Without preview (alert shows after materials are downloaded): https://krpano.kri-soft....
Workaround: Source code 1 2 3 4 5 6 7 8 9 <action name="pos_update" scope="localonly"> if (get(global.layer[text-pos].visible) == "true", set(global.layer[text-ath].text, calc(roundval(global.view.hlookat, 2))); set(global.layer[text-atv].text, calc(roundval(global.view.vlookat, 2))); set(global.layer[text-fov].text, calc(roundval(global.view.fov, 2))); ); </action> I have the feeling that doing too many things in the onviewchange() event is not optimal. (Escpecially in the beginning when not ev...
Just a quick "i can reproduce" the scenario, so not something local.
I ususally use San7 approach for looping through hotspts, but Tuur, your code looks so much clearner!
Or even better is this, because then we are absolutely sure we tween the correct hotspot... Source code 1 2 3 4 5 6 7 8 9 <action name="hid_show_hs" scope="local" args="stat" > for(set(i, 0), i LT hotspot.count, inc(i), copy(hs, hotspot[get(i)]); if(hs.name == 'infohs', trace(hs.name); tween(hotspot[get(i)].alpha, get(stat)); ); ); </action>
Yeah, I wish I could think of something simpler. I might have a go at it later and post it here then...
Hey San7, This looks like a scope issue: while doing the tween on hs, the hs is overwritten (copy) with a new value and then that new value is tweened :) Maybe this could work (not tested): Source code 1 2 3 4 5 6 7 8 9 10 <action name="hid_show_hs" scope="local" args="stat" > for(set(i, 0), i LT hotspot.count, inc(i), copy(hs, hotspot[get(i)]); if(hs.name == 'infohs', copy(hstotween, hotspot[get(i)]); trace(hstotween.name); tween(hstotween.alpha, get(stat)); ); ); </action>
Tested with javascript plugins: plugin1: krpano.actions.dosomething = function() { ... }; plugin2: krpano.actions.dosomething = function() { ... }; And in tour.xml I have <plugin name="simpleplugin" url="simpleplugin.js"/> <plugin name="simpleplugin2" url="simpleplugin2.js"/> <action name="dosomething"> ... </action> when i call "dosomething", the action from plugin2 is used.
While write some plugins, I have encountered a few times that there are conflicts in terms of functions/actions/styles. For example: Plugin 1: (simpleplugin.xml) <action name="dosomething" scope="local"> doA() </action> Plugin 1: (anotherplugin.xml) <action name="dosomething" scope="local"> doB() </action> in tour.xml, we have <include url='simpleplugin.xml' /> <include url='anotherplugin.xml' /> <action name="dosomething" scope="local"> doC() </action> What happens is that the functionality of ...
Hi San7 (and others), About mouse handling (and gestures too)... In my drone example (https://krpano.kri-soft.be/examples/drone/) I have used the following: Left click: Rotate Left click + Control: Zoom in (basically adjust view.oz) Left click + Shift: Move model (adjust x/y/z depending on viewing angle) Double click: zoom + recenter Mouse wheel up/down: Zoom in (same as left click + control) Right clicks: None I notice that sketchfab has the same, but adds some right clicks too: Right click: mo...
Bug replication: https://krpano.kri-soft.be/examples/soundbug/ Just load the pano and click the button or drag the pano around. Basically, when calling resumesound or any other sound action when there was no user interaction yet, multiple sound references will be created and when the user finally interacts with the panorama, ALL are played (LOUD !!! )
After some testing, I'm pretty convinced there is a bug with the sound interface. When you call any sound action (for example resumesound()) too fast after playsound_at_hotspot(), the reference to the sound is created/duplicated. If you call many actions before the playsound_at_hotspot() is completed, MANY sounds will be created/playing, causing high volume/cracking. As your tour is doing that (because it has it in onframechanged()), you have a big chance of encountering this. Edit: the above is...
Hi Niko, A few things I notice in your sample project: 1) the play/stop will never work -> the hotspot you are using to stop/play is in view and as a result when the sound is stopped, it will get resumed immediately (because in the onviewchange() will check if hte hotspot is visible and if so, will resume play) I would suggest to put the play/stop in a seperate hotspot than the one you need to play the audio from (so one hotspot that is the start/stop button and another hotspot that is the sourc...
Nice tour! Hope we can make that sound play work out. I'll have a look at your sample...
About the volume and noise: In your code you have Source code 1 for(set(i,0), i LT hotspot.count, inc(i) How many hotspots do you have? Because for each hotspot in the scene, you will start resuming/resuming the same (ufer) sound based on their visiblity. So if you have many hotspots around the scene, they will be fighting for resuming/pausing the sound multiple times... kme
I created an update to the example to play sound: https://krpano.kri-soft.be/examples/getlooktodistancesound/ The volume seems to be good when using play/pause/resume. Do you have a (temporary) place where we can have a look at your tour and code?
Hi, See an old post of mine (and some comments below) with an example too: https://krpano.com/forum/wbb/index.php?p…89003#post89003 But instead of changing color, you can use pausesound()resumesound() If you want more info, getlooktodistance is your best keyword to search for more information in this forum. regards, kme
Quoted from "San7" Quoted from "kme" Quoted from "San7" right click - drag/rotate the model Given your description, I would hav expected drag/rotate to work with right click... Hope you can do more tests, we need to showcase more what krpano can do! gr, K. Yes, I made a mistake, the left key. On mobile, unfortunately, there is no right click) And the main emphasis is that I can change the center of rotation of the model and consider any place Maybe drag by using 2 fingers? 1 finger = rotate 2 f...
Quoted from "San7" right click - drag/rotate the model Given your description, I would hav expected drag/rotate to work with right click... Hope you can do more tests, we need to showcase more what krpano can do! gr, K.