flash/JavaScript: non 360 (partial) panorama viewer

夙愿已清 提交于 2020-01-07 03:59:24

问题


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...


回答1:


I recently created one where you can loop an image around horizontal 360 but it does not distort in 3d perspective. Let me know if that's what you are looking for: Web Design Panorama




回答2:


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.



来源:https://stackoverflow.com/questions/4592458/flash-javascript-non-360-partial-panorama-viewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!