Jump to content
  • Advertisement
Sign in to follow this  
SHKiN

texkill and GeForce

This topic is 4793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everybody! I'm doing alphatest on R16G16F via texkill: texld r0, t0, s0 ; load colormap sub r1, r0.a, c0.r ; c0.r contains alphaRef value mapped into [0..1] range texkill r1 ; kill pixel if its alpha is below alphaRef ... On all ATI's cards this works just fine, but on GeForceFX I see some strange and ugly picture - some tris are alphatested, but looks like texcoords are distorted, while others are completely opaque. Any help will be appreciated Thank you

Share this post


Link to post
Share on other sites
Advertisement
According to te DX docs, when sampling a D3DFMT_G16R16F texture with texld the A and B values are filled with default values of 1.0.

Share this post


Link to post
Share on other sites
I'm not sure how loading an alpha value from a texture without an alpha channel in it is a good idea.

At a minimum, you have to check the spec to see what the correct behavior is supposed to be.

Even so, there are often driver bugs lurking in unusual uses of the api.

Hopefully that is just a typo.

Share this post


Link to post
Share on other sites
Sorry guys, i've mean that R16G16F is a rendertarget, source texture has alpha, of course =)

I've found that texkill behaviour on FX is very strange. RHW vertices are OK, but with untransformed I receive distorted texcords.

Same thing on REF =(

Already tried about 10 detonators =(

BTW, DX8.1 ps.1.4 works fine

Share this post


Link to post
Share on other sites
Finally I've got it!!!

def c1, 1, 1, 1, 1

...

mov r0.a, c1.r <==================== this line repairs everything!

mov oC0, r0

Thanks everybody for your replies!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!