Java 3d programming practice