|
|
I have installed the DirectX SDK and the HLSL Shader Build Task. However I get the following error. what should I do? Error 1 The "ShaderCompile" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITas k interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Mic rosoft.NET\Fram ework\v4.0.3031 9" directory. C:\Users\dwhi04 5\Downloads\Sol arWind\SolarWin d\SolarWind\Sol arWind.csproj 171 5 SolarWind
I am getting the exact same error. Im using DirectX 10 SDK if that helps. When i try an compile in Visual Studio I get the following error. Error 1 The "ShaderCompile" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITas k interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "c:\Windows\Mic rosoft.NET\Fram ework\v4.0.3031 9" directory. C:\Users\chri62 55\Documents\Vi sual Studio 2010\Projects\D emo\API\Silverl ightWPF\Silverl ight 5 Spikes\Solar Wind 3D Sample\C#\Solar Wind\SolarWind. csproj 175 5 SolarWind
I can't compile the project. I get: Unknown compile error (check flags against DX version)...\AtmosphereCommon_p s.hlsl Build error. I fallowed instructions and installed that HLSL Shader Build Task and directX. Any advice please.
You can try to install the last DirectX 9 runtime: http://www.microsoft.com/downl oad/en/details. aspx?id=8109
0 down vote favorite share [fb] share [tw] I want to create a Navigation Page (Silverlight 5) that shows the same as the Solar Wind Usercontrol http://code.msdn.microsoft.com /Solar-Wind-3D- Sample-4cb56170 - I can get the Solar Wind Application itself to show up correctly in Silverlight but changing this to a Navigation Page doesn't show the 3D-Earth on the page - and there is no errors showing why this is happening - The background is there and the Control is showed but NO 3D-object. The Page itself loads without any errors but the Earth will not show up. I have runned the HLSL shaders. I have added the extra XML-script to the CSPROJ-file. I have set the Build Actions to VertexShader & PixelShader. Does anyone have any idea why I cant get the 3D-Earth to show up on my Navigation Page while it shows up correctly with Solar Wind Usercontrol?
One of our testers verified that nav pages do work, but you can't just change the control type. Additional updates are required. I'm following up on the details.
For Nav pages, when you navigate away the visual tree is torn down and when you navigate back it recreates the tree. You may need to make a few fields static and also change the way the DrawingSurface.Loaded event handler is wired up (using code instead of xaml) so that navigating away from a page doesn't trigger a reload.
I am able to run this application, but I am not able to see any Earth on screen, only Galaxy (Image) is disable with Zoom and other check box controls. Regards Rushi
What OS and browser are you using? What kind of video card do you have? Are you running using the web project which has EnableGPUAcceleration=true? Can you check and post the value of GraphicsDeviceM anager.Current. RenderModeReaso n?
Right click and go to the Silverlight Menu, select permissions, and enable the graphics device driver for the page you're trying to view.
@Zangl: Thanks, that's a good point. If you're using an XPDM video driver (e.g. Windows XP), you must manually give permissions for the site host to use 3D.
I have two problems that occur when I'm trying to run this program. First off, even though I have the HLSL Shader Build Task installed correctly (and necessary code added to the .csproj file), and the shaders themselves have been given the correct build actions (PixelShader/VertexShader), I still get a null reference error in GetResourceStre am. Second, after attempting to disable the additional layers (population, magnetic field, etc) I get the following error: System.CrossApp DomainMarshaled Exception was unhandled Message: System.Argument Exception: [Arg_ArgumentEx ception] at MS.Internal.Xcp Imports.CheckHR esult(UInt32 hr) at Microsoft.Xna.F ramework.Silver light.DrawGraph icsDevice.DrawI ndexedPrimitive s(PrimitiveType primitiveType, Int32 baseVertex, Int32 minVertexIndex, Int32 numVertices, Int32 startIndex, Int32 primitiveCount) at Primitives3D.Ge ometricPrimitiv e.Draw(Graphics Device gd) at SolarWind.Earth .Draw(GraphicsD evice device, SceneTime time, Camera camera) at SolarWind.Scene .Draw(GraphicsD evice graphicsDevice, SceneTime time) at SolarWind.MainP age.DrawingSurf ace_Draw(Object sender, DrawEventArgs e) at System.Windows. Controls.Drawin gSurface.Static DrawCallback(In tPtr nativeDS, Single time, Boolean& invalidated) Any help would be appreciated!
The code to enable the HLSL build task and the appropriate build actions should have already been setup in the .csproj file. Did you make changes to the included project? Without a working set of shaders compiling into the assembly as resources the sample will not run. The second error you reported could be related to that or to the way you disabled the other layers. What was the motivation for disabling the other layers and how was that done?