Posts by pan2view

    My Hotspot is set to edge="top" - The atv and ath are both "0". I'm trying to get the central Ath and Atv of the hotspot using Hotspot[Hsname].getcenter(centerAth,centerAtv);

    As I understand it this should give me the Ath and Atv at the center of the image, instead it just returns the current ath and atv values. In other words, because the hotspot edge is set to top (the problem is the same for bottom) the returned values for get center are also adjusted to top. If this is not a bug it makes the function "getcenter" a bit useless because all it does is give me the hotspot coordinates, which you can always be called directly anyway.

    The problem is showing in Flash and HTML5, see HTML5 example here: http://www.virtualtuur.com/krpano/getcenter/1/


    Note: in the above example the hotspot edge is set to "TOP"

    - CLICK ON THE BLACK BOX TO TRACE THE RESUlT
    - PRESS "0" key to open the log


    THanks
    Y.S

    Thanks Klaus,

    I found something odd about this code. If I set "x" as the scene hotspot count to add to "n" it works, but if I just add the hostpot.count directly as follows : add(n,get(hotspot.count)); I get an error warning "actions overflow". What's more is that if I just replace "x" with any other variable name such as "m" or "hs_inc" I get the same error.
    Only "x" works and I just used that by luck. Is there any reason for this? I found this out because I thought it would be better not to use "x" as a variable because it is already used as the X coordinate in layers.

    Is this a bug or is there something wrong with my action?

    Thanks

    Hi,

    Is there a command I can call to return the total number of hotspots in a tour? Trace(hotspot.count) gives you all the hotspots in a scene but I couldn't find anything that counts up all the hotspots in all the scenes.

    Instead I wrote this action:

    <action name="count_hs">
    if( x === null, set(i,-1); set(n,0); sub(sc_num,scene.count,1); );
    if( i LT sc_num, inc(i); loadscene(get(i), null, MERGE); set(x,get(hotspot.count)); add(n,x); count_hs();, trace(get(n)); );</action>

    The above action works well enough but its a bit messy. Is there a better way to get the same result or is there even an equivalent command to "hotspot.count"?

    Thanks

    Hi,

    I noticed that the hotspot has to be enabled before it can have an onclick function - or before the onclick is active. However this property also determines the mouse actions for panning and titling. I.e an enabled hotspot also blocks the mouse from interacting with the pano.

    Is there anyway of making a hotspot responsive to its own onclick function without blocking the mouse/ pano actions? If any of you are familiar with FPP this would basically be a spot with usehandcursor=1 blockmouse=0

    Thanks
    Y.S

    Hi,

    Does a multires tour load faster than a normal tour - or does the preview image in the normal tour work better for bringing up the scene initially?

    The tour is not made with hires images, in multires it hardly zooms in 3 levels and the quality difference is negligible but I'm making a walk around tour with the panos about 5m appart and I'd like to keep up the quality while loading the scenes "space" as quick as possible. By that I mean it doesn't matter if the full scene is still loading when the user moves on - so long as they get the feel of it - as many scenes will just be used as jump points as they travel to their destination.

    MAny thanks
    Y.S

    Ah, I'm getting this on chrome as well. When should we expect the next release?


    In my code the plugin is generated on the fly and I'm finding it very difficult to write an onlcick function that will fire the same actions as the parent because the parent is getting its name from another plugin and is different each time. I don't mind waiting a few days, but if its months away I'll have to start rewriting the whole block.

    Thanks

    Hi,

    I'd like to make a set of tour templates that go on my server- using the "include" node I'm hoping to structure the tours so that the templates which don't need changing simply sit in one place - so that if I update them all the tours using the same interface are all updated simultaneously.
    These template xml files will also be embedded in an html file that calls the krpano flash and (if possible) the javaplayer as well. Again this is for easy updating of the software on a number of tours in one go.

    My questions : a) If a large number of tours (over 100) are linked from as many websites and are calling the same set of xml files and pngs images will this slow down the tours? or is the difference negligible and effectively dependent on the server bandwidth?
    b) Can anyone foresee any problems with this idea?

    Thanks
    Yaz

    Hello,

    Here's the thing I'm fond of using a lightbox rather than a link to open a tour in a new window. This is great on desktops and it hides the url of the pano - I've long given up hosting the pano files on the client server because it makes them go all funny in the head.

    The problem is that a lightbox is bad for a tablet pc and even worse for mobiles. What I would like to do is embed a bit of java-script along with the lightbox link which will disable the lightbox when accessed on any mobile / tablet devices (I'm using fancbox - but I'm happy to switch if necessary).

    So far I've understood that it may be done with screen-size, but if it is possible to detect the device like krpano seems to do so effectively then I guess that would be better. The problem I'm having is not the choice of method but I don't know how to write the script myself. So if possible could someone please direct me to a website where I can copy a working example or maybe one of you guys could be so kind to write it for us? Kluas?? :)

    Many Thanks
    Yaz

    Hi
    I understand how to use the font tag within the html. However if I choose to use a data tag instead in the specific instance of using my own defined css (i.e .inputtxt) the krpano flash player responds normally but the iphone/pad java player ignores such class selectors.

    So my question is: Am I missing a trick somewhere? is there a way of writing the class selectors so that they work on the iphone/ipad? or is this a known limitation of the iphone player?

    Example:

    Code
    .input      { text-decoration:underline;  color:#0000FF;  font-weight:bold; text-align:center;}


    >> Works on flash player only

    Code
    p      { text-decoration:underline;  color:#0000FF;  font-weight:bold; text-align:center;}


    >> works on both players (all devices) but I'm restricted to <p>


    If it is a limitation or bug will it be fixed? or is the font tag the solution to this problem?

    I should explain. I plan to input a lot of data into the html display. It will display a different set of information for each spot that is clicked. If I use the font tag it will not just be untidy, I will have to double or triple up the inputs for each spot (one for iphone larger text less info - for flash and possibly for pads). So I would much prefer to store the different styles just once in a set of css data tags instead.

    Many Thanks
    Y.S

    I feel I should read up on some html basics. The above fix seems to have a drawback or a bug, I've lost the center alignment on any text in my custom tags.

    Any advice on this would be appreciated - but it appears that the best thing to do would be to use the untidy font tags.

    OK,

    I fixed it! No need to worry. In case its of use to anyone else - my html is not great so I don't know if this is normal anyway - but if you just create any tag just as you would for the standard "p" and "a" without the use of class="", these can be included and they work on both players.

    Example

    css:

    catagory {color:#1706b5; font-family:BankGothic Lt BT; font-size:18;}


    html:


    <catagory align="center">

    Medium

    </catagory>

    Hi,

    I'm trying to add some css to the text and the Iphone player can't read it. I've added my own css class to distinguish the title text from the content. The flash player understands this but the iphone player appears to be confused. Here is an example:


    p {color:#FF0000; font-family:BankGothic Lt BT; font-size:18;}

    input {color:#000000; font-family:Times New Roman; font-size:14;}


    Note, if I use the standard/ predefined css tags (e.g "p" or "a") It works fine on both players. The problem is that that doesn't allow me to make a distinction in the content. I wondered if there was any other way of writing the css above so that the iphone player can read it. Is there an alternative to the (.) used above to define the class?

    This may seem necessary because I could use H1 for the title and I guess this would work, but usually that created breaks between the text and (especially on iphone) I need to conserve space.

    Also, I want to avoid using the font tags within the htmldata because.... its untidy (forgive me)


    Thanks

    Hi,

    I noticed you said above that you tried it on movequality="Low" , but in the xml link it is set to high. If you've already tested on LOW then I'd recomend reducing the cube face size or doing it in multires.

    Otherwise this is the advice:

    movequality10="LOW"

    movequality="LOW"

    Or try it with "High", but your still image quality is so high anyway I suspect you'll have to go to low. It will not look as nice but it will be smooth and the audience does not focus in on a moving image so you get license to let the quality slip during panning. It should bump back on on pause and it won't be noticeable.


    Also since the movements is fairly slow, it may well be fine on the "High" setting.


    Yaz

    Amazing panorama man!

    Just a thought. Are you using any updatecalls? I haven't looked at the xml file, but since its an autotour you probably have on-done calls and maybe accidentally set it as an updatecall - which comes with this ominous warning

    • WARNING - use with care! when heavly used this can reduce the rendering performance!

    My krpano knowledge is limitted but that's where I would look first.

    Hi,

    (I'm reposting this from the Viewer pages, I just found this section of the forum)

    I'm having trouble getting the dimensions of images to match. To speed up loading I've used a low quality preview image for a flyuot and I've added a high quality plugin to blend in with a delayedcall().

    Tour
    http://p2vhost.pan2view.com/tests/ipad/tour.html

    Code:

    div(screen_sideaspect, stagewidth, stageheight);
    div(hotspot_sideaspect, hotspot[%1].width, hotspot[%1].height);

    if(screen_sideaspect LT hotspot_sideaspect,

    set(hotspot[%1].width,80%);
    set(hotspot[%1].height,prop);
    ,

    set(hotspot[%1].width,prop);
    set(hotspot[%1].height,80%);
    );

    set(plugin[%1].width,get(hotspot[%1].width));
    set(plugin[%1].height,get(hotspot[%1].height));


    XML
    http://p2vhost.pan2view.com/tests/ipad/tour.xml

    Cheers
    Y.S

    Hi,

    I'm having trouble getting the dimensions of images to match. To speed up loading I've used a low quality preview image for a flyuot and I've added a high quality plugin to blend in with a delayedcall().

    Tour
    http://p2vhost.pan2view.com/tests/ipad/tour.html

    Code:

    div(screen_sideaspect, stagewidth, stageheight);
    div(hotspot_sideaspect, hotspot[%1].width, hotspot[%1].height);

    if(screen_sideaspect LT hotspot_sideaspect,

    set(hotspot[%1].width,80%);
    set(hotspot[%1].height,prop);
    ,

    set(hotspot[%1].width,prop);
    set(hotspot[%1].height,80%);
    );

    set(plugin[%1].width,get(hotspot[%1].width));
    set(plugin[%1].height,get(hotspot[%1].height));


    XML
    http://p2vhost.pan2view.com/tests/ipad/tour.xml

    Cheers
    Y.S