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".