-
Registered User
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.
-
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.
-
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?
-
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