JYB> The good solution might be to draw using the postRender but in
JYB> the back buffer, just before the swap.
JYB> The question is "How to draw in the back buffer ?".
JYB> Is it a good question or idiotic question ?
As i know u can't access offscreen image in Java1.1.2, but
they implemented this feature in Java1.2, so u'd better use that
version then.
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
JYB> Hello,
JYB> I am trying to write a Rect in MyCanvas3D after each rendering, using Graphics
JYB> method :
JYB> public class PkCanvas3D extends Canvas3D
JYB> {
JYB> public PkCanvas3D() {
JYB> super(null);
JYB> }
JYB> /*public void postRender() {
JYB> Graphics graph = this.getGraphics();
JYB> graph.clearRect(50, 50, 250, 250);
JYB> } */
JYB> public void postSwap()
JYB> {
JYB> Graphics graph = getGraphics();
JYB> graph.clearRect(50, 50, 250, 250);
JYB> }
JYB> }
JYB> My problem is :
JYB> - If I use the preceeding code, the rendering is flashing very much.
JYB> I supose it is because I write in the front buffer after the swap.
JYB> - If I put the drawing code in postRender() method, the drawing
JYB> does not remain on screen. I supose it is because the swap erase
JYB> my drawing.
JYB> The good solution might be to draw using the postRender but in
JYB> the back buffer, just before the swap.
JYB> The question is "How to draw in the back buffer ?".
JYB> Is it a good question or idiotic question ?
JYB> I already saw a close question in the archives but with no answer.
JYB> Thanx a lot to my future saver. :-)
JYB> ===============================================
JYB> Jean-Yves Brud M�l: [EMAIL PROTECTED]
JYB> ===============================================
===========================================================================
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".