XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Draw 3D Lines

Last post 05-06-2008 1:40 PM by Jeromy Stroh. 2 replies.
  • 05-06-2008 11:26 AM

    Draw 3D Lines

    How do I go about drawing 3D lines with XNA?
  • 05-06-2008 11:30 AM In reply to

    Re: Draw 3D Lines

    Check out the Primitives sample on this site. That is for 2D, but would need only minor changes to do the same thing in 3D. At the moment it just sets all the z values to 0: if you put something other in the vertex z and provide a suitable projection matrix for the BasicEffect, the same code will draw in 3D.
    XNA Framework Developer - blog - homepage
  • 05-06-2008 1:40 PM In reply to

    Re: Draw 3D Lines

    Awesome. I noticed it was 2D but didn't eve think to look that it could be extended. Thanks!
Page 1 of 1 (3 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG