Thread: color problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    White is not FFFFFF. It is FFFFFFFF.

    Most color is expressed as RGBA, ARGB, or XRGB. What you have expressed is XRGB. If you are in a graphics API and you have alpha blending enabled but set alpha to 0.0f you will not get any colors at the vertices.

  2. #2
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    OK, I forgot about alpha, because I don't use it. These colors are for rhw vertices. Nevertheless it seems to make no difference. It seems that ffffff and ffffffff give exactly the same result and the problem remains.

    I use DWORDs to store colors.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    It seems I know the problem now.
    D3DPRESENT_PARAMETERS :: EnableAutoDepthStencil

    When it is set to TRUE as in 3D it does weird things. I use 3D and 2D rhw simultaneously so I somehow need to change it, but it is not that simple, because it's used in CreateDevice. What should I do? Should I use two separate DirectX devices or is there some other way?

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    Never mind the previous post, that wasn't the problem.
    The problem was, that I had to unset the texture, so the 2D elements used the colors of the previously set textures. Colors turned darker, because the texture's color was brown.
    Problem solved!

Popular pages Recent additions subscribe to a feed