Anyone Know Whats Going On Here??
hey all. im using a directx texture to draw a bitmap to the screen and im then calling DrawPrimitive(D3DPT_LINELIST, 0, 1) to draw some lines over the bitmap. when the bitmap''s not there, my lines are fine, but when it is there, my lines change color to a dull brown. ive tried various colors and they all go brown when the bitmap''s drawn (i draw the bitmap first, of course).
thanks for any help
I''m not sure what the problem is, but just out of curiosity, is the bitmap border brown? I mean, the outmost part of the bitmap?
Do you make sure to turn off the texture when you draw the lines? Use SetStageState() to set the card to use only diffuse vertex settings, and not texture colors. And it''d probably be good to call SetTexture() with a NULL texture pointer. If you don''t do these two things (or at least one of them, I suppose), then it will draw the line using the texture as the coloring, or at least some of the coloring, depending on how you set up your stage states.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement