我在3Dmax中创建了一个相当大的场景,问题是,这代表了银河系,我将在那里有一个相机,但因为它太大了,相机的视野距离没有被所有的视野覆盖,导致背景显示在一些地方,所以我如何增加相机的视野距离来观看所有的视野?这是XNA,visual studio。
发布于 2011-04-13 20:36:44
aspectRatio = ((float)viewport.Width) / ((float)viewport.Height);
projectionMatrix = Matrix.CreatePerspectiveFieldOfView(
MathHelper.ToRadians(40.0f),
this._aspectRatio,
1.0f,
10000.0f); // Increase this number to increase the "depth"https://stackoverflow.com/questions/5649075
复制相似问题