Archived

This topic is now archived and is closed to further replies.

aaroncox1234

Anyone Know Whats Going On Here??

Recommended Posts

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites