Заменил:
value = tex3Dlod(VolumeS, pos).r;
на
value = tex3D(VolumeS, pos).r;
результат:
Ошибка 1 Building content threw TimeoutException: FXC took more than 20 seconds to compile!
в WindowsEffectCompiler.WindowsEffectCompiler.Process(EffectContent input, ContentProcessorContext context) в E:\My Work\XNA to Silverlight\VolumeRayCasting_101\WindowsEffectCompiler\WindowsEffectCompiler.cs:строка 60
в Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context)
в Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
в Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
в Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
в Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[]& warnings) E:\My Work\XNA to Silverlight\VolumeRayCasting_101\VolumeRayCasting\Content\Shaders\RayCasting.fx VolumeRayCasting
Зменяю
technique RayCastSimple
{
pass Pass1
{
VertexShader = compile vs_1_0 PositionVS();
PixelShader = compile ps_3_0 RayCastSimplePS();
}
}
на
technique RayCastSimple
{
pass Pass1
{
VertexShader = compile vs_1_0 PositionVS();
PixelShader = compile ps_2_0 RayCastSimplePS();
}
}
Результат:
Ошибка 2 E:\My Work\XNA to Silverlight\VolumeRayCasting_101\VolumeRayCasting\Content\Shaders\RayCasting.fx(133,9): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (33 iterations), use the [unroll(n)] attribute to force an exact higher number
E:\My Work\XNA to Silverlight\VolumeRayCasting_101\VolumeRayCasting\Content\Shaders\RayCasting.fx(187,23): ID3DXEffectCompiler::CompileEffect: There was an error compiling expression
ID3DXEffectCompiler: Compilation failed
E:\My Work\XNA to Silverlight\VolumeRayCasting_101\VolumeRayCasting\Content\Shaders\RayCasting.fx VolumeRayCasting
Есть еще какие небудь идеи?
Или в XNA нету возможности построить 3Д текстуры без шейдеров 3.0???
С нетерпением жду ваших ответов!