Gould 是个争议性人物,他的钢琴演奏受到无数人的唾骂,也受到无数人的赞美。我今天听了他的 Mozart piano sonata no.12,感觉是:这应该才是 Mozart 爷爷想说的。
下面是一个 Gould 弹 Mozart 的视频。传说他在音乐会上也是这样弹的…
下面有个 comment 也表达了我的想法:
Glenn is such a phenomenom to me, he plays exact, and precise, evey note is exactly equal in value, yet, there is passion and love for the music, if anybody else played like this, it would be almost mechanical, robotic, gould has mastered something i dont think many others will come close to.
前面一种显然是错误的,后面一种则是对真实阴影的“零阶近似”。为什么?看看这张图就知道了,这是我用 Blender 渲染的。看到了么?真实的阴影在离物体近的地方是比较锐利的,离物体越远越模糊。而 id Tech5 似乎已经实现了真实阴影的“一阶近似”(也许是更高阶)。注意下面第三张截图的左边,人物肩膀上的盔甲在衣服上投下的阴影。
开放的户外场景,改进的 MegaTexture。
更先进的 shader。从截图上看,不仅是金属,其他各种材质在 id Tech5 里都有异常真实的表现,不像 Doom3 里只有金属… 那个人脸的特写,就像照片一样…
HDR。这个是 Doom3 的一大缺憾…
改写一段 Man in Black 的台词作为结尾吧:
After Quake, everybody knew that the world was a 3D one. After Quake II, everybody knew that lights could be colorful. After Quake III, everybody knew that a texture could be mapped onto a cylinder. After Doom3, everybody knew that without light, the world would be all black. Today, we know that shadows are fuzzy. Imagine what we will know, tomorrow.
A small figure gallops across the windswept ice slope. The bundled rider is mounted on a large gray snow lizard, a Tauntaun. Curving plumes of snow rise from beneath the speeding paws of the two-legged beast. The rider gallops up a slope and reins his lizard to a stop. Pulling off his protective goggles, Luke Skywalker notices something in the sky. He takes a pair of electrobinoculars from his utility belt and through them sees smoke rising from where the probe robot has crashed. The wind whips at Luke’s fur-lined cap and he activates a comlink transmitter. His Tauntaun shifts and moans nervously beneath him.
安上了 MacTeX,这是运行在 Mac OS X 下的基于 TeXLive 的发行版,比 CTeX 还大… 不过像 CTeX 一样,装起来很方便,不用配置,而且一上来就可以排中文~~,不过据我的试验,编码只能为 utf-8,而且可以用的简体字体只有一个 gbsn,这个字体比 M$ 的那个 simsun 好看多了~~。
\\documentclass[12pt]{article}\\usepackage{CJK}\\begin{document}\\begin{CJK}{UTF8}{gbsn}
This is a test. 中文测试。
\\textbf{粗体},\\textit{斜体},\\texttt{等宽字体}\\ldots\\end{CJK}\\end{document}%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
Google 了无数次,也找到了一些安装显卡驱动的方法,但在我的机器上就是不管用… 所以到现在还没有硬件加速,这个本来没什么,少一些特效而已,但是发现 OS X 里播放视频是需要硬件加速的…
大概研究了一下 OS X 下的程序,标准的 OS X 程序都是一个名字以 .app 结尾的文件夹,里边一般只有一个文件夹叫 Contents,这个程序的一切都在这个文件夹里,包括图标,配置(有些比较底层的会在 /Library 和 /System 里面放配制)语言文件等等。比较爽的是,OS X 和它里面的程序都是极端脚本化的,不仅配置一律是 xml,而且控件的摆放(!),图片的位置,dock 图标,甚至部分逻辑都是 xml,对于我们这些喜欢没事瞎改的人来说,这样的系统基本上就是天堂了~~。举个简单的例子,无论在什么操作系统里,只要有一个图形界面的文件管理器,你在里面新建一个目录的时候都有一个默认的目录名,比如在 Windows 里叫“新建文件夹”,这是被硬编码的,没有源代码的人改不了;在 OS X 里叫 untitled name,这个可以在 /System/Library/CoreServices/Contents/Resources/English.lproj 中修改,这个 .lproj 是一个语言文件,会被其他的 xml 调用。貌似现在达到这种境界的基本上就只有 wxWindow 了(用 xml 来摆控件)。
OS X 里面是有 python 的,不过是 2.3 版,严重不爽,于是装了一个 2.5(装好以后还要手动做符号连接…),开始考虑有什么程序可以写~~。想了半天,决定写一个批量删除语言文件的东西,把机器里的那些非人类语言都删掉,可以节省数百 MB 的硬盘~~,代码(用法看开头的注释):
#!/usr/bin/env python
#
# Usage:
# kill-lang.py app_list
#
# eg: kill-lang.py mail.app aquamacs.app
# ls -1 | awk '{print "\""$0"\""}' | xargs kill-lang.py
import os
import sys
import re
import shutil
ReservedLang = ["English", "zh_CN"]
if len(sys.argv) == 1:
usage()
sys.exit(1)
def usage():
print(' '.join(["Usage:", sys.argv[0],
"application_names (with \".app\")"]))
return
def handleRmError(function, path, excinfo):
sys.stderr.write(''.join(["Error deleting ", path, ", err:\n", str(excinfo), "\n"]))
def killLang(app):
# Get the path where language files are located.
AppResource = '/'.join([app, "Contents", "Resources"])
if not os.path.isdir(AppResource):
sys.stderr.write("This program dose not have a standard app structure.\n")
sys.exit(2)
AppSubs = os.listdir(AppResource)
Langs = []
for Sub in AppSubs:
if re.match(".*\.lproj$", Sub) != None:
Langs.append(Sub)
FullLangs = ['/'.join([AppResource, Lang]) for Lang in Langs]
for i in range(len(FullLangs)):
if not Langs[i][:-6] in ReservedLang:
print("".join(["Deleting ", Langs[i], "..."]))
shutil.rmtree(FullLangs[i], False, handleRmError)
return 0
def main():
for App in sys.argv[1:]:
App = os.path.abspath(App)
print App + ':'
if not os.path.isdir(App) or len(App) - App.rfind(".app") != 4:
print "Not an app, skipped"
continue
killLang(App)
return 0
sys.exit(main())
我的硬盘上分区众多,主分区和扩展分区相间而生,而且前后历经 Windows 的 parted,Powerquest Magic,和 cfdisk 的多重折磨,估计 MBR 已经变的像我的宿舍一样乱糟糟的,OS X 的安装程序能读出来已经很让我满意了,试了数次之后发现用那个 Disk Utility 只能读,连格式化都不行… 那时 Windows 已经光荣牺牲,所以决定把整个硬盘重新分区。在备份了 30 多 G 的重要数据以后,一闭眼,打了 cfdisk -z /dev/hda,面对空荡荡的 MBR,心中感慨万千~~
在 cfdisk 里划了一个 15G 的主分区,然后兴奋的跑到 OS X 安装程序里,发现还是不行,这个比较奇怪,到现在也不知道为什么… 最后经过数次尝试发现只有在 Windows(的安装程序)里分区,Disk Utility 才能正确的格式化。安装过程倒是挺快的,和 Ubuntu 差不多,就是要打个 SSE2 的补丁。
如果平时只是上上网,处理一下 routine stuff 的话,OS X 在安完之后就已经是一个非常全面的系统。浏览器、终端、文件管理器、邮件客户端、日程管理、播放器等等一应俱全(想想 Windows 吧…)。不过自带的那个 iChat 只能使用自己的协议,要是需要类似 Pidgin 的那种多协议 IM 的话,可以下载 Adium,这是宇宙里最漂亮,最好用的 IM,而且是开源的。BT 客户端可以用 BitRocket,也是开源的。OS X 的软件资源非常丰富,而且基本上都比 Windows 的同类软件好用。
操作系统本身基本上是完美的,配置也非常简单,都集中在 System Preferences 里,不像 Windows 要到处找。还有那个 Dock,以前用 Windows 的时候用过一个模仿 dock 的软件叫 RocketDock,手感很好,但是安上 OS X 之后才发现 dock 有一些不可能在 Windows 里模仿出的功能,它可以与其它程序交换信息,比如那个 Adium,你在里面设置自己的状态为 away 以后,Adium 就会告诉 dock,于是 dock 里的那个小鸭子图标就会举个牌子,上面写着 Away~~ 其它的就不说了,只有在用过之后才能体会到它的方便…
Recent Comments