Jump to content
  • Advertisement

Archived

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

aaroncox1234

Anyone Know Whats Going On Here??

This topic is 5176 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!