Hello i am new can someone tell me how can we achieve bridge text in threejs below i have attached a picture i want to make that text in 3d.
Would the text be static, and always just say “Bridge Text” for example - or users can input their own text?
2 Likes
Trigonometry can help
- Center a text on X-axis, coumpute its geometry’s bounding box, get box’s size.
- Having arc’s height and the text size, find arc’s radius by the equation for the circumcirle of isosceles triangle:
(a * a) / sqrt(4 * a * a - b * b)
, wherea
andb
are sides of the triangle. - Set Y-coordinate of each geometry’s vertex, interpolating it, having the circumcirle radius and vertex’ X-coordinate.
5 Likes
User will input their own text
Will this solution work in input field for a user