Hi,

  This bug 4529746 -
 ViewingPlatform setViewPlatformBehavior throw Exception if Viewer not set before

is fixed in v1.3 beta2.

- Kelvin
--------------
Java 3D Team
Sun Microsystems Inc.

>Date: Thu, 13 Jun 2002 20:41:10 +0200
>From: portsacero <[EMAIL PROTECTED]>
>Subject: [JAVA3D] com.sun.....OrbitBehavior
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>Content-transfer-encoding: 7bit
>X-Accept-Language: es-es
>Delivered-to: [EMAIL PROTECTED]
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:0.9.4) Gecko/20011128
Netscape6/6.2.1
>
>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(ViewPlatformAWTBehav
ior.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".

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