You are not logged in.

Search results

Search results 1-20 of 940.

Wednesday, February 19th 2020, 5:30pm

Author: Zephyr

Difference between Javascript Interface and Plugin Interface

Thanks Klaus! Learned something new :) Flash support is not important for me. The secure flag, could be handy for development purposes to create a clearer indication in how actions should be used, but Im not that worried that people will call unintended actions via the Interface. I will use the 'global' approach

Monday, February 17th 2020, 12:15pm

Author: Zephyr

Split hotspot code and scene code

Quoted from "indexofrefraction" hm sorry... but ... does simple merging not work ? tour.xml <include name="hotspots" url="hotspots.xml" keep="true" /> <scene name="test"> </scene> hotspots.xml <scene name="test"> <hotspot name="myhotspot" ... /> </scene> Quoted from "a.pu" Made a quick check. Overriding seems to not work this way. Scene code is kept in one big string and interpreted at scene load. So when we have two scenes with same names but different code, krpano will load the one with more ...

Monday, February 17th 2020, 10:18am

Author: Zephyr

Split hotspot code and scene code

Hi Scott, The reason I want this, is because I have a client creating the tours via the krpano droplet. He can upload the whole tour to the ftp. Via a custom cms he can place the hotspots. The hotspots are served via hotspots.xml which is server side generated. This way we have a clear seperation of concerns. The client can just upload the tour without worrying. I couldve created something that servers the tour.xml but injects the hotspots serverside but I liked my current approach better. The c...

Sunday, February 16th 2020, 2:53pm

Author: Zephyr

Difference between Javascript Interface and Plugin Interface

It seems you can get the Plugin Interface by calling krpano.get('global') with the javascript interface.

Saturday, February 15th 2020, 8:48pm

Author: Zephyr

Split hotspot code and scene code

The loadxml gave me an idea: Source code 1 2 var sceneXML = 'loadxml(<krpano>' + krpano.get('scene[get(xml.scene)].content') + krpano.get('data[hotspots].content') + '</krpano>, , MERGE)' krpano.call('loadxml(' + sceneXML +" )') It create a xml string with the scene info from one data object (the scene) and hotspots from another

Saturday, February 15th 2020, 5:48pm

Author: Zephyr

Split hotspot code and scene code

Quoted from "Tuur" Hi Zephyr, long time no see! I think the only option is to get it all from an array.. with js or krpano. Tuur Hi Tuur, Im always lurking, not so much posting anymore :) Anyway, thats what Im doing now. I create one big hotspots.xml file, and then wrote a custom javascript that places the correct ones on scene load. Works fine, but just wondering if It was possible in another way. Quoted from "a.pu" Made a quick check. Overriding seems to not work this way. Scene code is kept ...

Saturday, February 15th 2020, 2:56pm

Author: Zephyr

1.20 regression - nested styles

You can combine several styles with a pipe | <hotspot name="myhotspot" style="style1|style2|style3" /> or <style name="style3|" style="style1|style2| /> <hotspot name="myhotspot" style="style3" />

Saturday, February 15th 2020, 2:51pm

Author: Zephyr

Split hotspot code and scene code

Hi all, Is it possible to have all the hotspots of different scenes in 1 file, and the scenes in another? Source code 1 2 3 4 <krpano> <include url="tour.xm" /> <include url="hotspots.xml /> </krpano> for example (not sure if this is possible) by merging scene tags Source code 1 2 3 4 5 6 7 <scene name='test'> <view fov="90" /> </scene> <scene name="test"? <hotspot url="poin.png" ath="0" /> </scene> or perhaps by setting a parent? Source code 1 <hotspot parent="scene[test]" /> atm I have a worka...

Saturday, February 15th 2020, 2:45pm

Author: Zephyr

Difference between Javascript Interface and Plugin Interface

Hi all/Klaus, When embedding krpano and using the onready callback, I get the krpano Javascript Interface returned. https://krpano.com/docu/js/#interfaceobject It contains 5 methods (get, set, call, spheretoscreen and screentosphere) If I want to add a hotspot, I need to do something like this: Source code 1 2 3 krpano.call('addhotspot(test)'); krpano.set('hotspot[test].ath', 0); // or krpano.get('hotspot[test]').atv = 0 When I approach it via the plugin interface way: Source code 1 2 3 4 5 6 <a...

Sunday, November 12th 2017, 11:03pm

Author: Zephyr

Determine viewable area/ bounding box

Hello all, I like to calculate the min/max vlookat and hlookat of the area you are viewing (the bounding box). I like to determine which hotspots the users sees. For example given a hfov and vfov of 90 (1:1 ratio), and a vlookat/hlookat of 0,0. I expect a bounding box of -45 45 45 -45 (West, South, East, North) So at first I thought it would be something like vlookat - vfov /2 and vlookat + vfov / 2 (same for hfov). But when you look down to 0, 90 you get coordinates like -45, 45, 45, 135 which ...

Monday, May 8th 2017, 11:09pm

Author: Zephyr

base64 image source in loadscene?

I'm not sure how to load base64 encoded image urls, but if you want to pre-fetch it. why not create an invisible image and load it's source? Source code 1 2 3 4 5 6 7 $.get("http://our-server.com/some-api").done(function(data){ var img = new Image(); img.onload = function () { alert("image is loaded"); } img.src = data.path } "

Friday, May 5th 2017, 9:45pm

Author: Zephyr

Too strong saturation in pano-file - how to lower it?

My best bet is that a tile mapped to a panorama using webgl or css3, triggers hardware acceleration in firefox and chrome. If you disable hardware acceleration in the browser, you should notice the a difference. https://support.mozilla.org/en-US/questions/976679 According to Klaus in https://krpano.com/forum/wbb/index.php?p…ad&threadID=905 color profiles as embedded data will be removed, and you'll need to covert the image to the right color profile ( Photoshop, Edit > Convert To Profile )

Saturday, November 12th 2016, 1:04pm

Author: Zephyr

hotspots in seperate file

Thanks Arthur, I was afraid it would be slower than regular xml parsing. What would be faster/more performant you think? Javascript krpano.call('addhotspot(stuff)") or through krpano actions?

Saturday, November 12th 2016, 12:15am

Author: Zephyr

hotspots in seperate file

Hi All, Is it possible to have hotspots in a different file than where your scenes are located? My goal is to generate the hotspots serverside, but leave the tour.xml intact from the droplet. Source code 1 2 3 4 5 6 7 8 9 10 <!-- tour.xml --> <include url="all_hotspots.xml" /> <scene name="test"> ... </scene> <scene name="test2"> ... </scene> I tried adding a parent="test" or parent="scene[test]" to the hotspot, Anyone got other ideas. I would be nice if I wouldnt resort to addhotspot onxmlcompl...

Wednesday, August 3rd 2016, 8:57pm

Author: Zephyr

zoom to fixed point

Hello, I know it's possible to zoom to your cursor, or to zoom to the center of the screen when you scroll your mousewheel or pinch on tablet. But is it possible to zoom in to a fixed point in the panorama. For instance if you have a big flat pano with a fixed point on a house, no matter where you are in the flat pano (top left conrner for instance), as soon as you srcoll or pinch, you go to the house (maybe in the bottom right) I could do it automaticly with zoomtohotspot, but Im looking for a ...

Monday, December 7th 2015, 2:06pm

Author: Zephyr

stock photos

Is there a place where I can buy stock 360 panoramas? Everywhere I look, it's either 'request a quote' (360cities) or the stock is limited (stock exchange, getty, depositphotos).

Thursday, September 10th 2015, 8:33pm

Author: Zephyr

krpano 1.19 - Pre Release 3

Hi Klaus, Ive discovered a possible bug. Givens this code: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 <krpano onstart="loadscene(demo)"> <scene name="demo"> <preview type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" /> <!-- Not showing on flash --> <style name="popup_hotspot_style" url="%SWFPATH%/skin/images/info.png" keep="true" /> <hotspot style="popup_hotspot_style" ath="-30" atv="0" /> <!-- Showing on flash --> <hotspot url="%SWFPATH%/skin/images/info.png" ath="30" atv...

Thursday, August 20th 2015, 10:50pm

Author: Zephyr

Krpano published on facebook tab

Just create a normal tour like you always do. Host it somewhere with a SSL certificate (so you have a https secure url). Go to developers.facebook.com and create an app (choose advanced setup) After you created an app, go to it's settings, click add platform button click pagetab fill in the secure url of your tour You need to add terms and conditions and your contact email too. If thats all done. To add it to your page, use this url: Source code 1 2 3 https://www.facebook.com/dialog/pagetab? app...

Monday, August 17th 2015, 10:57pm

Author: Zephyr

Example: iframes (or any other html content) as distorted hotspot

You create a local iframe which has the text and images and the youtube iframe in it (iframe within an iframe)

Monday, August 17th 2015, 10:54pm

Author: Zephyr

Make some letters one color while the rest of the text is another color

You could alsoo try some css: Source code 1 2 3 4 5 6 p{ color: red; } p:first-letter { color: blue; } Wouldnt work for Flash tours, but should work for html5