Jump to content
  • Advertisement
Sign in to follow this  
SiliconMunky

Blend Render States vs Texture Stage States

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

The dx sdk documentation is a big vauge about the differences between the blend render states and the texture stage states. The renderstates i'm reffering to are D3DRS_DESTBLEND D3DRS_SRCBLEND D3DRS_DESTBLENDALPHA D3DRS_SRCBLENDALPHA and the texture stage states are D3DTSS_COLOROP D3DTSS_COLORARG1 D3DTSS_COLORARG2 D3DTSS_ALPHAOP D3DTSS_ALPHAARG1 D3DTSS_ALPHAARG2 To me it seems like conceptually there is some overlap between then. Could someone shed me some light on these two topics please? Thanks,

Share this post


Link to post
Share on other sites
Advertisement
The texture stages define how your polygon will be shaded, layered, whatever. How it will be build as a solid polygon. Blend modes define how the resulting polygon will be composited in the framebuffer (alpha, additive, etc...).

Share this post


Link to post
Share on other sites
Thanks, I'm started to understand a bit better now. I'm curious about how a vertex's color will effect the the rendering, and how the alpha component of the vertex plays a role.

Share this post


Link to post
Share on other sites
I beleive the vertex's color is passed into the texture stage 0 as D3DTA_CURRENT. Is this correct?

Edit:
Thanks, I got my point sprites blending the way I want them to, thanks again!

[Edited by - SiliconMunky on July 2, 2005 5:07:19 AM]

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!