提交 472d5845 编写于 作者: J Jerome Etienne

more work

上级 f576e9df
......@@ -190,6 +190,11 @@ AFRAME.registerComponent('artoolkitmarker', {
// var markerRoot = this.el.object3D;
// markerRoot.userData.size = this.data.size;
},
tick: function(){
if( this.data.changeMatrixMode === 'cameraTransformMatrix' ){
this.el.sceneEl.object3D.visible = this.el.object3D.visible;
}
}
});
//////////////////////////////////////////////////////////////////////////////
......
......@@ -1088,6 +1088,11 @@ AFRAME.registerComponent('artoolkitmarker', {
// var markerRoot = this.el.object3D;
// markerRoot.userData.size = this.data.size;
},
tick: function(){
if( this.data.changeMatrixMode === 'cameraTransformMatrix' ){
this.el.sceneEl.object3D.visible = this.el.object3D.visible;
}
}
});
//////////////////////////////////////////////////////////////////////////////
......
......@@ -20,18 +20,15 @@
<br/>
Contact me any time at <a href='https://twitter.com/jerome_etienne' target='_blank'>@jerome_etienne</a>
</div>
<a-scene embedded artoolkit='sourceType: video; sourceUrl:../../data/videos/headtracking.mp4;'>
<!-- <a-scene embedded artoolkit='sourceType: video; sourceUrl:../../data/videos/headtracking.mp4;'> -->
<!-- <a-scene embedded artoolkit='sourceType: image; sourceUrl:../../data/images/armchair.jpg;'> -->
<!-- <a-scene embedded artoolkit='sourceType: webcam;'> -->
<a-scene embedded artoolkit='sourceType: webcam;'>
<!-- <a-scene artoolkit='sourceType: image; sourceUrl:../../data/images/screenshot.png'> -->
<!-- <a-scene artoolkit='sourceType: image; sourceUrl:../../data/images/img.jpg'> -->
<!-- <a-scene artoolkit='sourceType: webcam'> -->
<a-marker preset='hiro'>
<a-box depth="1" height="1" width="1" position='0 0 0.5' material='opacity: 0.5; side:double; color:blue;'></a-box>
</a-marker>
<a-entity camera></a-entity>
<a-box depth="1" height="1" width="1" position='0 0 0.5' material='opacity: 0.5; side:double; color:blue;'></a-box>
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</body>
</html>
......@@ -10,7 +10,7 @@
Contact me any time at <a href='https://twitter.com/jerome_etienne' target='_blank'>@jerome_etienne</a>
</div>
<!-- enable artoolkit on this scene -->
<a-scene stats embedded artoolkit='sourceType: webcam; detectionMode: mono; maxDetectionRate: 30; canvasWidth: 240; canvasHeight: 180'>
<a-scene stats embedded artoolkit='sourceType: webcam; detectionMode: mono; maxDetectionRate: 15; canvasWidth: 240; canvasHeight: 180'>
<!-- define the object which gonna be put on this marker -->
<a-box position='0 0 0.5' material='opacity: 0.5; side: double'>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册