Sorry for the "doesn't work", would have been more polite to say "the preferred way is..." :-) I've tried your suggestion
and while this did not change the blitting artifacts concerning the text, I noticed an improvement in billboarded text (see attached image). Now I can either
Code Select
Config.texelFilter = false;
and while this did not change the blitting artifacts concerning the text, I noticed an improvement in billboarded text (see attached image). Now I can either
- print text to a BufferedImage and assign this as a billboard texture, as given in the image. this has the advantage that the labels are treated as normal object within the scene that move with their hosting objects (I figure I shall addChild() the labels). the disadvantage I can imagine is that this uses a lot of texture memory - even more so if I want to display high-res text.
- use Interact2D.projectCenter3D2D() and inverse camera transform on all wasVisible() objects of the scene, then see if that coordinate lies within the screen, then draw "over" the rendered jpct image with java2D which gives the qualitatively best results at the tradeoff of performance (since I have to go through every object once more)