问题
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