Login  Register

Re: How to make a multi-line Text3D?

Posted by philjord on Jul 11, 2023; 9:22pm
URL: https://forum.jogamp.org/How-to-make-a-multi-line-Text3D-tp4042759p4042765.html

Basti,
That looks great, I like the ability to change on the fly.
I've never used a Function or BiFunction so that was educational (I'm a bit old school, can't stand this new-fangled lambda nonsense).
The use of handing in a BiFunction sorts out the problem of needing a J3DGraphics2D, but also makes it a bit less encapsulated,
I assume you had to so that because my trivial stringLength is nothing like appropriate for the actual character widths.

One thing that intrigues me is why you went with a TransformGroup rather than just manipulating the position Vector3f for each line?

Phil.