Hi,

   From the line number, this happen when one of
brainImages[i].getColorModel() == null.

Thanks.

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

>Date: Sun, 14 Apr 2002 15:47:16 -0400
>From: Vijayaraghavan Rajagopal <[EMAIL PROTECTED]>
>Subject: [JAVA3D] ImageComponent
>To: [EMAIL PROTECTED]
>Content-transfer-encoding: 8bit
>Delivered-to: [EMAIL PROTECTED]
>
>Hi,
>
>I have an array of RenderedImage, brainImages. I am trying to get the
ImageComponent3D calling the constructor
>ImageComponent3D(ImageComponent.FORMAT_RGBA,brainImages)
>
>I get a NullPointerException like this:
>
>Exception occurred during event dispatching:
>java.lang.NullPointerException
>        at javax.media.j3d.ImageComponent3DRetained.set
(ImageComponent3DRetained.java:64)
>        at javax.media.j3d.ImageComponent3D.<init>(ImageComponent3D.java:118)
>        at BrainGUI.actionPerformed(BrainGUI.java:168)
>        at java.awt.MenuItem.processActionEvent(MenuItem.java:526)
>        at java.awt.MenuItem.processEvent(MenuItem.java:490)
>        at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:266)
>        at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:256)
>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:336)
>        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:1
26)
>        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
>        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
>
>I get a similar message when trying to use ImageComponent2D for a single
brainImage.
>
>Would someone be able to help me with this? I am using Java1.2.1_04. The
documentation said I could use RenderedImage. I am trying to load up images of
the brain into a Java 3D application.
>
>I would really appreciate the help
>
>Thanks
>Vijay
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas. Experience
the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.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