Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


TransparencyAA10.1 BackFace Problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 mdx   Members   -  Reputation: 122

Like
0Likes
Like

Posted 15 February 2012 - 09:25 AM

I've added the MS based TransparencyAA10.1 Shader to my Slimdx11 projekt.
TransparencyAA and AlphaToCoverage ist working fine but only drawing the FrontFace. The BackFace is not drawing, only if i use simple AlphaTest.

I figured out that "MultisampleEnable=True" will draw allways and only the FrontFace. AlphaTest is using "MultisampleEnable=False" and draw's Front and BackFace.

The RasterizerState "Culling" is allways set to "None" ... so i don't no what's wrong

Sponsor:

#2 mdx   Members   -  Reputation: 122

Like
0Likes
Like

Posted 16 February 2012 - 07:45 AM

So i have found the problem...
in the SDK Shader the RasterizerState is set twice... That's not working right... and Culling is using the default Value

technique10 RenderAlphaToCoverage
{
pass P0
{
SetDepthStencilState( EnableDepthTestWrite, 0 );
SetRasterizerState( DisableCulling );
SetRasterizerState( EnableMultisampling );
SetBlendState( AlphaToCoverage, float4( 0.0f, 0.0f, 0.0f, 0.0f ), 0xFFFFFFFF );

SetVertexShader( CompileShader( vs_4_0, VsRenderScene() ) );
SetGeometryShader( NULL );
SetPixelShader( CompileShader( ps_4_0, PsAlphaToCoverage() ) );
}
}




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS