Jump to content
  • Advertisement
Sign in to follow this  
Medo Mex

Unexpected line movement

This topic is 2043 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

I'm using the following code to draw a straight line:


void render_line()
      D3DXVECTOR3 vPoints[2];
      vPoints[0] = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
      vPoints[1] = D3DXVECTOR3(0.0f, 1000.0f, 0.0f);
      device->DrawPrimitiveUP(D3DPT_LINELIST, 1, vPoints, sizeof(D3DXVECTOR3));


I see that the line is moving down! In the code I'm not moving the line, just giving static position though the line is moving.

Share this post

Link to post
Share on other sites

...just giving static position...

And how do you do that?

I bet that last world matrix is not set to identity.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!