Hi,
I wrote a couple of e-mails asking about 3D texturing. I was able to figure out the
last two problems myself. But I seem to be having another glitch. I get an
ArrayOutofBoundsException when attaching an appearance to a shape3D object. The
appearance holds a Texture3D texture image. I got this texture by collecting 16 NEMA
files and storing them in a BufferedImage array. I then used this to get a
ImageComponent3D . I have setup a cube with TexCoordGeneration class object for the
texture co-ordinates.
Here is the error message:
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException
at javax.media.j3d.TextureRetained.scaleImage(TextureRetained.java:2439)
at
javax.media.j3d.TextureRetained.createNextLevelImage(TextureRetained.java:2395)
at javax.media.j3d.TextureRetained.initMirrorObject(TextureRetained.java:1950)
at
javax.media.j3d.TextureRetained.createMirrorObject(TextureRetained.java:1849)
at
javax.media.j3d.NodeComponentRetained.doSetLive(NodeComponentRetained.java:59)
at javax.media.j3d.TextureRetained.setLive(TextureRetained.java:951)
at javax.media.j3d.AppearanceRetained.setLive(AppearanceRetained.java:913)
at javax.media.j3d.Shape3DRetained.doSetLive(Shape3DRetained.java:1051)
at javax.media.j3d.Shape3DRetained.setLive(Shape3DRetained.java:877)
at javax.media.j3d.GroupRetained.childDoSetLive(GroupRetained.java:2083)
at javax.media.j3d.GroupRetained.doSetLive(GroupRetained.java:2132)
at javax.media.j3d.GroupRetained.setLive(GroupRetained.java:2075)
at javax.media.j3d.GroupRetained.childDoSetLive(GroupRetained.java:2083)
at javax.media.j3d.GroupRetained.doSetLive(GroupRetained.java:2132)
at javax.media.j3d.BranchGroupRetained.setLive(BranchGroupRetained.java:161)
at javax.media.j3d.Locale.doAddBranchGraph(Locale.java:206)
at javax.media.j3d.Locale.addBranchGraph(Locale.java:163)
at
com.sun.j3d.utils.universe.SimpleUniverse.addBranchGraph(SimpleUniverse.java:356)
at Brain3D.<init>(Brain3D.java:163)
at AppGUI.actionPerformed(AppGUI.java:105)
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:126)
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 would really appreciate the help....atleast give an indication as to where I should
look in order to get a better understanding of these errors.
__________________________________________________________________
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".