glDrawPixels IN Xith3d?

Hi,

My group is currently looking to switch from Jogl (doing everything ourselves) to Xith3d (where a lot is done for us). Xith seems to fit all our needs, except for one thing,

In our old interface, we would use glDrawPixels to draw the UI (the HUD). Is this functionality still available. I know that Xith3d does HUD using JPanel, but in my experiences, support for that has been buggy.

Thanks,

Alex

I never had any problems with integration of the Swing GUI but it’s very slow…

I’ve used simple HUDs in Jack Flowers (mostly sprites display, and some static text) without Swing.

For static text I’ve used custom Graphics2D painting on a buffered image, than transfer to texture, than orthographic projection (through the View object).

For more dynamic text management I’m not sure my method would work well (but there are some Text2D and Text3D objects hanging around in the toolkit)

Lilian :slight_smile:

You may want to :

  • grab the code from Swing GUI to have a Quad always facing the view (and to forward the events)…
  • do your own code to translate glDrawPixels() instructions to Texture modification… (see Javadoc for more informations)