Sign in to follow this  
Mykre

[.net] Drawing a sphere in Directx

Recommended Posts

Does ay one have a snippit that shows how to draw a sphere in Managed DirectX. I have been following Toms Book and Other links on the net but have as of yest not found out how to Draw a sphere and position it on a 3d Device. For the Example I need it in ether c# or VB.net, dosn't matter which one. Trying to position a sphere like DrawSpere(int xPos, int yPos, int zPos, int color) I will be loading the values from a XML File or Database Query Thanks in advance.

Share this post


Link to post
Share on other sites
It involves painful (at least to my meager mind :P) math, and is pretty unnecessary wih Managed DirectX. Have you tried the Mesh.Sphere() method? Quite the timesaver. :)

Share this post


Link to post
Share on other sites
If you have been following Tom's book, he should have alot about using the premade mesh objects (like spheres, boxes, cylinders, and even teapots!).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this