SWT?

Can Xith3D be used with SWT? The Standard Widget Toolkit of Eclipse.

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1071766569

Thank you. I interpret this as there’s no ‘official’ effort to port Xith3D to SWT but there’s an interest so people are looking into it. The recent ability of SWT to incorporate Swing/AWT components maybe makes this a no-problem really?

This is more JOGL than Xith3D-related problem. If there is something like GLCanvas that can be embedded into SWT, it will be easy or even trivial to adapt CanvasPeerImpl to work with SWT.

Yuri

That’s true from a practical standpoint but why should Xith3D be limited to JOGL in principle?

I have the feeling Xith3D would be very wellcome in the Eclipse environment. To make sure it works there would help establishing Xith3D as THE highlevel 3D API. Why rely on Sun for that to happen? Wasn’t Xith3D a reaction to Sun’s neglect of Java3D? Why should Sun control Xith3D’s destiny?

First: Xith3D’s design is not limited to Jogl. An LWJGL port is possible. (I know someone has worked on it for a short time.)

Second: Jogl is Open-Source, so we don’t rely on Sun, which is one of the advantages of Xith3D over Java3D.

Okay, it’s fine to have possibilities, and I’m aware Xith3D is based on voluntary work so I probably should be contributing this rather than asking for it, but it’s important for me to know the state of affairs:

Is it possible right now to run Xith3D in an SWT window and if so how is it done?

I can’t help you with SWT, because I don’t use it. I just wanted to make clear that Xith3d doesn’t rely on Sun. Maybe you should try to ask your question in the Jogl forum.

I’ll do that. I’ve already asked at the Eclipse SWT forum but I just got an “it would be nice with 3D” answer.

I still consider Xith3D/SWT a very attractive combination. They’re both performance oriented and pragmatic. It would strengthen both.

does this help?

http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/opengl/opengl.html

Just guessing but a port of Xith to SWT would probably involve this.

I know about that but it’s only an experimental OpenGL binding. I had hoped for a more substantial “off the shelf” Xith3D/SWT solution.

It has recently become possible mix in Swing/AWT components in SWT. If that works then JOGL should work and Xith3D too. I guess this is my best option right now.

Link to related thread,

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1071766569