Jump to content
  • Advertisement


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


Masking a 3D texture without bugs

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

EDIT: Nevermind. Why do I post before reading one of my books? What I wasn't doing was setting the alpha values of the individual pixels of the texture -- would've been infinitely faster. Also I should use alpha testing instead of alpha blending. Original post is below: That's a fence. You can see part of it overlaps onscreen and this causes the error. The reason is the engine first draws everything with the mask and then draws everything with the solid texture. While optimal, this causes bugs on overlaps. The "solution" is to draw the mask then the solid part for each individual polygon, which is obviously very slow and wasteful. So my question is how do I fix this? I'm guessing I'll have to go about masking a completely different way. The way I do it now is with separate mask and solid textures, drawn with alphablending. Pixel shaders are not an option. The target platform is any T&L card. ~CGameProgrammer( ); DevImg.net - Post screenshots, comment on others. Town 3D Engine - A city-rendering 3D engine. Download the demo. [edited by - CGameProgrammer on April 28, 2003 9:57:02 AM] [edited by - CGameProgrammer on April 28, 2003 10:26:16 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!