Re: how to transform objects not using Transform3D
Posted by
Mr. Broccoli on
Jul 26, 2022; 8:32am
URL: https://forum.jogamp.org/how-to-transform-objects-not-using-Transform3D-tp4041515p4041798.html
Mr. Broccoli wrote
To get a better feel of what is the camera position, zoom and rotation, I wanted to place a text that would display all parameters in the upper left corner of the window, but I'm struggling to display text that would change dynamically.
I thought that this would be a case of changing the variable value (so no need for setting by ref pointer - btw couldn't find applicable methods either), but I'm missing something (since it does not change on display).
I only tried with 'x' camera position initially (A, D keys change that).
I see that Text2D has 'setString' method, which put into updateData method works as desired, so instead of updating the string directly, I set it through Text2D object. The resolution though is awful and I need to dig a bit more to make it look nice and move it to a corner.