Rendering Vertical Text on the Surface of a 3D Layer #9560
Unanswered
modantailleur
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I had a similar issue trying to display text on the globe, like this. Since the text layer renders flat, I had to make one text layer per character to get it to have that curved look to it. As for the rotation to get the text to orient itself vertically relative to the deck surface, I cannot advise this but have subscribed to learn how do to the same thing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to render text along the side of a 3D column layer, but I haven't found a satisfying solution yet. Specifically, I want to display text vertically on the circumference of a column layer, so it appears as if it's "stuck" to the side surface of the column. I tried using
TextLayer
, but it doesn't quite achieve what I need. The issue is that the only rotation available withTextLayer
is around the z-axis viagetAngle
. While I could reactivate thebillboard
property, I want the text to remain fixed to the layer's surface — not rotating with the camera view. Below, I've included a minimal example demonstrating my best attempt so far. As you'll see, the primary issue is the lack of rotation control along the x and y axes.Here's the CodePen to visualize it: CodePen Example
And here's the full code:
I'm wondering if anyone has found a way to achieve this, perhaps using external libraries. I'd appreciate any guidance or suggestions!
Beta Was this translation helpful? Give feedback.
All reactions