three-text2d icon indicating copy to clipboard operation
three-text2d copied to clipboard

Render texture from canvas into THREE's Mesh or Sprite.

Results 14 three-text2d issues
Sort by recently updated
recently updated
newest added

ERROR:Uncaught (in promise) TypeError: Class constructor Fe cannot be invoked without 'new' three:r134 three-text-2d:dist/three-text2d.js

I suggest to target es6 in tsconfig to stay up to date with evolutions of browsers

https://github.com/gamestdio/three-text2d/blob/812e35c864767a7c95c6231236b9803dda258da8/src/Text2D.ts#L68 The member variable defineded to ```ts protected _text: string; ``` but the actual constructor puts the value on ```ts this.text = text; ```

Can i add backgroundImage ?

Three.js r125 introduces some breaking changes to BufferGeometry. In particular, [these](https://github.com/gamestdio/three-text2d/blob/master/src/MeshText2D.ts#L57-L61) lines will have trouble. I'm unsure about the rest of the repo. I created a post on StackOverflow [here](https://stackoverflow.com/questions/66874065/three-js-r125-buffergeometry-vertices-does-not-exist/66874728#66874728)...

In my browser, `SpriteText2D` with fontSize < 12px gets blurry, while other mesh objects is very sharp.

shadowBlur shadowColor shadowOffsetX shadowOffsetY params invalid!!!

the text created using MeshText2D is getting blurred and noisy when zooming in the canvas

Hello, Regarding this stackoverflow question: https://stackoverflow.com/questions/23508376/how-to-rotate-a-sprite-object-in-three-js I have noticed I couldn't modify the rotation of a sprite after it has been created. Would it possible to pass an extra parameter...

Hey, is there a way to get the SpriteText2D class elements recognized by a raycast? I tried pushing my SpriteText2D object into the object which should intersect. All THREE.Geometry objects...