When I try to draw a Raster in immediate mode by calling
        gc.draw(raster);

I get the following exception when the scene is actually rendered.

java.lang.ClassCastException: javax.media.j3d.RasterRetained
        at
javax.media.j3d.GraphicsContext3D.doDraw(GraphicsContext3D.java:1614)
        at javax.media.j3d.Renderer.doWork(Renderer.java:313)
        at javax.media.j3d.J3dThread.run(J3dThread.java:256)

I also tried to attach different types of BufferedImages, but: no go. In the
forums and the archives I didn't find an answer as well.

Can anybody tell me how to work around this? If I am not allowed to use
gc.draw() for this purpose, then how can I build a tiny retained mode
environment with as little overhead as possible?

Or, can someone take a look into that source code line and tell me what is
going on there? (I think nobody can tell me where I can get the sources, can
you?)

-- Julian

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to