I have question about the sizes:
var geometry = new THREE.PlaneGeometry(50, 50);
var plane = new THREE.Mesh(geometry, material);
plane.doubleSided = true;
plane.tile = tile;
So the question is : the sizes of PlaneGeometry, not in pixels right? When I have canvas aroun 500x500, it will be less than 50x50 in the end?
PS> One more question, how to get size of element when it's already added to scene? Thank you!
50x50 is not pixels. It's "units". Whatever you want a "unit" to be (it's relative to the size of other objects).
If you want to resize an object in a controlled way, you could do this:
var geometry = new THREE.PlaneGeometry(1, 1);
var plane = new THREE.Mesh(geometry, material);
plane.scale.x = 50;
plane.scale.y = 50;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With