本文介绍了一个框架。放大滚轮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经查看过官方文档,但是无法找到有关放大/缩小全景图片的可能性的信息,A-支持它框架还是有解决方法,以了解有关在其顶部实现某些 three.js 的解决方法?

I've come through the official docs but wasn't able to locate information about how possibility of zooming in/out panorama images, is it supported in the A-Frame or maybe there is a workaround to read about implementing some of three.js on top of it?

推荐答案

您可以:


  1. 缩放一个< a-sphere> 在检测到鼠标滚轮事件时向上或向下

  2. 放大或缩小摄像头,如记录的

  1. Scale an <a-sphere> up or down when detecting the mouse wheel event
  2. zoom in or out the camera, like documented here

可能会有所帮助,因为它涵盖了在多个浏览器上使用mousewheel事件。

This article might be helpful, as it covers using the mousewheel event on multiple browsers.

我认为扩展可能会破坏您的设置,或者浪费资源,所以我会选择2。

I think scaling may screw up Your setup, or be a resource waste, so I'd go with 2.

这篇关于一个框架。放大滚轮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 00:09