# DX11 DX11 - Dominant Textures

This topic is 2140 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi guys!

I'm having a small problem here, that I would like to get fixed, as I'm on a kind of a bug fixing period.

Screenshot.

If you look closely you can see some icons, I call them the debug helpers. To blend them into the scene (They have a separate pass), I simply add the color in the post processing shader, but, then it doesn't come as I hoped, as the colors blend together, kinda obvious  .

So. Now I ask you, how can this be made, without the blending of colors, so if a sprite (it's sprites) is blackish, it becomes black!

What I could do is to, after all the draw calls, draw these special helpers with depth testing disabled.

But are there other ways?

Thanks, as usual!

-MIGI0027

##### Share on other sites
This looks like additive blending and it sounds like you want alpha blending (copied from a SDK sample)

D3D11_BLEND_DESC dsc =
{
false,//BOOL AlphaToCoverageEnable;
false,//BOOL IndependentBlendEnable;
{
true, //BOOL BlendEnable;
D3D11_BLEND_SRC_ALPHA, //D3D11_BLEND SrcBlend;
D3D11_BLEND_INV_SRC_ALPHA ,    //D3D11_BLEND DestBlend;
D3D11_BLEND_ZERO ,    //D3D11_BLEND SrcBlendAlpha;
D3D11_BLEND_ZERO ,    //D3D11_BLEND DestBlendAlpha;
}
};

Your sprite textures need a proper alpha channel for this. Also: Google for the difference between premultiplied and non-premultiplied alpha blending (the above code is the latter).

##### Share on other sites

Thanks for the support unbird, appreciate it.

##### Share on other sites

Its all about the moves and the complexity of them

I hate to see that people continue the model of click this text and then this text and then this text to do something

Its slow in the sense of making an action and in learning how to use the program

If the computer was my body, I will have to make some silly 100 different clicks in different places to make my body take an object from the floor

so when you develop a program think more about how is that input made, and make it cooler, we must change that silly model of clicking this text then this text and then this other text.......

##### Share on other sites

Then what do you suggest I do, to my terrible modal?

##### Share on other sites

I prefer now that you know that, develop it alone and then we will see what new things you can create

Every program should have too a kind of visual start that makes us do all the things that can be done with the program

In the proces makes us learn all those cool moves and conbinations to get the program do something

that should not be teached by other person, or a book

Edited by lomateron

##### Share on other sites
Off topic I was going to say the opposite.  Nice UI you've got there! What are you using? Qt? WPF?
As for the text thing, I recommend reading Apple's HID guidelines

##### Share on other sites

Thanks! Qt by the way.

##### Share on other sites

Thanks for the support unbird, appreciate it.

You're welcome.

And yeah, I expect an intuitive and convenient interface for something as complex as a game/3D editor to be quite hard to do. It's a nice start you got there, so congrats.

• 11
• 9
• 17
• 13
• 11