Search code examples
javascriptflashpluginsphotoviewer

flash/JavaScript: non 360 (partial) panorama viewer


I'm searching for free partial panorama viewer. It should be placed in somewhere in the page and it should be customizable (openSource?). So far i found pan0.net but it only supports 360 and i have priority for non 360...


Solution

  • I just edited pan0 sources adding

    if (camera.rotationY < minRA)
        camera.rotationY = minRA;
    
    if (camera.rotationY > maxRA)
        camera.rotationY = maxRA;
    

    to

    private function calcCameraRotation()
    

    and naturally

    private var minRA: Number = -180;
    private var maxRA: Number = 180;
    

    by the parameters. And

    if (loaderInfo.parameters.maxRA)
        maxRA= loaderInfo.parameters.maxRA;
    
    if (loaderInfo.parameters.minRA)
        minRA= loaderInfo.parameters.minRA;
    

    to

    private function processParameters()
    

    Sure it makes it non 360 only but few if's and that would be good. But for me it does the job.