Vertex shader for ellipsed curve

Hello,

I’m trying to create a dynamic text as a mesh and make it curved on a certain axis.

I’ve made some progress but it’s not what I expected.

https://playcanvas.com/project/900653/overview/luistextmeshsandbox2

Basically what I want to do is make slightly ellipsed curve.
more like the below image.

Can anyone help me with the correct equation?

Thanks.

Hi @sooyong_Kim,

I think you are close, here is a helpful link with the base equation for that type of lines:

a and b will be constants which you can experiment with to find, y will be your final displacement on your up axis e.g. pos.z in your case, and x will be the position of the vertex in the axis that your text runs on e g. pos.y

Hopes that helps!

1 Like