3d cube + c#.net

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 5
Reputation: rajeshswain is an unknown quantity at this point 
Solved Threads: 0
rajeshswain rajeshswain is offline Offline
Newbie Poster

3d cube + c#.net

 
0
  #1
Dec 31st, 2008
Hello,

I am creating a windows application to draw 3d cubes. I am preferring to give all the details of the cube in the code itself i.e. dimensions, colour etc.. Suppose there will be two cubes, say with different dimensions and we provide the details with the manner that is mentioned above. This cube will appear whenever I click on the specified button.

I have gone through OPENGL framework to draw this. I could have used that if it would be free to use. However, I searched through web, but unfortunately there are very few information available regarding drawing cube in C#.net.

Any one please provide me a link or some idea about how to draw the cube.


Thanks,
Rajesh
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: 3d cube + c#.net

 
0
  #2
Dec 31st, 2008
openGL is freee to use, there is no runtime or development costs that Im aware of. You could also look at XNA which while aimed at gaiming is also a framework for drawing like that.

However, drawing a 3d cube in c# in general would be the same as asking how to draw it on paper, its the same for any language, you need the maths to work out the angles, lengths etc.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: 3d cube + c#.net

 
0
  #3
Dec 31st, 2008
You can also use DirectX SDK
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,955
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 282
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: 3d cube + c#.net

 
0
  #4
Dec 31st, 2008
3D is a world of it's own.
I suggest first reading "3D programming for windows" from Charles Petzold.
Learn about the math needed(quaternions ! fun!)
Learn about projections, light, shade, viewports, rotation etc.
Mostly with XAML code but also C# code.
Very good book.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 18
Reputation: Secret- is an unknown quantity at this point 
Solved Threads: 0
Secret-'s Avatar
Secret- Secret- is offline Offline
Newbie Poster

Re: 3d cube + c#.net

 
0
  #5
Dec 31st, 2008
Yha ,, 3D programming for windows " is kinda good
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 49
Reputation: iDeveloper is an unknown quantity at this point 
Solved Threads: 7
iDeveloper iDeveloper is offline Offline
Light Poster

Re: 3d cube + c#.net

 
0
  #6
Jan 1st, 2009
Draw the cube on a piece of paper. Determine x,y,z for each vertex and write them all down. Then using open GL create your viewing volume and using triangles or another primitive shape map your points in clock-wise direction. This will require some knowledge about OpenGL. You can do all of this with XNA in about 10 lines of code.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC