Skip to content

Commit

Permalink
maybe this is more correct
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Nov 4, 2022
1 parent 901c30d commit c8b09d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions three.js/examples/nft.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@
root.matrixAutoUpdate = false;
root.add(model);

model.position.y = 100;
model.position.z = -100;
//model.position.z = 100;

window.addEventListener('arjs-nft-init-data', function(nft) {
console.log(nft);
var msg = nft.detail;
model.position.z = -(msg.height / msg.dpi * 2.54 * 10)/2.0; //y axis?
model.position.y = (msg.height / msg.dpi * 2.54 * 10)/2.0; //y axis?
model.position.x = (msg.width / msg.dpi * 2.54 * 10)/2.0; //x axis?
})

Expand Down

0 comments on commit c8b09d5

Please sign in to comment.