Hey,
Is there anyone out there who has done work with Java3D in fullscreen exclusive mode?
I have an application which mixes 3D and 2D by displaying a Canvas3D among other AWT and Swing components. That all works fine, but I would like to move it to the fullscreen exclusive mode provided by Java 1.4.
I have tried creating the Canvas3D as an offScreen canvas and on each pass of the render loop (I’m using active rendering and would prefer to do so if possible) I call renderOffScreenBuffer() and waitForOffScreenRendering() and then I use getImage() to grab a BufferedImage which I then draw to my Graphics object from the Bufferstrategy. (phew, long sentence, but I hope you’ll get my drift…)
It works, but much too slowly. I get no more than 3-4 FPS on a 2.6Ghz P4, which of course is not enough for any practical use.
Does anyone know of a better way to do this? Is there a faster way to get an image from an offscreen Canvas3D.
Any suggestions or ideas highly appreciated.
Thanks,
D