How to display tQuery.World in a canvas HTML5

91 views Asked by At

i think it is as simple as it sounds, but i just can't find anything that can help me.

var canvas = document.getElementById("canvas");
var world  = tQuery.createWorld().boilerplate();
    world.start();

what should i do, to display it in the canvas?

1

There are 1 answers

0
Jerome Etienne On BEST ANSWER

you have to pass a renderer

var world  = tQuery.createWorld({
    renderer: new THREE.CanvasRenderer({
        canvas : canvas
    })
}).boilerplate();

something like that