- Though the source is 1.4 compatible the build thats available has been built using 1.5 source compatibility. Unfortunately this means I can't use it against a 1.4 VM out of the box (since you get a class version in compatibilty) - just an irritation - have to rebuild everything

Sorry about that, we decided switching to 1.5 some time ago and even if the core doesn't use any 1.5 feature the toolkit does (Arne's picking code use generics)
- I wanted to use the JOGL based renderer - however the JSR 231 jogl libraries arn't included in the dependencies bundle from the website.
I thought I fixed that in 0.7.1... are you sure you have it ? 0.7.0 didn't include them, was my fault. (In 0.7.1 these are in the jogl directory, it's not called jsr231 or whatever).
- I then tried to use the LWJGL renderer which simply failed on the first render loop with:
1 2 3 4 5 6 7 8 9
| java.lang.NullPointerException at org.lwjgl.opengl.GL11.glGetInteger(GL11.java:1799) at com.xith3d.render.lwjgl.CanvasPeerImpl.renderStart(CanvasPeerImpl.java:285) at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:868) at com.xith3d.render.lwjgl.CanvasPeerImpl.render(CanvasPeerImpl.java:1035) at com.xith3d.scenegraph.View.renderOnce(View.java:616) at com.xith3d.scenegraph.View.renderOnce(View.java:549) at MD2Test.run(MD2Test.java:144) at java.lang.Thread.run(Thread.java:595) |
Which I believe means the display isn't created when you're attempting to make GL11 calls.
I don't know if the LWJGL renderer is still supported..
- The userinterface package seems to be broken (or its changed significantly since the MD2Test was written, entirely possible). However, I got no compile errors, everything looked fine. Only failed when calling setComponent(). If its not supported it any more I guess the examples using it should be removed?
The Swing UI package still works, I use it successfully. By "failed" you mean it throw an exception ? Here's the code I use :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| windowMgr = new UIWindowManager(graphic.getCanvas()); UIEventAdapter eventAdapter = new UIEventAdapter(windowMgr); graphic.getCanvas().get3DPeer().getComponent().addKeyListener(eventAdapter); graphic.getCanvas().get3DPeer().getComponent().addMouseListener(eventAdapter); graphic.getCanvas().get3DPeer().getComponent().addMouseMotionListener( eventAdapter); graphic.getCanvas().get3DPeer().getComponent().setFocusable(true); graphic.getLocale().addBranchGraph(windowMgr);
UIPanel uiPanel = new UIPanel();
panel = new JPanel(true); panel.setLayout(new GridLayout(1, 0)); panel.setSize(new Dimension(width, height)); panel.setOpaque(false); JLabel titleLabel = new JLabel("Stratagem"); titleLabel.setForeground(Color.WHITE); panel.add(titleLabel); FPSlabel = new JLabel("FPS = "); FPSlabel.setForeground(Color.WHITE); panel.add(FPSlabel); if (includeExitButton) { JButton exitButton = new JButton(); exitButton.setText("Capituler"); exitButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.exit(0); } }); panel.add(exitButton); }
uiPanel.setRoot(panel);
while(true) { windowMgr.newFrame(scene.getView().getTransform()); } |
Is Xith using an issue tracker that I can log these things in outside of that evil java.net thing?
I'm afraid there's not.. However if there is a cool Joomla! module for Issue Tracking I'll set it up happily.
Incidently, up and running now with fresh downloads of the JOGL libs. Refreshing to find the model loads happily and displayed exactly as I remember it

Oh, Marvin the Martian, how I love you

Hmm.. I spent some time fixing path issues in the OBJ/3DS/MD2 loaders.. at least it works now

(there had some problems with absolute/relative path, "\" or "/" separators, loading from jars, classpath and all these tricks..).