The first purpose of this applet is to create a world with moving lights in a dark environment. The second purpose is to test lights in Java-3D. I tried to make the code as small and simple as possible and avoid too much unnecessary details in the created world, to make it pure and effective.
I use the same material on the Shape3d- objects with four different lights in an outer circle and four lights in an inner circle. Since I do not use any textures it starts quick without any downloads and the applet works fast and easy.
I use the standard geometric primitive-classes in Java-3D. Since the light classes are leafs in the tree-structure, they can be treated the same way as Shape3D objects such as spheres and cylinders. That is why the lights can be moved.
Visit my site to see more Virtual Worlds and dynamic graphics.