Archived

This topic is now archived and is closed to further replies.

hard nut ...

This topic is 5530 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

Hey, does any of U know wether you can tell your directX device NOT TO adjust its z-buffer value of a x''y coordinate when the texture pixel that you put on that (x''y)position is 100% transparent? yust so I could place something (partially) behind it without chunks having cut off because those transparant pixels''s z-values(which i''d like NOT to be stored) are in front of it?!? if you dont know, don''t feel sad... me dunno either :-( W!LLiE W@cKo!

Share this post


Link to post
Share on other sites
You want to use alpha-testing - it tells the card to compare the alpha of the new pixel with a reference value (that you provide) and only write the pixel if it passes the test. The render-states you need to look at are D3DRS_ALPHATESTENABLE, D3DRS_ALPHAFUNC and D3DRS_ALPHAREF. The SDK docs should have a decent sample to show you what to do.

Share this post


Link to post
Share on other sites