Hi,
I'm after creating and keeping track of a set of
lights (or other objects in the 3d world). i was intending to do this by
setting up an
array of say length 10
int[] = light new int[10];
and then setting them up and accessing them by
using
LinearFog light[1] = new
LinearFog();
I'm obviously doig something wrong as this
doesn't appear to work. Is there an easier way of setting things
up?
i had considered setting up and array of lights
that just stored the properties of each of the lights and then just called the
light routine to produce them and somehow appended the light number on the end
of the variable name to create (light1, light2, etc etc.).
There must be an easier way of doing things that
i'm obviously missing here.
I'm sure i would have been able to do this a year
or so ago but not having used java in far too long it's like starting from the
begining again.
Hope someone can help (i'm sure someone somewhere
can).
NEIL