0

我正在学习本教程,但遇到了一些问题。 http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series1/Terrain_from_file.php 我使用页面底部的代码并构建它给了我这个错误

EmbedXnaFrameworkRuntimeProfile:
Skipping target "EmbedXnaFrameworkRuntimeProfile" because all output files up-to-date with respect to the input files.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702   nostdlib+ /platform:x86 /errorreport:prompt /warn:4 /define:DEBUG;TRACE;WINDOWS  /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Avatar.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Game.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.GamerServices.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Graphics.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Net.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Storage.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Video.dll" /reference:"c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Xact.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Net.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Xml.Linq.dll" /debug+ /debug:full /optimize- /out:obj\x86\Debug\TerrainBuilder1.exe /resource:obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt,Microsoft.Xna.Framework.RuntimeProfile /target:winexe /win32icon:Game.ico Properties\AssemblyInfo.cs Program.cs Game1.cs "C:\Users\Kenshin\AppData\Local\Temp\.NETFramework,Version=v4.0,Profile=Client.AssemblyAttributes.cs"

好吧,这看起来真的很可怕。

我正在做的是在 XNA 4.0 中运行它,我认为这来自 XNA 3.0 我不认为应该有任何问题,但以防万一。感谢您对此的任何帮助

4

1 回答 1

0

如果您想要一个使用 Reimers 等基于高度图的地形的 XNA 4 Terrain 教程,我已经创建了一个也使用 QuadTree、LOD 和 Culling 的教程。我的剔除使用一种技术将视锥体投影到 2D 空间,而不是使用边界视锥体,它极大地提高了我的性能。我还没有完成教程的最后一部分,因为当视距设置得太大以至于我还没来得及查看时,我看到了一些关于剔除的小问题,但是这个系列已经完成了通过渲染、剔除和 LOD 加载高度图。这是冗长而罗嗦的,因为我试图解释一切:

http://www.dustinhorne.com/page/XNA-Terrain-Tutorial-Table-of-Contents.aspx

我还转换了代码并让它与 Silverlight 5 XNA 一起工作,但我正在开发一个分页系统以使其更可行,因为地形大小要小得多(Silverlight 5 使用 Reach 配置文件和 16 位索引,这限制了地形块的整体大小)。一旦我有时间再次处理它,我也会发布它。

于 2012-01-03T16:18:07.103 回答