Experience-Monks / three-bmfont-text

renders BMFont files in ThreeJS with word-wrapping
http://jam3.github.io/three-bmfont-text/test/
MIT License
786 stars 169 forks source link

Centering the geometry produces an artifact on the end #40

Open kyma opened 3 years ago

kyma commented 3 years ago

This is working nicely, but the geometry is flipped and off-center. I can rotate the mesh to correct the first, but if I call geometry.center(), I get an artifact like a triangle is missing from the end

Screenshot 2021-02-11 at 11 10 10
gusvogel commented 3 years ago

I've encountered this too. I also flipped the text. It looks like just one triangle on the end didn't get formed or something. If I continue to use this for my project I'll try to dig into it

blairexico commented 2 years ago

Any one find a fix for this? geometry.center() does the same thing for me.. also, I see this error in console: index.js:103 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.