1

I get an issue with text inside sprite materials. I use this code : https://github.com/stemkoski/stemkoski.github.com/blob/master/Three.js/Sprite-Text-Labels.html

It works but if text is too long, text is truncated :

Result

I tried to increase canvas width but text become too small, I can't understand why.

Mahmudur Rahman
  • 640
  • 1
  • 6
  • 23
zoic21
  • 33
  • 4
  • I think what you need to do is set the size of the canvas `canvas.width = textWidth;canvas.height = textHeight;`. Have a look at the code [here](https://stackoverflow.com/questions/44026172/show-table-in-sprite-using-three-js) – Mahmudur Rahman Dec 22 '17 at 15:04
  • 1
    Yes this code works perfectly tank a lot – zoic21 Dec 22 '17 at 15:36

0 Answers0