XNA地形构建器问题

时间:2011-12-19 22:31:45

标签: xna xna-4.0 terrain

我正在使用本教程,但我遇到了一些问题。 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我不认为应该有任何问题,但以防万一。 感谢您对此的任何帮助

1 个答案:

答案 0 :(得分: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位)限制地形块总体大小的索引)。一旦我有时间再次工作,我也会发布它。