-
Notifications
You must be signed in to change notification settings - Fork 0
AR and VR demo based on three.js
License
stoensin/AV_R
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
### VR Usage ### github:https://github.com/guoguicheng/AV_R.git <script src="build/three.min.js"></script> <script src="build/V_R.js"></script> var VR=new V_R(); VR.inclinationAngle=45; //External parameters V_R={ inclinationAngle:36,/*Set the angle of view, beta (vertical screen) or gamma (horizontal screen)*/ views : { left: [0.0,0.508], bottom: [0.0,0.0], width: [0.496,0.496], height: [1.0,1.0], background: new THREE.Color().setRGB(0.5, 0.5, 0.7), eye: [[-0.035, 0, 0],[0.035, 0, 0]], /*left carame position*/ viewAngleOffset:[-4.0,4.0], up: [0, 1, 0], fov: 75, near:1, far:10000, camera:[] }, helper:{ 'isPC':{ 'tip':'', },'isHorizontal':{ 'tip':'', },'isVertical':{ 'tip':'' } }, showTip:false } //note! Need to set parameters before V_R.init() V_R.update(scene,renderer);//update ### AR Usage ### <script src="build/A_R.js"></script> var ar=new A_R(); ar.showTip=true; A_R={ showTip:false, frontCamera:false, constraints={} } ar.init() ar.arScene(scene)
About
AR and VR demo based on three.js
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published