As the problem of light pollution becomes more serious, more and more scholars pay attention to this issue and carry out related research. In the perspective of cities, the measurements of light pollution mainly focus on the brightness of the sky or artificial lighting on the ground. However, there is lack of research on the whole urban space. With the two-dimensional brightness analyses, this paper processes the changes of the light environment of the whole urban space into image quantization. It gets the 3D and 2D light environment changes of luminance distribution, color temperature distribution and chromaticity in the three space layers, the ground layer, the urban canopy layer and the sky layer, from dusk with natural light to night with artificial lighting completely. It is found that the brightness difference between the light environments among the three city levels gradually reduces with the measuring time, and the final values maintain at 0.11~0.25 cd/m2. In the ground layer, the light environment is mainly affected by the lighting facilities, and vegetation can prevent the light from scattering up. The light environment of the urban canopy layer is the brightest in the whole city space and has the largest influence on the sky layer. The color concentrates in the range of yellow and red. The color temperature near the ground distributes in 3000K~15000K, and near the sky distributes in 2300K~2700K which is warmer than the natural night sky. The sky brightness of Dalian city is about 951 times than the natural night sky.