• Create Account

## DX11 - Dominant Textures

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.

8 replies to this topic

### #1Migi0027 (肉コーダ)  Members

Posted 04 September 2013 - 01:33 PM

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

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/cuboidzone.wordpress.com/

### #2unbird  Members

Posted 04 September 2013 - 02:10 PM

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).

### #3Migi0027 (肉コーダ)  Members

Posted 05 September 2013 - 08:41 AM

Thanks for the support unbird, appreciate it.

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/cuboidzone.wordpress.com/

### #4lomateron  Members

Posted 05 September 2013 - 09:09 AM

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.......

### #5Migi0027 (肉コーダ)  Members

Posted 05 September 2013 - 09:18 AM

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

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/cuboidzone.wordpress.com/

### #6lomateron  Members

Posted 05 September 2013 - 09:28 AM

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, 05 September 2013 - 09:30 AM.

### #7Matias Goldberg  Members

Posted 05 September 2013 - 10:55 AM

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

### #8Migi0027 (肉コーダ)  Members

Posted 05 September 2013 - 02:27 PM

Thanks! Qt by the way.

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/cuboidzone.wordpress.com/

### #9unbird  Members

Posted 05 September 2013 - 02:45 PM

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.

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.