NASA World Wind open-source project configuration NASA World Wind is an open-source 3D graphics Virtual Earth system on a C # developed personal computer. It combines ground images taken from satellites by NASA from blue marble, Landsat 7, SRTM, modem5, and others. Users can download the. NET source code http://worldwind.arc.nasa.gov here/ After the download, open the solution, which is available in vs2005 (2008). There are 16 projects in total. The configuration steps are as follows: 1. Install DirectX Install DirectX before compiling and running, because the Child Project in worl wind has reference to it, as follows: The pluginsdk project requires three references: Microsoft. DirectX, Microsoft. DirectX. direct3d, Microsoft. DirectX. direct3dx; WorldWind requires four references: Microsoft. DirectX, Microsoft. DirectX. direct3d, Microsoft. DirectX. direct3dx, Microsoft. DirectX. directinput. DirectX is a collection of Microsoft technologies integrated to provide Windows platform multimedia operation APIs, supporting applications, multimedia software and 3D games. I downloaded the directx9.0cmulti-language version. After the version is decompressed, run the program dxsetup.exe. Ii. Syntax modification errors Somehow, the downloaded source code has very low-level syntax errors, and there are many mistakes. However, it doesn't matter because it is easy to modify. The syntax error mainly occurs in the output that represents the latitude and longitude.CodeThe left and right quotation marks are usually not paired. You only need to add the missing quotation marks completely. ---- Example ----: Before modification: Labeltext + = string. Format ("\ nbearing: {0: F1 }?, Azimuth. degrees ); After modification: Labeltext + = string. Format ("\ nbearing: {0: F1 }? ", Azimuth. degrees ); This syntax has many errors, but note that missing quotation marks include single quotation marks and double quotation marks. 3. Add other references 1. After the above work is completed, re-compile the project. pluginsdk and worldwindow must compile and generate the DLL to meet the reference requirements of other sub-projects; 2. Assume that the root directory of all source files is world_wind_1.4.0_source. In this directory, locate world_wind_1.4.0_source \ bin \ debug and set the config, Data, plugins, and avifile directories in this directory. DLL, flickrnet. DLL, org. mentalist. security. DLL, zedgraph. copy and paste the DLL to the world_wind_1.4.0_source \ WorldWind \ bin \ x86 \ release directory. After completing the above work, You can compile and run the world wind source code. During the compilation process, you don't have to worry about any error prompts. directly go to "continue" until "complete ". You can see the running window of World Wind. |