Skip to content

Commit c8b09d5

Browse files
committed
maybe this is more correct
1 parent 901c30d commit c8b09d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

three.js/examples/nft.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@
184184
root.matrixAutoUpdate = false;
185185
root.add(model);
186186

187-
model.position.y = 100;
187+
model.position.z = -100;
188+
//model.position.z = 100;
188189

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

0 commit comments

Comments
 (0)