I would like using the OrbitBehavior utility but I receive the next
message when i try to run my app:

java.lang.ArrayIndexOutOfBoundsException
         at
com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior.setViewingPlatform(ViewPlatformAWTBehavior.java:294)
         at
com.sun.j3d.utils.behaviors.vp.OrbitBehavior.setViewingPlatform(OrbitBehavior.java:406)
         at
com.sun.j3d.utils.universe.ViewingPlatform.addViewPlatformBehavior(ViewingPlatform.java:401)
         at
com.sun.j3d.utils.universe.ViewingPlatform.setViewPlatformBehavior(ViewingPlatform.java:431)
         at es.upm.eui.hdvt.animacion.Visor3.<init>(Visor3.java:89)
         at
es.upm.eui.hdvt.animacion.VisorAnimation.<init>(VisorAnimation.java:88)
         at
es.upm.eui.hdvt.animacion.VisorAnimation.<init>(VisorAnimation.java:75)
         at
es.upm.eui.hdvt.GUI.AnimationPanel.<init>(AnimationPanel.java:54)
         at es.upm.eui.hdvt.HDTVApplet2.init(HDTVApplet2.java:47)
         at sun.applet.AppletPanel.run(AppletPanel.java:341)
         at java.lang.Thread.run(Thread.java:536)

and some lines of my Visor3 class are:

OrbitBehavior orbitBehavior = new OrbitBehavior(canvas3D);   //88
viewingPlatform.setViewPlatformBehavior(orbitBehavior); //89
orbitBehavior.setViewingPlatform( viewingPlatform); //90


in the api says that I must use the
viewingPlatform.addViewPlatformBehavior(orbitBehavior) method but it is
not public!!


Can anybody give a code example. Thanks!





_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.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".

Reply via email to