Xith and Swing

Hi, I’m new to the forum, and I’m also new to Xith.

I’m working on a game project, we’re still discussing the base structure, and I was checking about this Xith3D api. It looks pretty nice. Still, I’ve done some test with Java3D and I’m unable to do the same thing with Xith. I was wondering if there’s a way to integrate Xith INTO a swing template. Not swing into Xith I know it capable of.

J3D does it pretty well, but I like the “game loop” of Xith :slight_smile: Well, that’s it :slight_smile:

If what you mean is add a Xith canvas to a swing GUI, all you have to do is add the canvas to you JFrame, JPanel, whatever just like any other component.


CanvasPeer canvasPeer = renderPeer.makeCanvas(this, canvasWidth, canvasHeight, 32, true);

Where this is, in my case, a JPanel.

Oh! I see! Thanks!