# AVR2 **Repository Path**: atoxz/AVR2 ## Basic Information - **Project Name**: AVR2 - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-01-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### VR Usage github:https://github.com/guoguicheng/AVR.git [default para setting] vrbox={radius":50, "widthSegments":100, "heightSegments":100,"width":50,"height":50,"depth":50} --radius/widthSegments/heightSegments //球体作为投影仪时球形的参数 --width/height/depth //六面体作为投影仪是六面体的参数 cameraPara={"fov":90,"aspect": window.innerWidth/window.innerHeight,"near":0.001,"far":1000} //摄像机参数 cameraPosition={"x",0,"y":0,"z":0} //摄像机位置初始化 AVR_GOL //global settings --debug=false;//在pc上调试手机网页 --useGyroscope=true;//使用陀螺仪 vr=new VR(scene,renderer,container) settings: --vr.playText="";//vr视频播放按钮样式或文字 --vr.playVideoTip=obj;//创建vr播放按钮对象返回btn和tiparea vr.init(); //播放全景图片 vr.playBoxPanorama(url);//picture only //或播放全景图片或视频 vr.playPanorama(url,type);//suport panorama picture and video ### AR ar=new AR(scene,renderer,container); settings: --ar.frameRate=60; //视频码率 --ar.openAudio=false;//不开启录音 --ar.cameraIndex=1;//前置摄像头 ar.init() ar.play()