954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

3D Graphics

Is there a way i can create 3D graphics in c#? is there an API out there, built into c# or would i have to make my own? here is how i can create a cube

void drawcube(Pen mypen, Rectangle rect1, int size){
            Rectangle rect2 = new Rectangle(rect1.X + size, rect1.Y + size,
                                            rect1.Width, rect1.Height);
            G.DrawRectangle(mypen, rect1);
            G.DrawRectangle(mypen, rect2);

            G.DrawLine (mypen, new Point(rect1.Right, rect1.Y),
                        new Point(rect2.Right, rect2.Y) );
            G.DrawLine( mypen, new Point(rect1.X, rect1.Bottom), new Point(rect2.X, rect2.Bottom) );                                                                   

            G.DrawLine(mypen, rect1.Location, rect2.Location);
            G.DrawLine(mypen, new Point(rect1.Right, rect1.Bottom), new Point(rect2.Right, rect2.Bottom));
            }
choover12
Newbie Poster
22 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

You'll want to take a look at XNA

Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 

There is always this book by Petzold
It uses WPF(Windows Presentation Foundation)
But believe me, you got to have a strong heart, to grasp what quaternions really are :)

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: