Hi Talal,
This bug is fixed in the upcoming Java3d1.2 beta release. In the meantime,
you will have to disable behavior to work around the problem.
Charmaine Lee
Java3D team
> X-Originating-IP: [129.10.36.112]
> Mime-Version: 1.0
> Date: Fri, 10 Dec 1999 21:30:10 EST
> From: Talal Shihabi <[EMAIL PROTECTED]>
> Subject: [JAVA3D] offscreen rendering
> To: [EMAIL PROTECTED]
>
> Hi,
>
> I am trying to do offscreen rendering in Java3d 1.2 alpha. The following
> exception is thrown when I set the offscreen flag to true in the Canvas3D
> constructor:
>
> java.lang.NullPointerException:
> at
> javax.media.j3d.VirtualUniverse.enableKeyEvents(VirtualUniverse.java:
> 432)
> at
> javax.media.j3d.WakeupOnAWTEvent.addBehaviorCondition(WakeupOnAWTEven
> t.java:97)
> at
> javax.media.j3d.WakeupCriterion.buildTree(WakeupCriterion.java:55)
> at javax.media.j3d.WakeupOr.buildTree(WakeupOr.java:57)
> at
> javax.media.j3d.BehaviorStructure.addBehavior(BehaviorStructure.java:
> 226)
> at
> javax.media.j3d.BehaviorStructure.insertNodes(BehaviorStructure.java:
> 216)
> at
> javax.media.j3d.BehaviorStructure.processMessages(BehaviorStructure.j
> ava:175)
> at
> javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.ja
> va:58)
> at javax.media.j3d.J3dThread.run(J3dThread.java:248)
>
> I examined the code carefully and couldn't find any direct reason. The
> problem disappears when I set the offscreen flag in the constructor to
> false. It also disappears when I use SimpleUniverse instead of
> VirtualUniverse.
>
> Did anyone encounter this problem?, any ideas about why is this happening.
>
> Your help is appreciated.
>
> Talal
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> ===========================================================================
> 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".
===========================================================================
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".