Hi Daniel,

  Bug 4672391 -
  ImageComponent2D/3D getImage() throws ClassCastException for non BufferedImage

is submitted for this.

Thanks for your bug report.

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


>Date: Sun, 21 Apr 2002 21:35:26 -0600
>From: Daniel Selman <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Bug using JAI with Java 3D 1.3 B1?
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Content-transfer-encoding: 7bit
>Importance: Normal
>X-Priority: 3 (Normal)
>X-MSMail-priority: Normal
>Delivered-to: [EMAIL PROTECTED]
>
>All,
>
>Clarification:
>
>The stack trace I initially posted is misleading, as I was mistakenly
>calling ImageComponent2D.getImage, however even if you call
>ImageComponent2D.getRenderedImage you can see that the call gets delegated
>to ImageComponent2DRetained.getImage which assumes it can cast to
>BufferedImage.
>
>Exception occurred during Behavior execution: java.lang.ClassCastException:
>javax.media.jai.RenderedOp      at
>javax.media.j3d.ImageComponent2DRetained.getImage(ImageComponent2DRetained.j
>ava:339)        at
>javax.media.j3d.ImageComponent2D.getRenderedImage(ImageComponent2D.java:298)
>at MultiTextureTest.updateData(MultiTextureTest.java:362)
>
>My next problem is what can I DO with an instance of
>java.awt.image.RenderedImage (RenderedOp) if I can get one? It appears that
>BufferedImage is the only WRITABLE image  anyway, so even if I get a
>RenderedImage back inside my updateData method how would I modify it? My
>previous code was using a BufferedImage and simply getting a Graphics2D from
>the BufferedImage and manipulating it. I am trying to use JAI to generate
>procedural BYREF textures, updated from within a behavior using
>ImageComponent2D.updateData.
>
>Is this a problem integrating JAI and Java 3D? Any thoughts, experience and
>guidance much appreciated.
>
>Sincerely,
>
>Daniel Selman
>
>Author - "Java 3D Programming"
>http://www.manning.com/selman
>
>-----Original Message-----
>From: Discussion list for Java 3D API
>[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Selman
>Sent: Sunday, April 21, 2002 9:12 PM
>To: [EMAIL PROTECTED]
>Subject: BUG: using JAI with Java 3D 1.3 B1?
>
>
>All,
>
>I am using JAI to generate some procedural texture images and I am getting
>the following exception:
>
>java.lang.ClassCastException: javax.media.jai.RenderedOp        at
>javax.media.j3d.ImageComponent2DRetained.getImage(ImageComponent2DRetained.j
>ava:339)        at
>javax.media.j3d.ImageComponent2D.getImage(ImageComponent2D.java:275)
>
>Java 3D appears to be assuming that the image is a BufferedImage. It is a
>javax.media.jai.RenderedOp instance (which implements
>java.awt.image.RenderedImage).
>
>Is this a bug, or am I doing something wrong?
>
>Thanks,
>
>Daniel Selman
>
>Author - "Java 3D Programming"
>http://www.manning.com/selman
>
>===========================================================================
>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".

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