Text2D quality problem

Well, as I said. It happened by accident. So it is not really a solution. The change, that did the trick, was in org.xith3d.ui.hud.base.WidgetAssembler. This class assembles a Widget from existing ones. It holds a TransformGroup that is added to the Widget’s main group. A Widget’s background Image is added to this WidgetAssembler. The WidgetAssembler’s TransformGroup was added to to Widget’s group at initializing phase, which is later than the construction phase. This delay was not necessary in this case, so I decided to do it at construction time.

I moved this line:


ownerGroup.addChild(this.transformGroup);

from the init method to the constructor. And voila, all Labels looked just fine. So I guess it has something to do with the order of the HUD system’s TransformGroups. But I really don’t know, why this is the case.

I hope, this helps you. Maybe you can see, why this happens…

Marvin

Yes, thanks, any information can be helpfull…!

Sorry Marvin, just one more question on that mater (sorry for annoying… ::)), the question I posted earlier before:
http://www.java-gaming.org/forums/index.php?topic=14575.msg115497#msg115497

Thanks,
Bohdan.

You’re not annoying me. So don’t worry. And sorry for the late anwser, I was an a short holiday for the weekend.

I’ve eliminated this OrderedGroup. Maybe one could replace the z-translation with an OrderedGroup, when one had actually understood it ;). It was for ordering the “components” or parts of a Widget, which is assembled by other (simpler) Widgets. Maybe I’ll put the OrderedGroup back into the system. But for now it is gone.

Marvin

Thanks, Marvin! Satisfied with your answer ;D (simply was worrying about those OrderedGroups, and agree with your decision to go away from them)