Skip to content

stoensin/AV_R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published