Hi Alex,
Bug 4621872 - IllegalArgument if Texture is extends
without invoke non-default constructor
is submitted for this. To workaround it in
JMFTexture2D (which extends Texture2D class)
invoke the super constructor
public Texture(int mipMapMode,
int format,
int width,
int height)
or
public Texture(int mipMapMode,
int format,
int width,
int height,
int boundaryWidth)
instead of
public Texture()
Thanks for your bug report.
- Kelvin
-----------------
Java 3D Team
Sun Microsystems Inc.
>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>Date: Thu, 10 Jan 2002 07:37:39 -0600
>From: Alex Terrazas <[EMAIL PROTECTED]>
>Subject: [JAVA3D]
>To: [EMAIL PROTECTED]
>
>Hey-
>
>I was trying to make adapt the JMFRendering example by
>making the Texture2D implement VideoRenderer. I can't
>seem to find this Exception that I am getting. Attached
>is the code.
>
>Thanks--
>
>
>
>running on Windows 2000
>
>
>java.lang.IllegalArgumentException: cannot set image in default texture
> at
>javax.media.j3d.TextureRetained.initImage(TextureRetained.java:335)
> at javax.media.j3d.Texture.setImage(Texture.java:871)
> at JMFTexture2D.<init>(JMFTexture2D.java:112)
> at AnimatedTextureJ3D.createSceneGraph(AnimatedTextureJ3D.java:58)
> at AnimatedTextureJ3D.<init>(AnimatedTextureJ3D.java:84)
> at AnimatedTextureJ3D.main(AnimatedTextureJ3D.java:98)
===========================================================================
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".