Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Achieving non-color additive blending with D3DIM

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 mason   Members   

128
Like
Likes
Like

Posted 13 December 1999 - 06:46 AM

So I've got D3DIM doing my alpha-blits for me. Cool stuff.

Unfortunately, I can't seem to escape color-additive alpha blending. For example... if I take a completely black square (no colorkey) and alpha-blit it to the background, I want a "tinted-window" effect, where it simply darkens the pixels. Instead I get nothing, as if it can only make the bg *brighter*, never darker.

My hunch is that this has something to do with the rendering state... specifically, the blend factors for the source and destination (XXX_ZERO or XXX_ONE).

Can someone please explain to me how these work, and what things I should set to get that nifty "tinted window" effect?

Thanks much...

Mason McCuskey
Spin Studios
www.spin-studios.com


#2 Zargoun   Members   

122
Like
Likes
Like

Posted 13 December 1999 - 06:46 AM

Well I have no solution to this question but rather another question in the same thread....

I have worked on alpha-blend sprite with D3D IM, and it works well (using BLEND_INVSRCCOLOR. But how can you do with video cards supporting only BLEND_ALPHA ??? (this is the case on matrox MGA G100 for example....)

thanksssssssssss......

[This message has been edited by Zargoun (edited December 13, 1999).]





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.