Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

algorithm 1

Status
Not open for further replies.

BlackDice

Programmer
Mar 1, 2004
257
US
does anyone have an algorithm to draw a sphere? Also, I would like to know if drawing your own sphere manually is faster than using Direct3DX's function.

bdiamond
 
Use triangle strips, and use a nested loop with spherical coordinates letting theta go from 0 to 2*pi and phi go from 0 to Pi. It's not pretty, but it's what you have to do. I'm not sure about D3DX's sphere drawing; I didn't even know it had one...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top