> Well that's ofcourse true if you add the background in intermediate mode
> you have to remove it from the Scenegraph or use a different background
> node (I would go for the later which is maybe easy) so just for testing
> add this line to preRender
>
> Background testBack = new Background(new Color3f(1.0f,1.0f,1.0f));
>
> and change
>
> this.getGraphicsContext3D().setBackground(....)
>
> to
>
> this.getGraphicsContext3D().setBackground(testBack);

Good morning,

well, that just makes no difference at all.

        scene.addChild(backgroundBg);
        Background testBack = new Background(new Color3f(1.0f,1.0f,1.0f));
        offScreenCanvas3d.setBackgroundNode(testBack);
        //u.setJ3DThreadPriority( Thread.currentThread().getPriority() );
        bImage = offScreenCanvas3d.doRender(dim.width, dim.height);
        backgroundBg.detach();

Only, when I remove my background node from the scenegraph I can print,
unfortunately with a black background and it leads to another exception:

Exception occurred during Canvas3D callback:
java.lang.NullPointerException
        at
javax.media.j3d.DrawingSurfaceObjectDSI.contextLock(DrawingSurfaceObj
ectDSI.java:33)
        at
javax.media.j3d.GraphicsContext3D.doClear(GraphicsContext3D.java:1540
)
        at
javax.media.j3d.GraphicsContext3D.clear(GraphicsContext3D.java:1502)
        at
gis.services.gis3D.OffScreenCanvas3D.preRender(OffScreenCanvas3D.java
:50)
        at javax.media.j3d.Renderer.doWork(Renderer.java:703)
        at javax.media.j3d.J3dThread.run(J3dThread.java:256)

Sorry, I do not really understand what is going on here.


Thanks Desiree

===========================================================================
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