Hi,

I've just upgraded to JDK 1.4.1, and Java3D 1.3, and my code throws a
"CapabilityNotSetException" exception when I try to set the string content
in a Text2D object. This does NOT seem to be the "wrong image size" problem
of recent memory...

Here's how I set up the Text2D:

...
  xAxisName = new Text2D( "", dkPrpl, "SansSerif", 72, Font.PLAIN );
  xAxisName.setCapability( Shape3D.ALLOW_GEOMETRY_WRITE );
  xAxisName.setCapability( Shape3D.ALLOW_APPEARANCE_WRITE );
  xAxisName.setCapability( Shape3D.ALLOW_APPEARANCE_READ );
  xAxisName.setCapability( Appearance.ALLOW_TEXTURE_READ );
  xAxisName.setCapability( Appearance.ALLOW_TEXTURE_WRITE );
...

And here's the usage:

  private void setXAxisName( String name )     { xAxisName.setString( name
); }

Here's the error message (reformatted):

javax.media.j3d.CapabilityNotSetException:
   Appearance: no capability to get texture at
     javax.media.j3d.Appearance.getTexture(Appearance.java:539)
at
     com.sun.j3d.utils.geometry.Text2D.setString(Text2D.java:118)       at
     com.astrazeneca.rd.VisCore.VisRenderer.AZRenderer.setXAxisName
      (AZRenderer.java:775)

I've set whatever capabilities I can related to Appearance and Texture, yet
the error persists. It does not seem that the Text2D sets this capability in
it's definition, either. Can someone please help me out and tell me what's
going on?

thanks,

jp

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