Skip to content

Commit

Permalink
fix for the armchair example
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Jan 5, 2020
1 parent e4ab7d1 commit f36f635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
18 changes: 0 additions & 18 deletions examples/nft_improved_worker/nft_armchair_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,13 @@
<canvas id="canvas"></canvas>
</div>


<!--
==================
VIDEO
==================
-->

<video
loop
autoplay
muted
playsinline
id="arvideo">
<source src="../Data/video.mp4" type="video/mp4">
</video>


<a
href="https://raw.githubusercontent.com/artoolkit/artoolkit5/master/doc/Marker%20images/pinball.jpg"
class="ui marker"
target="_blank">
🖼 Marker Image
</a>


<script src="../js/third_party/three.js/stats.min.js"></script>
<script src="../js/third_party/three.js/three.min.js"></script>
<script src="threejs_worker_armchair_image.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions examples/nft_improved_worker/threejs_worker_armchair_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ function start(container, marker, video, input_width, input_height, canvas_draw,
var planeGeom = new THREE.PlaneGeometry(1,1,1,1);
var plane = new THREE.Mesh(planeGeom, mat);
plane.position.z = 0;
plane.position.x = 40;
plane.position.y = 40;
plane.scale.set(80,80,80);
plane.position.x = 90;
plane.position.y = 90;
plane.scale.set(180,180,180);


root.matrixAutoUpdate = false;
Expand Down

0 comments on commit f36f635

Please sign in to comment.