Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


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.

  • You cannot reply to this topic
8 replies to this topic

#1 Migi0027   Crossbones+   -  Reputation: 2137

Like
1Likes
Like

Posted 04 September 2013 - 01:33 PM

Hi guys! wink.png

 

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.

ampl3o.png

 

 

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

 

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


Hi! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

Sponsor:

#2 unbird   Crossbones+   -  Reputation: 6028

Like
1Likes
Like

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_OP_ADD,    //D3D11_BLEND_OP BlendOp;
        D3D11_BLEND_ZERO ,    //D3D11_BLEND SrcBlendAlpha;
        D3D11_BLEND_ZERO ,    //D3D11_BLEND DestBlendAlpha;
        D3D11_BLEND_OP_ADD,    //D3D11_BLEND_OP BlendOpAlpha;
        D3D11_COLOR_WRITE_ENABLE_ALL //UINT8 RenderTargetWriteMask;    
        } 
    };
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).

#3 Migi0027   Crossbones+   -  Reputation: 2137

Like
0Likes
Like

Posted 05 September 2013 - 08:41 AM

Thanks for the support unbird, appreciate it. wink.png


Hi! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

#4 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

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



#5 Migi0027   Crossbones+   -  Reputation: 2137

Like
0Likes
Like

Posted 05 September 2013 - 09:18 AM

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

 

huh.png


Hi! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

#6 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

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.


#7 Matias Goldberg   Crossbones+   -  Reputation: 3725

Like
0Likes
Like

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

#8 Migi0027   Crossbones+   -  Reputation: 2137

Like
0Likes
Like

Posted 05 September 2013 - 02:27 PM

Thanks! Qt by the way. biggrin.png


Hi! Cuboid Zone
The Rule: Be polite, be professional, but have a plan to steal all their shaders!

#9 unbird   Crossbones+   -  Reputation: 6028

Like
0Likes
Like

Posted 05 September 2013 - 02:45 PM

Thanks for the support unbird, appreciate it. wink.png

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.



PARTNERS