• Advertisement

Archived

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

Alpha & color blend

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

Is it possible to use alpha and color blending at the same time? If I set both alpha and color op enabled and set their ARGs does D3D use both of them or just one of them?

Share this post


Link to post
Share on other sites
Advertisement
Hi pexi,

yes it''s possible.
I can''t remember on top of my head how to do it in D3D, i did some tests a few weeks back on that very same topic.. worked well.

I know for sure in OpenGL you just call:

glEnable(GL_BLEND);
glColor4f(1.0,1.0,1.0,1.0);

you set GLColor4f to whatever tint your blends will take.
pretty easy stuff.

I''ll try and locate the D3D code for it, i know it''s somwhere.

Now if only named my directories with meaningfull names instead of x...temp..test.test1 ..etc i would find stuff much faster

what DX version are you using, DX7 or DX8 ?

Gunner.

Share this post


Link to post
Share on other sites
I''m using DX8. This topic is very interesting but same time it''s really hard to understand. (Is there group of people in MS which makes help files harder to understand). Maybe I should make some example progs and see what happens....

Share this post


Link to post
Share on other sites

  • Advertisement