2011-12-19 72 views
0

我正在從本教程開始工作,並且遇到了一些問題。 http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series1/Terrain_from_file.php 我使用的代碼在頁面的底部,我建,它給了我這個錯誤XNA地形生成器問題

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我不認爲應該有任何問題,但爲了以防萬一。 感謝您的任何幫助

+0

我沒有看到任何錯誤。它只是跳過一個目標。 – dowhilefor 2012-01-03 16:19:37

回答

0

如果你想要一個XNA 4地形教程,它使用像Reimers這樣基於高度地形的地形,我已經創建了一個也使用QuadTree,LOD和Culling的地形。我的剔除使用了一種技術,將視錐體投影到二維空間,而不是使用邊界截錐體,它大大提高了我的性能。我還沒有完成本教程的最後一部分,因爲當視距設置得太大以至於我還沒有時間觀看時,我看到了一些小問題,但是該系列已完成從通過渲染,剔除和LOD清除高度圖加載。這是漫長而羅嗦,因爲我已經試圖解釋一切,我去:

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

我也轉換的代碼,並將它使用Silverlight 5 XNA工作,但我正在尋呼系統上因爲地形尺寸要小得多(Silverlight 5使用Reach配置文件和限制地形塊總體大小的16位索引),所以更加可行。一旦我有時間再次努力,我也會發布。