Skip to main content
added 106 characters in body
Source Link
Neil Knight
  • 506
  • 5
  • 20

I am getting the following error, even though the code runs through the Draw could twice and then it errors:

XNA Framework HiDef profile does not support alpha blending or ColorWriteChannels when using rendertarget format Single.

The BlendState that I'm using is:

BlendState newBlendState = new BlendState()
{
    AlphaBlendFunction = BlendFunction.Add,
    AlphaSourceBlend = Blend.One,
    AlphaDestinationBlend = Blend.One,
    ColorBlendFunction = BlendFunction.Add,
    ColorSourceBlend = Blend.One,
    ColorDestinationBlend = Blend.One
};

I even set the SamplerStates to PointClamp before the actual draw is called:

device.DrawUserIndexedPrimitives<VertexPositionTexture>(PrimitiveType.TriangleList, domeVerts, 0, 1024, ib, 0, 1860);

I don't understand how it can run successfully twice, and then fail. Any help would be greatly appreciated.

A screenshot of the problem: Alpha Blending fail

I am getting the following error, even though the code runs through the Draw could twice and then it errors:

XNA Framework HiDef profile does not support alpha blending or ColorWriteChannels when using rendertarget format Single.

The BlendState that I'm using is:

BlendState newBlendState = new BlendState()
{
    AlphaBlendFunction = BlendFunction.Add,
    AlphaSourceBlend = Blend.One,
    AlphaDestinationBlend = Blend.One,
    ColorBlendFunction = BlendFunction.Add,
    ColorSourceBlend = Blend.One,
    ColorDestinationBlend = Blend.One
};

I even set the SamplerStates to PointClamp before the actual draw is called:

device.DrawUserIndexedPrimitives<VertexPositionTexture>(PrimitiveType.TriangleList, domeVerts, 0, 1024, ib, 0, 1860);

I don't understand how it can run successfully twice, and then fail. Any help would be greatly appreciated.

I am getting the following error, even though the code runs through the Draw could twice and then it errors:

XNA Framework HiDef profile does not support alpha blending or ColorWriteChannels when using rendertarget format Single.

The BlendState that I'm using is:

BlendState newBlendState = new BlendState()
{
    AlphaBlendFunction = BlendFunction.Add,
    AlphaSourceBlend = Blend.One,
    AlphaDestinationBlend = Blend.One,
    ColorBlendFunction = BlendFunction.Add,
    ColorSourceBlend = Blend.One,
    ColorDestinationBlend = Blend.One
};

I even set the SamplerStates to PointClamp before the actual draw is called:

device.DrawUserIndexedPrimitives<VertexPositionTexture>(PrimitiveType.TriangleList, domeVerts, 0, 1024, ib, 0, 1860);

I don't understand how it can run successfully twice, and then fail. Any help would be greatly appreciated.

A screenshot of the problem: Alpha Blending fail

edited tags
Link
Neil Knight
  • 506
  • 5
  • 20
Source Link
Neil Knight
  • 506
  • 5
  • 20

XNA Framework HiDef profile does not support alpha blending

I am getting the following error, even though the code runs through the Draw could twice and then it errors:

XNA Framework HiDef profile does not support alpha blending or ColorWriteChannels when using rendertarget format Single.

The BlendState that I'm using is:

BlendState newBlendState = new BlendState()
{
    AlphaBlendFunction = BlendFunction.Add,
    AlphaSourceBlend = Blend.One,
    AlphaDestinationBlend = Blend.One,
    ColorBlendFunction = BlendFunction.Add,
    ColorSourceBlend = Blend.One,
    ColorDestinationBlend = Blend.One
};

I even set the SamplerStates to PointClamp before the actual draw is called:

device.DrawUserIndexedPrimitives<VertexPositionTexture>(PrimitiveType.TriangleList, domeVerts, 0, 1024, ib, 0, 1860);

I don't understand how it can run successfully twice, and then fail. Any help would be greatly appreciated.