|
|
发表于 2007-6-16 18:39:00
|
显示全部楼层
Re:perspective变换的不解
不懂。首先,从右上角移动到中心的是"Origin",我一直认为只有坐标系才有原点。就算右上角点可以确定锥体怎么摆放,楼上的仁兄请再解释一下,它为什么就是原点了呢,又是哪个坐标系的原点?
我到GameDev上问了一下这个问题,有人回复:
This seems like an error in the documentation. The scene does get shifted from -1...1 to 0...viewport height and width, but this happens automatically after the perspective transform (fixed function vertex pipeline) or vertex shader (programmable vertex pipeline), and before pixel shader or combiner.
An ordinary perspective transform doesn't usually specify translations in xy plane. An exception to this is if you actually want to shift the perspective center around.
(回复者是Programming Vertex, Geometry and Pixel Shaders with Direct3D 10一书的作者Niko Suni)
|
|