Ok, I got the setBackdrop() to work
The problem apparently was the way I was retrieving the image file.
ImageIcon icon = new ImageIcon("background.png");
Image backgroundImage = icon.getImage();
This did not work
Image backgroundImage =
But this doesn't really help me completely. Ideally, I want the image to be
on a single rectangular plane that I can rotate.
From: MASON Multiagent Simulation Toolkit
[mailto:[log in to unmask]] On Behalf Of Sean Luke
Sent: Friday, September 22, 2006 2:26 PM
To: [log in to unmask]
Subject: Re: MASON-INTEREST-L Digest - 17 Sep 2006 to 21 Sep 2006 (#2006-56)
On Sep 22, 2006, at 5:14 PM, Ryan Kadomoto wrote:
> I tried the setBackdrop on the Display3D, but it didn't work quite
> If I use setBackdrop(image, true), it renders the graphic as a sphere.
> If I use setBackdrop(image, false), it gives me an error.
> (java.lang.IllegalArgumentException: Width (-1) and height (200)
> cannot be
> <= 0)
Ryan, this last statement is the one of particular concern to me.
I've just tested again and have no problems with setBackdrop. Can
you provide the full backtrace that came with this exception?