Flash / JavaScript:非360(部分)全景浏览器 [英] flash/JavaScript: non 360 (partial) panorama viewer
本文介绍了Flash / JavaScript:非360(部分)全景浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
如果(camera.rotationY
if(camera.rotationY> maxRA)
camera.rotationY = maxRA;
到
私人函数calcCameraRotation()
自然是
private var minRA:Number = -180;
private var maxRA:Number = 180;
的参数。和
if(loaderInfo.parameters.maxRA)
maxRA = loaderInfo.parameters.maxRA;
if(loaderInfo.parameters.minRA)
minRA = loaderInfo.parameters.minRA;
到
private function processParameters()
会很好。但对我来说,这是工作。
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...
解决方案
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.
这篇关于Flash / JavaScript:非360(部分)全景浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文