I am trying to implement animated cameras, but I am having a little
trouble. First, a camera really has no shape, so I implement the camera
as a TransformGroup. In order to make the call to getLocalToVworld(),
the node in question must be live. Well, if I don't put a shape
underneath the TransformGroup, then it never becomes live. Sounds like
good optimization, but I need to know the transform for this "undrawn"
entity.
I could put a Shape3D with a single point and then give it rendering
attributes to make it hidden, but that seems kludgy (BTW, this IS the
correct spelling according to dictionary.com). ;)
I even tried to make my own "EmptyNode", derived from the base class
"Node". But when I tried to addChild(), I got:
java.lang.reflect.InvocationTargetException:
java.lang.NullPointerException
at
javax.media.j3d.GroupRetained.checkValidChild(GroupRetained.java:393)
at
javax.media.j3d.GroupRetained.addChild(GroupRetained.java:406)
at javax.media.j3d.Group.addChild(Group.java:261)
... yadda yadda
Any suggestions??
J. Lee Dixon
SAIC - Celebration, FL
407-566-1438
[EMAIL PROTECTED] AOL: LeeOrlando
===========================================================================
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".