Does anyone have any suggestions on how I should create a overlay to my 3d screen. So I can draw things on like buttons and genrally a user interface that is not in 3d. I assume the canvas3D is heavy weight so I cant just paint over that can I? I don’t want all my functionality on the side of the screen I want it in the action.
Check out the UIWindow stuff. There is a swing demo in the demos section that shows how to use it to create a FPS counter. Check that out, it’s a good starting point.
Sidenote, there are some “issues” with the overlay system that I’m not sure will get fixed anytime soon… do a search on this forum for lots of posts in regaurds to it.
Hi,
[quote]Sidenote, there are some “issues” with the overlay system that I’m not sure will get fixed anytime soon…
[/quote]
If you find an issue that you think is a bug in Xith3D, please, please, please make a short test case and we will try to fix this.
Yuri
I was thinking specifically about the “Focus” issues that go with the Overlay.
The original thread by Stefan:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1079039524
That’s the biggest problem I have with the overlay. The other issue is the “text distortion” which I also had a thread on somewhere, created a test case, and had some others verify. It appears to only squish the text in Windowed mode. I believe there is an old bug logged on that point already.
Windowed mode distortion of text appears to be caused by saying you want say an 800x600 window… Xith does all its overlay caculations based on 800x600 but because of window decoration the size isn’t actually that which causes the text to get mucked up.
Either make sure the inner canvas is the right size or make the window undecorated.
Kev