I utilized the QRcode library available at to try and showcase it on a mesh object as a texture using the following code:
var qrcode = new QRCode( "test", {
text: "http://jindo.dev.naver.com/collie",
width: 128,
height: 128,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.H
});
...
var cuboidTexture = THREE.ImageUtils.loadTexture( qrcode );
cuboidTexture.needsUpdate = true;
However, I encountered this error:
Uncaught TypeError: Cannot call method 'appendChild' of null qrcode.min.js:1
Am I doing something incorrectly? Or is it not possible to use a QRcode as a texture in this manner?
EDIT: Even when using the qrcode.js library, the same error persists:
Uncaught TypeError: Cannot call method 'appendChild' of null qrcode.js:359