Layout of a 3D text rendered with TextRenderer

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Layout of a 3D text rendered with TextRenderer

Martin
Hi,

I am using TextRenderer which is working well, thanks!

I would like to apply left/right horizontal align to a text. I did it myself for 2D text, but doing it for 3D may require to customize the implementation of TextRenderer. Before doing so, I would like to ask if anybody did it before and has a suggestion for existing code to share?

Best
Reply | Threaded
Open this post in threaded view
|

Re: Layout of a 3D text rendered with TextRenderer

gouessej
Administrator
Hello

Which text renderer do you use?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Layout of a 3D text rendered with TextRenderer

Martin
In reply to this post by Martin
Hi Julien,

I am using com.jogamp.opengl.util.awt.TextRenderer which is demonstrated in demos.j2d.FlyingText demo. I haven't found any other TextRenderer class

I implemented 2D text here and it is working well.



I started 3D text here. I may continue doing the left/right layout myself but I am sure somebody addressed this before either with JOGL or with the help of AWT.

 

Reply | Threaded
Open this post in threaded view
|

Re: Layout of a 3D text rendered with TextRenderer

gouessej
Administrator
Actually, many engines and frameworks based on JOGL have their own text management. The legacy text renderer has some limitations, it doesn't support some profiles. I advise you to have a look at com.jogamp.graph too.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Layout of a 3D text rendered with TextRenderer

Martin
Hi Julien,

I looked at the graph package you mentioned which mainly seam to contain font related classes rather than text layout and rendering utilities. Did I missed anything?

If you know an existing framework/classes already handling text layout, I am interested by links :)
Reply | Threaded
Open this post in threaded view
|

Re: Layout of a 3D text rendered with TextRenderer

gouessej
Administrator
Reply | Threaded
Open this post in threaded view
|

Re: Layout of a 3D text rendered with TextRenderer

Martin
Did not think about this, thank you very much for the link!