Beiträge von Timescale

    This isn't as hard as you think, but you will have to make sure the exposed back-end is safe and sane in PHP. The interface could look something like this :


    On the PHP side, you have a number of options, but it is important to make sure that it is secure because this interface is exposed to the world. There are plenty examples on how to do this properly, but essentially, you have to make sure that the PHP script isn't able to access and read/write in places where it shouldn't.

    DBIO.php can be build to both read and write from a database. In case of a non-null value and no ID, you could make it insert, With an ID and a value, do an update and with a ID and a null value, do a select.

    For returning data, you could simply return a string and parse it in JS. I tend to generate XML and return that for parsing, but that is a personal preference.


    A basic setup would look something like this. You can find most code snippets you need easily online.

    You can make this as simple or complex as you like, but the important part is the security of the interface. I'd advice to follow these instruction for the DBIO : https://phpdelusions.net/pdo

    A polygon does not use ATH and ATV because it is defined by a set of points, not a single position. You can set these variables i believe, but they will not influence the polygon itself.

    If you need the center of the polygon, you need to calculate it by adding all the vertical and horizontal coordinates for the polygon and divide that by the number of points. This will give you a average center of the polygon. With odd shaped poly's this does not always result in the desired effect. In this case you could manually set the desired point.

    A poly point ATH and ATV looks like this :

    Code
    hotspot[name].point[0].ath
    hotspot[name].point[0].atv
    hotspot[name].point[1].ath
    hotspot[name].point[1].atv
    hotspot[name].point[2].ath
    hotspot[name].point[2].atv
    etc....

    And yes!, you can do it all in javascript, either within an action which looks like this :

    Code
    <action name="polygonCenteredWeight" type="Javascript" ><![CDATA[
    
    
    	var variable = (args[1]); 
    	
    // your code here
    	
    	]]></action>

    Or as a function in between the script tag or a seperate library. A combination of actionscript and JS is also possible. Sometimes it is more convenient to gather all the data in actionscript before passing it to JS.

    Hi Everyone,

    A client wanted text on panels in-pano which, as you all can imagine is a terrible idea on smartphone screens! So I extended the flyout functionality with a Q&D zoom function, but certain panels zoom out of view. So now I need a way to move the zoomed in flown out image around.

    It it possible to offset a flyout hotspot in the X and Y direction? Standard flown out hotspots are centered on screen. I need to be able to move them.

    Thanks in advance.

    I think that transition like zoomblend but with support of transition direction will be good enough
    it is very hard to realize this blending type?

    If the hotspots and the pano's are aligned properly, the effect is almost identical.

    It's trivially easy. You can get the code from the examples on the KRpano site.

    same question,same atv and atv value,but hotspot postion has shifted

    Again, there are a lot of reasons why this could be happening. Without extra detail troubleshooting it is like a shot in the dark.

    Is the difference small? within 1 degree or large? How are the values stored? How does the query return floats? Are the types correct? Are points replaced by commas or the other way arround? Are you sure you sampled the correct ATH and ATV values at the right time? Example code perhaps?

    Without more info, it is nearly impossibly to guess what is going on.

    It is possible and there are a couple of forum threads that deal with this, but there are still issues with various browsers where it will not work due to the implementation of the imagebuffer of something like that. In Webkit browsers (safari/IOS), you won't get this to work for now.

    Should not be much of a problem. The pulsating effect could be set with a timer or interval and using tween on the size. The picture on hover could be as simple as a url attribute replace. I see no problem implementing such a feature in a webGL panotour.

    Another option of course is to animate the pulsating effect with a PNG animation.

    The information you provided is a bit sparse... Could you provide an example or some code that might be connected to the problem?

    It could be something very local, a cache problem or perhaps something else. Can,t be sure without more input.